Showing posts with label projects. Show all posts
Showing posts with label projects. Show all posts

Sunday, March 11, 2012

AS400 and SELECT *

I am migrating from 2000 to 2005 and dts to SSIS on several projects. I have not been able to successfully (without error) pull from an AS400 table using "SELECT *". If I reference all field names, it works fine. SELECT * actually works in the sense that it pulls over all the data, but it fails at the end, almost like an unepected end of stream. Normally it wouldn't be a problem tp qualify each field, but when I do the data gets sorted. In this instance I can't have it sorted because (without going into the stupid details) the production needs to match the development to suit my boss.

Connection = .Net Provider for OleDb/IBM DB2 UDB for iSeries IBMDA400 OLE DB Provider

Data Source = DataReader Source (I have yet to be able to use and OLE Source for AS400 without error, although my colleagues can - weird)

Here is the error I get when I change:

SELECT FieldName1, FieldName2, FieldName3 FROM LIBRARY.FILENAME

to

SELECT * FROM LIBRARY.FILENAME

Error: 0xC0047038 at DTF_LoadSqlServer_BOSS_Tebosspf8H, DTS.Pipeline: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "OLE_SRC_Tebosspf8H" (4492) returned error code 0x80004003. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.

Error: 0xC0047021 at DTF_LoadSqlServer_BOSS_Tebosspf8H, DTS.Pipeline: SSIS Error Code DTS_E_THREADFAILED. Thread "SourceThread0" has exited with error code 0xC0047038. There may be error messages posted before this with more information on why the thread has exited.

I

Any suggestions? Is there a property on the task or connection that will fix this? Or any idea why I can't use an OLE Source to pull from AS400?

I know it may not be an answer you're looking for, but I've had great luck using the Microsoft OLE DB for DB2 driver. It's included with one of their feature packs.

Thursday, March 8, 2012

AS2005 Projects best practice?

Hi,

I'm currently looking for the best practice to set-up my AS2005 projects. Any help would be appreciated.

We currently need to build a lot of cubes with AS2005 and we have a lot of AS2005 developers working on this... Here are some points to keep in mind:

    Cubes will share dimensions

    Some cubes will have their exclusive dimension

    multiple developers working at the same time on the projects

Here are my options:

    Create one big project to hold all my cubes and dimensions

    This is easy to set-up and manage

    Might have some problems having multiple developers working at the same time

    What if a dimension is used in multiple cubes but we need to define distinct hierarchies for every cube?

    Create on project for the common objects (dimensions) and one project per cube

    I have the feeling that this would be hard to manage

    How can I link the dimensions from the common objects project to our different objects?

    What happens if a developer modify a dimension in the common object project ? would all the cubes using it be automatically updated?

    Create one project per cube

    This is easy to set-up and manage

    Modifying a dimension may require to modify all projects (major overhead) if used in multiple cubes

What is your take on this and how do you guys manage your AS2005 projects?

TIA,

Aiwa

I would add

that you also need to think about DSV objects. Are those developed one time

before all dimensions and cubes are started being developed or even DSVs are

going to be incrementally developed?

Eventually, are those going to be deployed as part of one database?

Are you planning to do test driven development? Will your test development be

performed in parallel with the solution development? If yes, does it mean that

any incremental work done by one developer should result in fully deployable

solution for all the cubes as part of one database, which is going to be automatically

tested on regular basis?

|||

Hi Andrew,

you are right I forgot DSV. Those should be developed before developing cubes and dimensions but change to DSV are likely to happen in the long run.

Deploying to one or more database is not a show stopper for us right now.

Yes, any incremental work done by one developer should result in a fully deployable solution.

Regards,

Aiwa

|||

Personally

i have never seen a group of people actively developing the same cube in

parallel and using a source control system. All files participating in the AS

project are in XML format. So it is possible to resolve conflicts using the

source control system you have. Some of the conflicts will be resolved

automatically. Some will have to be solved manually. But you need to make

experiments and see how it goes.

I think it

will be easier if different people work within the same project but each object

is changed only by one developer at the same time. For instance, today I would

work on dimension A and I know that nobody will touch A today. Tomorrow

somebody else could work on A but I will not. This would reduce the number of

conflicts.

Also, I do

not see big amount of manual work to do when designing a dimension or cube. The

work is mainly mental one. So, if resolution of conflicts becomes a problem

then it is possible for 2 or 3 developers make their local experiments and,

having tested locally and succeeded, get together in one room and combine their

efforts by recreating the object from the scratch while picking up the good

steps from each solution. Yes, one of the developers will have to repeat the

steps of 3 people once again, but it will not be mental work requiring a lot of

energy, but rather mechanic work.

I think you

need just try to follow your processes for a week and see how it goes.

Wednesday, March 7, 2012

AS Deployment Wizard: Always generates errors

None of my SSAS projects will deploy & process with the Wizard. They will always deploy & process directly from BI Studio.

As a test, I built a very simple project. Two measures from a fact table, and one very simple dimension, from the same fact table.

The target DB is hosted on a server where I am admin.

When I attempt to deploy with the Deployment Wizard, I do the following:

1. Run the Wizard locally on the target server, under my login (which has admin rights).

2. Select the .asdatabase produced by the 'Build' from BI Studio.

3. Choose the target server and database.

4. Use the default settings for Partion & Role Options (the test DB has no seperate partitions or role definitions)

5. Use the default settings for Configuration Options

6. Choose Full Processing for Processing Options

... then I confirm the deploy...

Then I will always get:

"Errors in the OLAP storage engine. An error occurred while the 'xxxx' attribute of the 'yyyy' dimension from the 'zzzz' database was being processed."

When I do the same for a more complex project, the attribute and dimension that fail are random, changing from one deploy to the next. Unlike processing from BI Studio, no additional detail is given.

As an aside, when I select 'Process in Single Transaction', I get something different:

"The following system error occurred: Logon failure: unknown user name or bad password"

I'm not sure why this happens for that option, but not when it's turned off. I (think) I've tried all the different impersonation methods in the Configurations page, but always get the same result.

Seperately, I have tried instead to process an XMLA file from a SQL job, but get even less information in the errors there.

I've also looked at using ASCMD, but I dead ended there due to it only being availabe as source code (I don't have the full dev environment at present, so I don't think i can compile the project, unless there is some of distributable make utility).

The sound of a deadline whooshing by was about a week ago... any ideas much appreciated.

Your processing errors have nothing to do with the way you send the deploy command or the way you send processing command.

Most likely you got some referential integrity problems in your domain or fact tables. Simple cases where during processing of an attribute Analysis Server cannot find matching keys.

Most simple and brutal way is: tell it to ignore processing errors- you will find such options in the processing dialog.

The "cannot login" errors are pretty straightforward. If you get it during processing, it means Analysis Server cannot access the relational database. That could be due to the security settings of the datasource object. Or due to the Analysis Server's service account not having permissions.

If your XMLA script fails with such error, that could be simply becuase it couldnt access Analysis Server.


One general suggestion is: Try searching this forum, tons of information is avaliable here to you.

HTH

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

|||

Edward,

I don't think it's the design. I've been processing it for weeks now using BI Studio, deploying to the exact same server - no errors, the cube works perfectly. No tricks like ignoring key errors either implemented or required - all the data, for both fact and dimensions, is from a dumb flat table. And, just to prove it to myself, I built the equivelent of a "Hello World"... with one measure, and one single attribute dimension. Totally basic - the dimension is just a text column in the fact table. Again, it always fails to deploy in the wizard. Again, it always deploys ok from BI.

As for the login issue when I select single transaction, I've now realised I can use SQL Profiler to see how far the wizard is getting with regards to RDBMs access - so I'll take a look at that on Monday.

I also think I'll make the test project even dumber on Monday. Just one row of fact data, and two coumns. One column for a measure, with a '1' in it. And one other column for a dimension, with 'Hello' in it. I don't think I can make it dumber than that. Smile

My gut feel is that it's something authentication related but I just can't quite pin it down at the moment.

Regards,

Paul

|||

OK I've now solved this - it was authentication related as I'd guessed. I'm not sure I understand authentication & permissions configuration in SSAS, but here's what I did:

