"Errors in the OLAP storage engine: The sort order specified for distinct count records is incorrect"

اگر یک measure از نوع count distinct تعریف کردید و در هنگام deploy با پیغام زیر مواجه شدید کافی است تا به ترتیب زیر عمل کنید:


"Errors in the OLAP storage engine: The sort order specified for distinct count records is incorrect"


  • از داخل محیط SQL Server Management Studio به Analysis Services متصل شوید
  • روی نام سرور right click کرده و properties بگیرید
  • گزینه Show Advanced  - All  را انتخاب کنید و مسیر زیر را بیابید
  • OLAP \ Process \ CheckDistinctRecordSortOrder
  • مقدار آن را به 0 تغییر دهید
  • حالا به محیط SSDT بروید و Deploy را با موفقیت به انجام برسانید