Ran into an interesting issue when trying to import a solution into both Dynamics 365 on premise and Dynamics 365 online. Background: Did some major tweaking to some OOTB processes and decided to turn them off/deactivate them. Honestly can’t remember exactly how I broke it. But the fix is simple.

The exact error:

Import has encountered an error and has been canceled. Your system has been restored to its original state. This customization file contains a reference to an entity map that does not exist on the target system.

The solution to this is as followed:

  1. (Optional) Move the broken solution into a folder where you can extract and manage the files.
  2. Extract the solution file.
  3. Open the customisations.xml file.
  4. Search for parts of the “Name” within the customisations file, in my case I searched for “toop” (With only 1 occurrence) which looked like:

This piece of XML was causing the issue. The EntityTarget did not exist anywhere else and was causing the problem.

  1. Delete the above XML section from the customisations.xml file.
  2. Save the file.
  3. Copy the new xml file into the original downloaded solution.
  4. Re-Import the solution back into CRM.

Solution should now import.

From here onwards: Make sure you do any sort of patching as a patch.

October 9, 2017

Dynamics 365 – Import has encountered an error and has been canceled. Your system has been restored to its original state. This customization file contains a reference to an entity map that does not exist on the target system.

Ran into an interesting issue when trying to import a solution into both Dynamics 365 on premise and Dynamics 365 online. Background: Did some major tweaking […]
October 6, 2017

Dynamics CRM – Javascript Xrm.Page.ui.getFormType()

There are hundreds of blogs which show you this: Form Type Value Undefined 0 Create 1 Update 2 Read Only 3 Disabled 4 Quick Create 5 […]
October 5, 2017

CRM 2016 JS – ReferenceError: is not defined at eval (eval at RunHandlerInternal)

  [crayon-5dabaa100329c391758547/] Had an issue when attaching some code to the onload event on the leads entity. The TL;DR of the issue is that your code […]
October 2, 2017

Dynamics CRM 2016 – Create record with JavaScript

Original post here: https://365dynamicscrm.wordpress.com/2016/02/18/webapi-javascript-to-create-a-record/ [crayon-5dabaa10034f3304920354/]   Going to make some assumptions that the account[“name”] can be set with Xrm.Page.getAttribute(“blah”).getValue(). There is a reason I’m not using […]
September 25, 2017

I know the feeling (Blog link)

I too, dislike being classified as a Dynamics Developer. Go read: This
September 21, 2017

SharePoint Online: Reorder term store

Sigh. Open the Term Store Management Tool. Open the Term Set you want to re-order Click the ‘Custom Sort’ tab. Re-Tab by changing the drop down […]
June 5, 2017

Dynamics CRM – Creating an instance of the COM component with CLSID {080D0D78-F421-11D0-A36E-00C04FB950DC} from the IClassFactory failed due to the following error: 800401e4 Invalid syntax (Exception from HRESULT: 0x800401E4 (MK_E_SYNTAX))

TL;DR: Reboot your web front end and reboot where the deployment manager is located. EDIT: TL;DR-2: Make sure the services you’re trying to connect to are […]
May 10, 2017

Windows Server 2012 – The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.

Your IIS configuration is missing something. Here’s the fix for Windows Server 2012 Server Manager Add roles and features Next next next next (Till you get to […]
April 25, 2017

Get Dynamics CRM Organisation ID to manage AD groups

Once again, I’ve taken control of a (few) Dynamics environments, each having been setup slightly differently (Account per service, single account across all services, user accounts […]
April 6, 2017

CRM 2011 – SSRS – The target principal name is incorrect

It’s not considered stealing if I wrote it myself – Putting it here for self-self-self reference as this bit me in the ass today. [crayon-5dabaa1003b12229726589/] My original post […]