In properties for the solution:
Configuration Properties: Deployment: Build - set Remove Passwords to False

In Data Source designer for the data source:
Impersonation Information: Selected 'Use a specific user name and password' - entered credentials for a user account. (The account has admin permissions on the box. I don't know if that's significant.)

AS Deployment Wizard: Always generates errors

None of my SSAS projects will deploy & process with the Wizard. They will always deploy & process directly from BI Studio.

As a test, I built a very simple project. Two measures from a fact table, and one very simple dimension, from the same fact table.

The target DB is hosted on a server where I am admin.

When I attempt to deploy with the Deployment Wizard, I do the following:

1. Run the Wizard locally on the target server, under my login (which has admin rights).

2. Select the .asdatabase produced by the 'Build' from BI Studio.

3. Choose the target server and database.

4. Use the default settings for Partion & Role Options (the test DB has no seperate partitions or role definitions)

5. Use the default settings for Configuration Options

6. Choose Full Processing for Processing Options

... then I confirm the deploy...

Then I will always get:

"Errors in the OLAP storage engine. An error occurred while the 'xxxx' attribute of the 'yyyy' dimension from the 'zzzz' database was being processed."

When I do the same for a more complex project, the attribute and dimension that fail are random, changing from one deploy to the next. Unlike processing from BI Studio, no additional detail is given.

As an aside, when I select 'Process in Single Transaction', I get something different:

"The following system error occurred: Logon failure: unknown user name or bad password"

I'm not sure why this happens for that option, but not when it's turned off. I (think) I've tried all the different impersonation methods in the Configurations page, but always get the same result.

Seperately, I have tried instead to process an XMLA file from a SQL job, but get even less information in the errors there.

I've also looked at using ASCMD, but I dead ended there due to it only being availabe as source code (I don't have the full dev environment at present, so I don't think i can compile the project, unless there is some of distributable make utility).

The sound of a deadline whooshing by was about a week ago... any ideas much appreciated.

Your processing errors have nothing to do with the way you send the deploy command or the way you send processing command.

Most likely you got some referential integrity problems in your domain or fact tables. Simple cases where during processing of an attribute Analysis Server cannot find matching keys.

Most simple and brutal way is: tell it to ignore processing errors- you will find such options in the processing dialog.

The "cannot login" errors are pretty straightforward. If you get it during processing, it means Analysis Server cannot access the relational database. That could be due to the security settings of the datasource object. Or due to the Analysis Server's service account not having permissions.

If your XMLA script fails with such error, that could be simply becuase it couldnt access Analysis Server.


One general suggestion is: Try searching this forum, tons of information is avaliable here to you.

HTH

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

|||

Edward,

I don't think it's the design. I've been processing it for weeks now using BI Studio, deploying to the exact same server - no errors, the cube works perfectly. No tricks like ignoring key errors either implemented or required - all the data, for both fact and dimensions, is from a dumb flat table. And, just to prove it to myself, I built the equivelent of a "Hello World"... with one measure, and one single attribute dimension. Totally basic - the dimension is just a text column in the fact table. Again, it always fails to deploy in the wizard. Again, it always deploys ok from BI.

As for the login issue when I select single transaction, I've now realised I can use SQL Profiler to see how far the wizard is getting with regards to RDBMs access - so I'll take a look at that on Monday.

I also think I'll make the test project even dumber on Monday. Just one row of fact data, and two coumns. One column for a measure, with a '1' in it. And one other column for a dimension, with 'Hello' in it. I don't think I can make it dumber than that. Smile

My gut feel is that it's something authentication related but I just can't quite pin it down at the moment.

Regards,

Paul

|||

OK I've now solved this - it was authentication related as I'd guessed. I'm not sure I understand authentication & permissions configuration in SSAS, but here's what I did:

In properties for the solution:
Configuration Properties: Deployment: Build - set Remove Passwords to False

In Data Source designer for the data source:
Impersonation Information: Selected 'Use a specific user name and password' - entered credentials for a user account. (The account has admin permissions on the box. I don't know if that's significant.)