Showing posts with label CRM Reporting Services. Show all posts
Showing posts with label CRM Reporting Services. Show all posts

Tuesday, 8 March 2016

CRM 2015 - Reports - SPN / SSPI Problems

 Running a report on CRM and if you fin an error message similar to this:

If you see an error like this:

Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Query execution failed for dataset 'DSMain'. ---> Microsoft.Crm.Reporting.DataExtensionShim.Common.ReportExecutionException:
Microsoft.Crm.CrmException: An unexpected error occurred.
System.ServiceModel.Security.SecurityNegotiationException: A call to SSPI failed, see inner exception.
System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception.
System.ComponentModel.Win32Exception: The target principal name is incorrect ---> 


It means the CRM App Pool service account SPN is not configured properly and usually the fix is the one described below:


On the CRM App Server run the following commands:

setspn  -a  HTTP/[Crm App Server Name]  [Domain]CRMAPP_Account
setspn  -a  HTTP/[Crm App Server FQDN]  [Domain]CRMAPP_Account

The Crm App Server FQDN might be something like CrmAppServerName.domain.com or something slightly different, so you'll need to figure this out for your specific environment. For example, if your server name is CrmAppServer and your domain is FooDomain.local you will have something like the following:

setspn  -a  HTTP/CrmAppServer  FooDomainCRMAPP_Account
setspn  -a  HTTP/CrmAppServer.FooDomain.local  FooDomainCRMAPP_Account

After, if SQL also runs under a domain account we'll need to log onto the SQL server and run the following commands for the SQL account:


setspn  -a  MSSQLSvc/[SQL Server Name]:1433 [Domain]SQL_Account
setspn  -a  MSSQLSvc/[Sql Server FQDN]:1433 [Domain]SQL_Account


Hope it helps.

Thursday, 3 March 2016

CRM 2015 - Report Wizard - Duplicating Datetime Columns

  was creating a report from the CRM 2015 Report Wizard and i just ran the Report where i saw that a date time column was appearing two times, one with the formatted value from my options, in the case English(Ireland) format (01/01/2016 03:00:00) and the next unformatted, something like 2016/01/01 03:00:00 AM.

After digging quite a bit i have discovered that the Body XML on the database had the column in there, and for me, no direct updates/deletes/creates in the database, so i tried to find the reason.

I have discovered from one of my search results that inside the folder (your drive)/Program FilesMicrosoft Dynamics CRMSetupServiceabilityLatestActions_OrgInstall the file (dbupdate_37910.sql) could solve the problem. 

I have opened the file where i saw: 

-- CRMSE 37910 - Wizard reports when exported to excel should not duplicate the unformatted columns.

Having in mind that probably those files that start with "dbupdate_" will solve few issues similar to this one.

For me, i will give more attention to that folder from now on.

Before running the sql against each organization i advise you to perform a BACKUP on the database, it is better to prevent any possible damages when executing this kind of operations.


Hope it helps.

CRM 365 Cloud - Disassociate 2 records using typescript

In case you need to Disassociate 2 records, please find below the code that allows you to do that.      export async function DissociateE...