Salesforce

Dynamics CRM Troubleshooting (Magic xpi 4.12)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

Dynamics CRM Troubleshooting (Magic xpi 4.12)

Q

When using the Dynamics CRM connector to add an attachment to an email, I cannot open the attachment through the Magic xpi Studio and I get the "Error 1250: Dynamics CRM call error: com.magicsoftware.ibolt.dynamicscrm.IBDynamicsCRMException: createOperation (AxisFault): Server was unable to process request." Error. How can I prevent this happening?

A

To successfully open such an attachment, you first need to convert the body of the email from BLOB to Base64 with the BlobToBase64 function. For example, BlobToBase64 (File2Blb ('D:\1.txt')).

Q

Why am I getting the “Metadata contains a reference that cannot be resolved: 'https://nordicguaranteesandbox.crm4.dynamics.com//XRMServices/2011/Organization.svc?wsdl&sdkversion=8.1'” error when I try to fetch the list of organizations' names from the Dynamics CRM server?

A

To resolve this issue, make sure that your .NET framework is configured to support TLS 1.2.

.NET 4.0 does not enable TLS 1.2 by default. To enable TLS 1.2 by default perform the following steps:

In the following two registry keys, set the SchUseStrongCrypto DWORD value to 1:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319

Q

Why does the Dynamics CRM component fail at runtime and does not show any result while querying single record without displaying any error message?

A

This could happen due to the permission issues in registering 64-bit COM objects on Windows, the installer will not be able to do the same automatically. The registration of the Assembly needs to be done manually following the steps below:

All the commands mentioned below would need to be executed with the administrator rights.

  1. Un-register any existing 32-bit DynamicsCRM2013.dll file using RegAsm.exe utility located at c:\Windows\Microsoft.NET\Framework\v4.0.30319\ as follows: C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm /u "c:\<Magic xpi installation>\Runtime\Magic xpa\DynamicsCRM2013.dll" /tlbIf the assembly is not already register the command will return an error. This is OK.

  2. Register DynamicsCRM2013.dll using RegAsm.exe utility located at C:\Windows\Microsoft.NET\Framework64\v4.0.30319\

Command to register dll:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\regasm "<Magic xpi installation>\Runtime\Magic xpa x64\DynamicsCRM2013.dll" /tlb /codebase

If you get error related to registry permission, like shown in image below you will need to run the next step:

  1. To register DynamicsCRM2013.dll you may need to give permission to current user as follows:

    • For key HKEY_CLASSES_ROOT

    1. Open registery editor using the command regedit

    2. Right Click on HKEY_CLASSES_ROOT

    3. Click on Permissions

    4. Click on ALL APPLICATION PACKAGES

    5. Click on Advanced button

    6. Click Change link and enter the current user and click OK. Apply.

  1. Then give Full Control permission to Administrator and Users as shown in image below:

  • Expand root key HKEY_CLASSES_ROOT and select subkey Queue: To give the permissions follow the same steps from c) to g) as above.

  • Expand the key HKEY_CLASSES_ROOT > Queue and select subkey CLSID: To give the permissions follow the same steps from c) to g) as above.

  • Expand root key HKEY_CLASSES_ROOT and select subkey Service: To give the permissions follow the same steps from c) to g) as above.

  • Expand the key HKEY_CLASSES_ROOT > Service and select subkey CLSID: To give the permissions follow the same steps from c) to g) as above.

See below two images:

  • Follow steps c) to g) as above to give permissions to the root level keys HKEY_CURRENT_USER and HKEY_LOCAL_MAHCINE as of HKEY_CLASSES_ROOT key.

  1. After completing registry permissions, register DynamicsCRM2013.dll using RegAsm.exe utility located at C:\Windows\Microsoft.NET\Framework64\v4.0.30319\

Command to register dll:

C:\Windows\Microsoft.NET\Framework64\v4.0.30319\regasm "c:\Magic xpi 4.12\Runtime\Magic xpa x64\DynamicsCRM2013.dll" /tlb /codebase

After registration, the user may see a warning as seen below which is safe to ignore.

Reference
Attachment 
Attachment