Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Process partition errors after cube migration Expand / Collapse
Author
Message
Posted Tuesday, July 16, 2013 8:39 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, June 27, 2014 3:23 AM
Points: 141, Visits: 522
Hi, I'm trying to process a partition on a cube I've migrated from SQL2000 to SQL2008 R2 (both the DB & AS).

It connects to the source (oracle on unix) ok and processes some dimensions but then fails with...

OLE DB error: OLE DB or ODBC error: One or more errors occurred during processing of command..

It connects ok and all tables it requires are valid. I'm also using the account which owns the tables.

When I drill down it doesn't give me any useful info apart from the partition.

In the properties of the Partition for the cube the Binding Type = Query Binding

and the query statement coded as...

SELECT "SALES_QUANTITY", "LOCAL_CURRENCY_NET_LINE_AMOUNT", "LOCAL_CURRENCY_LINE_DISCOUNT",
"STERLING_NET_LINE_AMOUNT", "LOCAL_CURRENCY_RETAIL_COST", "STERLING_LINE_DISCOUNT", "STERLING_RETAIL_COST",
"VARIANT_CODE", "TRANSACTION_DATE_PERIOD_ID", "BSI_OUTLET_NUMBER" FROM "A_SALES_DAILY_FACT"
WHERE "A_CALENDAR_DIM"."RETAIL_YEAR" = 2005

When I click on the CHECK box, I get ...
The SQL syntax is not valid. ORA-00904 "A_CALENDAR_DIM"."RETAIL_YEAR" invalid identifier (this is the last line of code)

If I take out everything after the where clause, the syntax checks out ok? So I assume the double quotes are ok and its something to do with the way it's trying to bind to this other table. I'm not an Analysis Services expert by any means so don't know about query binding and how this works without a join etc. Any help would be appreciated.

NB. The cube worked on the old SQL2000 AS when it was last processed but doesn't against this new SQL2008 R2 implementation.

Thanks
Post #1474158
Posted Tuesday, July 16, 2013 9:37 PM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Yesterday @ 1:01 PM
Points: 1,166, Visits: 1,191
A couple dumb questions:

1) Is there a RETAIL_YEAR column in your A_SALES_DAILY_FACT table? (I can't imagine why there wouldn't be if you just upgraded the DW db from 2000 to 2005 -- I told you it is a dumb question)

2) Does the SELECT work in SSMS against your DW db? (also try it without the double quotes, does that work?)

HTH,
Rob
Post #1474358
Posted Wednesday, July 17, 2013 2:21 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, June 27, 2014 3:23 AM
Points: 141, Visits: 522
Hi, thanks for the response.

1) yes there is

2) it does the same with or without quotes ie fail the syntax check. It checks ok syntacically if I remove the where clause with or without the quotes. It won't work as a query as there is no join on the table in the where clause. Like I say I assume that's because it's a 'query binding' type so I'm guessing this will only work as a AS partiion not a SQL query.

We have other old partitions that have similar code, so I think there might be something different between the 2000 & 2008 editions that isn't now compatible or needs writing a different way!?

Post #1474442
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse