July 16, 2013 at 8:39 am
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
July 16, 2013 at 9:37 pm
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
July 17, 2013 at 2:21 am
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!?
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply