Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Trying to load CRM report using reportexecution2005 web service fails

Posted on by Microsoft Employee

Hi

I followed the sample in this link to generate pdf report using the reportexecution2005  web service, in dynamics crm 2015, but I get the following error:

An unhandled exception of type 'System.Web.Services.Protocols.SoapException' occurred in System.Web.Services.dll

Additional information: An attempt was made to set credentials for a data source 'CRM' associated with the report. Report data source settings are specified in a way that prevents credentials from being submitted to the report server. ---> Microsoft.ReportingServices.Diagnostics.Utilities.DataSourceNoPromptException: An attempt was made to set credentials for a data source 'CRM' associated with the report. Report data source settings are specified in a way that prevents credentials from being submitted to the report server.

Error being thrown at following line of code, when reaches to rs.SetExecutionCredentials line.

DataSourceCredentials[] credentials = new DataSourceCredentials[1];
credentials[0] = datasetCredential;
rs.SetExecutionCredentials(credentials);

Is there a way to solve this ? 

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Trying to load CRM report using reportexecution2005 web service fails

    Hi

    I use 12.0.200 Version. I did not understand "BIDS 2008 R2", but our sql server version is 2014.

    I have already deployed the report and it is being shown in Dynamics CRM Reports.

    I have checked the log and did not find anything regarding access.

  • Rao Rapolu Profile Picture
    Rao Rapolu 470 on at
    RE: Trying to load CRM report using reportexecution2005 web service fails

    what version of SSRS? have you tried on BIDS 2008 R2

    I never used 2005 but 2008 R2 worked fine for me for CRM reports.

    have you deployed any reports previously on this server?

    Check credential access with SSRS server and CRM server

    do you see anything in the trace log of CRM server if preventing access?

    also check SSRS logs too

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Trying to load CRM report using reportexecution2005 web service fails

    Hi

    SSRS/SQL report

  • Rao Rapolu Profile Picture
    Rao Rapolu 470 on at
    RE: Trying to load CRM report using reportexecution2005 web service fails

    fetchxml or standard SSRS/SQL report?

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans