web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

SSRS Error: Query execution failed for dataset. The attribute cannot be found for entity. Specify a valid query, and try again.

(0) ShareShare
ReportReport
Posted on by 5

I am developing an SSRS report for a Dynamics 365 client.  I have developed reports for other clients without any issues, but for some reason I am unable to add any custom attributes to the FetchXML without getting the error mentioned above.  I have set up the Data Source connection string as follows:

https://[MyClientInstance].crm.dynamics.com;[UniqueNameFromDeveloperResources]

I used Advanced Find to develop the initial query and then copied the FetchXML in the Query window of the Data Source in SSRS.  I am able to refresh the fields.  I am also able to run the FetchXML in the Query Designer window.  It returns records, including all custom fields, without a problem.

The only time I am having an issue with the query is when I attempt to preview the report.

I am using Visual Studio 2015.

I have the same question (0)
  • Suggested answer
    Wahaj Rashid Profile Picture
    11,323 on at

    Hi,

    This usually happens when the connection string is incorrect.

    Can you make sure:

    • Client instance is crm.dynamics.com (it could change depending on the region), for example, in my region, it is,  crm4.dynamics.com
    • Secondly, make sure the Unique organization name is correct (case sensitive).

    Let me know if you still face this problem.

    Best,

    Wahaj

    (if it helps, mark it verified)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Nagaraju_Matta Profile Picture

Nagaraju_Matta 123

#2
Hamza H Profile Picture

Hamza H 112 Super User 2026 Season 1

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 70 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans