Dynamics Import Error 0x8004F026 SOLUTION: The evaluation of the current component in the current...

Solution Import Error with Error Code: 0x8004F026

I recently came across an error that displayed the following text in the import log.

Error Text: The evaluation of the current component(name=Entity, id=[GUID] in the current operation (Update) failed during managed property evaluation of condition: The evaluation of the current component(name=Entity, id=[GUID] in the current operation (Update) failed during managed property evaluation of condition: Managed Property Name: [ManagedPropertyLogicalName]; Component Name: Entity; Attribute Name: [ManagedPropertyLogicalName];
Import log error Message: You cannot complete this action for this component because of the configuration of its managed properties. : Entity

Cause:

The error is from a mismatch in the managed properties for the Team entity. In regular English: There is a managed property in the sandbox environment with a value of False or True that does not match the value of the same managed property in the Live environment. Even simpler: There is a Zero where there should be a 1. It has been reported that this error can also occur for Marketing List, SystemUser, Team, CustomerAddress, Position, TransactionCurrency.


Identify where the mismatch exists:

  • Open the Import Error Log in excel (Instead of in a text editor). You will thank me for this.

  • Click on the 2nd tab labeled Components

  • Please note the columns shown (they will help you identify problems in the future)

  • Start in the status column and navigate to "Failure"

Import Log First Failure
  • Scroll to the next Failure

Import Log Second Failure
  • Click on the associated Error Text Cell

  • Below is the error I had, but I have removed the ID and replaced it with "GUID". The GUID looks like this xss123f4-5678-91cf-23a-cbe45678dc91, you'll know it when you see it.

The evaluation of the current component(name=Entity, id=GUID) in the current operation (Update) failed during managed property evaluation of condition: The evaluation of the current component(name=Entity, id=GUID) in the current operation (Update) failed during managed property evaluation of condition: Managed Property Name: canmodifymobileclientreadonly; Component Name: Entity; Attribute Name: canmodifymobileclientreadonly;

You are now going to create and open 2 URL's with the Dynamics Web API

Create the first URL

  • Copy the GUID from the previous step and paste it into the URL below

  • https://orgdev.crm.dynamics.com/api/data/v9.0/EntityDefinitions(GUID)

  • Change orgdev to your organizations dev environment URL

  • Finished Example of the 1st link: https://orgdev.crm.dynamics.com/api/data/v9.0/EntityDefinitions(xss123f4-5678-91cf-23a-cbe45678dc91)

  • Open the link you just created in a new tab

NOTE: If you open this link with Firefox, the JSON will return in a much easier to read format

  • If you open the link and it looks like a giant mass of text, click on this link, copy the code into the left box and select the Beautify button in the middle of the screen

  • The beautified code will appear in the right box

Create the second URL

  • Copy the finished URL above and replace orgdev with your live environment's domain

  • Finished Example of the 2nd link: https://org.crm.dynamics.com/api/data/v9.0/EntityDefinitions(xss123f4-5678-91cf-23a-cbe45678dc91).

  • we removed "dev" from orgdev in our example

  • Open this link in a new tab next to your previous tab

Compare the two pages

  • Before you search for anything, try identifying the difference between the two pages! This will greatly help you identify problems in the future.

  • Reference your excel import log error text:

The evaluation of the current component(name=Entity, id=GUID) in the current operation (Update) failed during managed property evaluation of condition: The evaluation of the current component(name=Entity, id=GUID) in the current operation (Update) failed during managed property evaluation of condition: Managed Property Name: canmodifymobileclientreadonly; Component Name: Entity; Attribute Name: canmodifymobileclientreadonly;
  • Search for Property Name or Attribute Name within the error text

  • Search for that value within the two web pages

Development Environment

"IsReadOnlyInMobileClient": {

"Value": false,

"CanBeChanged": false,

"ManagedPropertyLogicalName": "canmodifymobileclientreadonly"

},

Live Environment (Target Instance)

"IsReadOnlyInMobileClient": {

"Value": true,

"CanBeChanged": false,

"ManagedPropertyLogicalName": "canmodifymobileclientreadonly"

},

  • You will see canmodifymobileclientreadonly is within the attribute IsReadOnlyInMobileClient

  • Take note of this attribute, you will search for it within the customizations file

What is wrong?

  • The "Value" for the dev environment is false, and the value for the live environment is true

  • We need to change "false" to "true" in our customizations file so it will match the live environment

How to change the value

  • Unzip the solution export file

  • open the customizations.xml file

  • I use Notepad ++, you can download it here

  • Go to settings, and select "Style Configurator" to change the look




  • Let it load, this file could be very large depending on your system's customizations

XML Example of entity opening tag
  • Hold down Control F to open up search

  • Replace "account" with the corresponding entity noted in the import log error, as shown below

  • I searched for <entity Name="Team">

  • Again, LET THE SEARCH LOAD, it can take a while

  • You should see the entity highlighted once it loads

  • Now search for one of the Attribute Names that we found in the Web API, IsReadOnlyInMobileClient, or canmodifymobileclientreadonly

IsReadOnlyInMobileClient equals 0, Change to 1
  • The zero represents the false value we saw in the Web API

  • Change it to 1, to match the live environment

  • Save the file and close it

Rezip and upload

  • Navigate to the solution file that contains the customizations.xml file you just saved

  • Select all the files, right click select send to and then select Compressed (zipped) folder, shown below

  • Name the new zipped file something sensible and upload the file into your live environment!

I try my very best to provide simple instructions for problems that I encounter and would really appreciate any feedback, even a thanks this helped me really does let me know that I am making a difference and drives me to do better. All suggestions are appreciated and please leave any sources that could improve my understanding.


Please like and share to other forums that encounter this problem.

© 2023 by Clark and Ali

  • LinkedIn Social Icon