Back

Troubleshooting CRM Real-Time Map Issues

Published: Feb 13, 2013
Post Author Written by eOne Solutions

Troubleshooting a CRM Real-Time data source can be difficult because we can’t manually run the integration. This article will serve as a guide to the steps to follow to troubleshoot a CRM Real-Time data source integration that doesn’t run as expected.

Steps to troubleshoot CRM Real-Time Map Issues

Table of content

1. Setup the Error Log

2. Check the Log Action is set on real-time data source

3.  Run a test

4. Check System Job in CRM

5. Check Plugin in CRM

6. Understanding of Procedure for CRM Real Time Data Source

7. Credentials

8. Web Service

9. Event Viewer

1. Setup the Error Log

We will start by enabling and checking the SmartConnect error logs.

  1. Check that Errors are being saved by the integration
  2. Open Processes > Integration Processes
  3. Click Modify on the Realtime integration
  4. Navigate to the Options tab
  5. Make sure both Save Processing Errors and Save errors to System Events are checked
  6. Click Save

process errors
sc21 process error

2. Check the Log Action is set on real-time data source

  1. Navigate to Data Sources > Realtime Triggers
  2. Edit the Realtime data source
  3. Set the Log Action to Save Failures
  4. Click Validate
  5. Click Save
  6. Click Register
Log action 1

3.  Run a test

Now that we have verified all the logging settings are configured, we’ll run a test change and check the logs.

  1. Log into CE and make a change that should trigger the Realtime Integration.
  2. Next, switch to SmartConnect and open the Dashboard and monitor for the integration run. (it should show in the list within 1 minute)
Run map dashboard
sc21 run map
  1. No records are found
    1. To check if the record is being filtered out:
    2. Open the real-time data source and check the Restrict columns button including the field changed
    3. On the real-time data source check the define button isn’t filtering out your record.
  1. If the integration failed check the following.
    1. Open Processes > Error Processing
    2. Locate the Realtime integration in the list and expand the run errors
    3. Click Edit on the top error
Error Processing sc
  1. In the Process Errors window, click on the Red (!) button to view the error message
  2. If possible, resolve this error and run another test
Error Process Details
  1. Another place to check is Process History > System Events
  2. Search for the Integration Process Id
    • This will show all errors related to the process, including scripting errors
System Events sc
  1. Finally, we can check Process History > Realtime Request Logs
  2. Click on the Magnifying glass icon for the record that failed
  3. Click on the Download icon for the record that failed
RealTime Log

4. Check System Job in CRM

The real-time map does not run after creating, updating, or deleting a record in CRM

In CRM go to “Settings” and then “System Jobs”; you get a list of jobs in right hand side. Check the “Status Reason”, if failed “System Job Name” includes an error message and a detailed message having the Plugin Trace.

Realtime 1

Note: if “Status Reason” shows “succeeded” it does not necessarily mean that the map run is succeeded. It means that CRM has successfully triggered the web service.

  1. · Plugin registration fails.

Read error messages from “System Jobs”.
Check if the entity has a valid ID

CRM System Jobs

Note: To check if the entity has a valid ID, open the real time data source for the entity and click on “Define” button. Check if you have the valid ID (00000000-0000-0000-0000-000000000000) in front of the entity name in Criteria section.

If the valid ID is not there delete the data source and create it again.

5. Check Plugin in CRM

Check CRM to see if you have the plugin for the current version of SmartConnect:

Open CRM, go to Settings > Customizations > Customize the System, and click on “Plug-in Assemblies” to check the SmartConnect version.

Realtime 2

If the plugin version number is different from SmartConnect version number, delete all related “Sdk Message Processing Steps”, then delete the plugin assembly.

To create the correct plugin assembly register the CRM data source map in SmartConnect again.

6. Understanding of Procedure for CRM Real Time Data Source

Most Issues occur due to having incorrect plugins or CRM connector settings or having incorrect web service settings.

Diagram below shows SmartConnect web service procedure for CRM real time data source from outside.

CRMRealTime1

Create or Update Record

A new record is created or an existing record is updated in CRM.

Plugins and Connector Settings

Check CRM connector setting from the Setup:

· Do you have the correct CRM Server set?

Check if the URL is pointed to the correct location of CRM server.

7. Credentials

· Is the Authentication type correct?

Depending on the type of Microsoft CRM you are using, you need to use different type of authentication.

Active Directory: enables access to Microsoft Dynamics CRM inside the network

Internet Facing Deployment (IFD): Provides access to Microsoft Dynamics CRM externally from the Internet

If default credentials have been specified in CRM 2011 setup those credentials are used when connecting to CRM. If default credentials have not been specified the credentials of the current AD user are used to connect to the CRM 2011 web service.

Microsoft CRM online: As CRM 2011 Online requires Microsoft Live ID Authentication, default credentials must be defined in CRM 2011 setup in order to connect to CRM online. These credentials will then be used by all users to connect to CRM Online.

Microsoft Online Federation: Where the CRM Online account is linked to office 365.

Note: There is a security restriction that enables only privileged users to register plug-ins. For plugins that are not registered in isolation, the system user account under which the plug-in is being registered must exist in the Deployment Administrators group of Deployment Manager.

8. Web Service

Check “Real Time Data Source Setting Section” to see if you have the correct Web Service set:

Note:

  • Only the HTTP and HTTPS protocols are allowed.
  • Access to local host is not permitted.
  • IP addresses cannot be used. You must use a named Web address that requires DNS name resolution.

9. Event Viewer

Check event viewer on the IIS server that SmartConnect web service is installed by going to:
Computer > Manage >Event Viewer

If you have any additional questions feel free to email support@eonesolutions.com

Feeling stuck? Get the support and guidance you need to help you power through any data challenge

We're on your integration team. Connect with our people and let us know how we can help you.