Cannot connect to remote MS Dynamics CRM Fetch XML datasource from SSRS - reporting-services

I have Office 365 with Microsoft Dynamics CRM which contains business data and I have SQL Server Reporting Services on a stand-alone server that serves as a report container and my ASP.NET websites can execute these reports and people can deploy reports there.
In Visual Studio I've created Fetch XML datasource for my report supplying CRM server credentials and report runs smoothly, no problems at all. When I deploy it on SSRS server I can't execute it with the same credentials, it just throws following error:
Guid should contain 32 digits with 4 dashes
(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
Ok, no big deal. I googled it and found out I had to enter SystemUserId and OrganizationId in credentials, although I couldn't query them directly on SQL Server I managed to get these values through MS Dynamic CRM. Entered them in datasource's login and password inputs, clicked "Test connection" and I got this error:
System.Data.SqlClient.SqlException: The EXECUTE permission was denied on the object 'p_GetCrmUserId', database 'MSCRM_CONFIG', schema 'dbo'.
Ok, google it again and obviously I have to fix SQL Server user permissions and I don't have any access (and never will) to MS Dynamics CRM's SQL Server to fix permissions issue. Why does it work in Visual Studio, but fails on SSRS server? What do I do to fix this conenction issue? Thanks.

You will not be able to run Fetch XML reports locally against a Dynamics CRM Online instance. You would need to deploy those reports to the Dynamics CRM Online organization and run them from Dynamics CRM.
It works in Visual Studio because the CRM Report Development extension makes it work for development, but it cannot be deployed directly to an SSRS server - the Fetch XML reports can only be deployed through Dynamics CRM to the SSRS server configured in CRM.

Related

SSRS connection to an existing instance

I have a SQL 2012 instance called LTT which contains a database called ReportServer$LTT. I have installed SSRS 2017. After the installation of SSRS2017 it is using SSRS as its Report Server Instance. But I need it to use LTT. How do i change the Report Server Instance? Using SQL Management Studio I am unable to connect to <servername>\LTT Report Server and I get the following error:
The Reporting Services instance could not be found.
(MS.sqlserver.managment.UI.RSClient)
I am also unable to connect to: \SSRS and get this error:
Unable to connect to the server at \SSRS. The specified
URL might not be valid or there might be a problem with the report
server version of configuration. Specify a different URL....
You'll need to remote desktop to the report server. Then open Reporting Services Configuration Manager.
Click on the "Database" tab. From there you'll be able to change the database the report manager uses.

CRM 2011 SDK - Re-Publish Reports

Sometimes it is necessary to republish the CRM reports by going to C:\Program Files\Microsoft Dynamics CRM\Tools\ on the server and running PublishReports.exe (http://community.dynamics.com/crm/b/crmguyriddle/archive/2008/06/26/re-publish-crm-reports-in-srs.aspx).
Is there an CRM 2011 SDK method to do this from code (C#)? I want to do this from an application running on a remote machine.
There is no CRM SDK method to do what PublishReports.exe does. PublishReports.exe calls methods from the CRM setup DLLs (not part of the SDK and are not available to the CRM server code itself.)
In short, what PublishReports.exe does is exactly what the CRM Org Setup process does to get the reports to SQL RS - first, it creates the shared data sources and then it reads the report information from the Org DB (using SQL) and calls the SSRS webservice to publish the reports.
You can look at the public methods (ConfigureReports and OrganizationPublishReportsScaleGroup in Microsoft.Crm.Setup.Server.Utility (located in the same directory as PublishReports.exe) but this is completely undocumented and unsupported. I'm not sure it would work.

SSRS Datasource connection to SQL Azure Data don't work from web based reports

I'm unable to generate a report from the web based interface (Report Manager). The same report in my Visual Studio project works perfectly.
The error which appear when trying to generate the report from the web is
"Cannot create a connection to data source"
The log file error is the fallowing
Cannot get edition information from catalog server.
The report data is retreived from an SQL Azure database.
How come the report can work inside my Visual Studio project but no more once deployed?
I've tried both SQL Server 2012 and SQL Server 2008 on fresh machines and both gives the same result.
Thanks,
After a half day of troubleshooting this issue, I discovered it was because the edition of SSRS I am using does not support Azure SQL Databases as a data source.
I am using 2008 Express Advanced Edition. It appears Standard or above is required for this.
See this article for more information:
http://www.sqlservercentral.com/blogs/sqltact/2016/09/25/sql-ssrs-express-edition-cannot-connect-to-azure-sql-databases/

ssrs reporting error in report preview: cannot create connection with datasource

I have a ssrs report which uses a shared dataset and a shared datasource. I can preview it without problems in my local workspace. Now I have copied the report to a remote computer where I modified the connection properties of the datasource. I cannot preview the report on this system, getting an error:
"error has occurred during report processing. execution error in the shared dataset. Cannot create a connection with datasource of shared dataset." (my translation, message is german)
I can create a connection to the server ("test connection" in datasource is successful) and access the data of the dataset in the query designer. What could be the problem here?
The issue is on the remote computer where the drivers are not installed or installed incorrectly.
I have had issues where the server is not set up but my pc is. As such my query designer worked but when published and run from the server it didn't.

tf208093 excel reporting from TFS 2012

I have TFS2012 with MSSQL on my single server.
I am getting the following error in Microsoft Excel to generating reports(graphs) for TFS Queries (from project admin account, connection by the network).
TF208093: You cannot use work item queries to generate reports in Excel on this server because it is not configured for reporting
At the same time there is NO error when i connect with windows server admin credentionals
any ideas?
Try use http://tfsadmin.codeplex.com/ to check the users permissions in SSRS.