Capture SSAS drillthrough error for SSRS

Terry St Jean 81 Reputation points
2022-12-23T19:53:18.12+00:00

I have a MDX query which sometimes return the error
Drillthrough failed because the coordinate identified by the SELECT clause is out of range.
The data from this MDX query is used as the datasource for an SSRS report.
Is there anyway to monitor for this error so in the report, I could return a message to the use that "There was no data found".

This is the mdx
DRILLTHROUGH
Select (
[Measures].[Asset User Account - Added] ,
[Asset].[Asset].&[1] ,
[Asset User Account].[User Account Type].&[User]
) on 0 From [Asset]
RETURN [$Asset User Account].[Asset User Account] , [$Asset User Account].[User Account Description] , [$Date].[Date]

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,067 questions
SQL Server Analysis Services
SQL Server Analysis Services
A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
1,344 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2022-12-26T05:59:40.667+00:00

    Hi @Terry St Jean
    Do you mean that the message "There was no data found" is returned when there is no data in the report Tablix? Then you can use the NoRowMessage property in the Tablix properties.
    273947-1.png

    Displayed normally when data can be retrieved.
    274001-2.png

    Returns "There was no data found" when no data is found.
    273973-3.png
    273992-4.png

    Best regards,
    Aniya

    0 comments No comments

  2. Terry St Jean 81 Reputation points
    2022-12-28T12:55:36.933+00:00

    I tried the suggestion of setting the NoRowsMessage but the message doesn't show because the underlying MDX query throws and error.
    274537-image.png
    I guess I will have to figure a solution for the query first.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.