SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Process partition errors after cube migration


Process partition errors after cube migration

Author
Message
simon.letts
simon.letts
Old Hand
Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)

Group: General Forum Members
Points: 329 Visits: 606
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
robert.gerald.taylor
robert.gerald.taylor
SSCommitted
SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)SSCommitted (1.8K reputation)

Group: General Forum Members
Points: 1791 Visits: 1484
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
simon.letts
simon.letts
Old Hand
Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)Old Hand (329 reputation)

Group: General Forum Members
Points: 329 Visits: 606
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!?
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search