I have a SSRS sub-report that uses an XML datasource which works fine in BIDS or when deployed and run from the SSRS server, however once deployed as a report in Microsoft Dynamics CRM 2011 it fails to run when called from CRM as SSRS throws the following exception:
Microsoft.ReportingServices.ReportProcessing.ProcessingAbortedException: An error has occurred during report processing. --->
Microsoft.ReportingServices.DataExtensions.XmlDP.XmlDPException:
The data extension supports Windows Integrated Security and No Credentials (anonymous request) only.
The parent report uses FetchXML to load some data which is then passed into the sub-report as parameters. CRM automatically passes through UserID/OrganizationID are credentials to any reports, which is correct since the credentials are required in order to call the FetchXML in the parent report, however judging from the exception it would appear to me that the sub-report is also (incorrectly?) inheriting the data source credential settings from the parent reports, despite the sub-report using an entirely different type of data source and credential setting.
If sub-report is published in CRM and is run by itself then it also works fine, but this doesn't meet business needs. The sub-report must be wrapped in the parent report in order to pass user selectable parameters through.
Are there any methods of overriding this behavior, perhaps some custom code in the sub-report that can force the XML data source to use the 'Do not use credentials' setting?