Symptoms
During a processing time of a cube that contains a distinct count measure, the process fails with the following error message:
The sort order specified for distinct count records is incorrect
Cause
This is most likely caused by different sort order used on the data warehouse data set and the analysis service database data set.
Resolution
Modify the sort order of the data warehouse data set so that it will match with the analysis service database data set.
Into the Depth
Navigate to the analysis database and start to process the desired database. When the processing begins, the Process progress window will pop up. Wait till the process gets failed. After the process failed, find the failing measure group and expand to the last node where you can see an SQL query. Double click on the query and view the details. This query gives you the exact order by the column which caused you this trouble.
Execute the query using the data warehouse database. View the analysis service database data set and compare the result. There will be a mismatch between two data sets.
May the force be with you!
Execute the query using the data warehouse database. View the analysis service database data set and compare the result. There will be a mismatch between two data sets.
May the force be with you!
Comments
Post a Comment