Skip to main content

Notifications

Announcements

No record found.

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.

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.

  • Suggested answer
    Wahaj Rashid Profile Picture
    Wahaj Rashid 11,319 on at
    RE: SSRS Error: Query execution failed for dataset. The attribute cannot be found for entity. Specify a valid query, and try again.

    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans