dbTalk Databases Forums  

The sort order specified for distinct count records is incorrect.

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss The sort order specified for distinct count records is incorrect. in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Acius
 
Posts: n/a

Default The sort order specified for distinct count records is incorrect. - 02-13-2006 , 12:07 AM






Getting the following error
Errors in the OLAP storage engine: The sort order specified for distinct
count records is incorrect.

setting CheckDistinctRecordSortOrder to 0 gets around the error but why does
it happen?

Since Analysis Services 2005 generates the query and the sort wouldn't it
have to be in the correct order?
The query being run has
ORDER BY "AS_PAYROLL_VCZP"."EMP_ID" ASC
so the sort is happening.

The problem has only happened on queries returning 1 million+ records, could
the message be volume(or time to process) related?

Thanks

Reply With Quote
  #2  
Old   
Peter Yang [MSFT]
 
Posts: n/a

Default RE: The sort order specified for distinct count records is incorrect. - 02-13-2006 , 05:08 AM






Hello,

You may want to check the data type of the column having distint count
aggregate function. OLAP distinct count requests numerical data type. Also,
you more want to try different cube to see if it could be reproduced. If
the issue occurs consistently only for for 1 million+ records, this could
be a volume related issue. Since we are not able to find any known issue in
our database, this has been reported to the proper channel.

To find out the root cause of this issue we may need to analyze memory
dumps, this work has to be done by contacting Microsoft Product Support
Services. Therefore, we probably will not be able to resolve the issue
through the newsgroups. I recommend that you open a Support incident with
Microsoft Product Support Services so that a dedicated Support Professional
can assist with this case. If you need any help in this regard, please let
me know.

For a complete list of Microsoft Product Support Services phone numbers,
please go to the following address on the World Wide Web:
http://support.microsoft.com/directory/overview.asp

Best Regards,

Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

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


--------------------
Quote:
Thread-Topic: The sort order specified for distinct count records is
incorrect.
thread-index: AcYwY8OmKqbHpXZTS2KcoX4hIzB6sA==
X-WBNR-Posting-Host: 203.202.23.100
From: "=?Utf-8?B?QWNpdXM=?=" <acius (AT) nospam (DOT) nospam
Subject: The sort order specified for distinct count records is incorrect.
Date: Sun, 12 Feb 2006 22:07:26 -0800
Lines: 17
Message-ID: <EB2D80DE-3BE1-4579-BC8E-A072DF317F63 (AT) microsoft (DOT) com
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.sqlserver.olap
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.olap:67148
X-Tomcat-NG: microsoft.public.sqlserver.olap

Getting the following error
Errors in the OLAP storage engine: The sort order specified for distinct
count records is incorrect.

setting CheckDistinctRecordSortOrder to 0 gets around the error but why
does
it happen?

Since Analysis Services 2005 generates the query and the sort wouldn't it
have to be in the correct order?
The query being run has
ORDER BY "AS_PAYROLL_VCZP"."EMP_ID" ASC
so the sort is happening.

The problem has only happened on queries returning 1 million+ records,
could
the message be volume(or time to process) related?

Thanks



Reply With Quote
  #3  
Old   
orion (Offline)
Junior Member
 
Posts: 1
Join Date: Mar 2006

Unhappy 03-09-2006 , 04:17 AM



I also get the same error.

However the situation is different. I have a cube that has been working fine for some time (about 2 months) which I feed through an SSIS package that performs a "Dimension Process Update" and a "Measure Incremental Update".

It worked fine until one day I got the error "The sort order specified for distinct count records is incorrect."
I tried some minor changes but nothing worked. I should note here the if I try to "Full process" the cube, it works fine so that leads me to think that there is nothing really wrong with the data.

I also tried to remove the DistinctCount measure and place it in a measure group on its own. This change allowed the incremental update to complete and feed proper data into the cube. Yet, the result for the DistinctCount measure was completely wrong.

Could it be that the sort order of the dimensions also has something to do in this?

Help anyone?

Andreas

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.