Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: Import intersect entity #30

Open
norriqkve opened this issue Mar 26, 2021 · 0 comments
Open

Issue: Import intersect entity #30

norriqkve opened this issue Mar 26, 2021 · 0 comments

Comments

@norriqkve
Copy link

We are getting the following error on an import of an intersect entity

*** Error record: <null> ***
	Unable to cast object of type 'System.Guid' to type 'Microsoft.Xrm.Sdk.EntityReference'.
4	      
*** Exception:
System.InvalidCastException: Unable to cast object of type 'System.Guid' to type 'Microsoft.Xrm.Sdk.EntityReference'.
   at Cinteros.Crm.Utils.Shuffle.Shuffler.ImportDataBlock(IExecutionContainer container, DataBlock block, EntityCollection cEntities)
---------------------------------------------------------
      System.InvalidCastException: Unable to cast object of type 'System.Guid' to type 'Microsoft.Xrm.Sdk.EntityReference'.
   at Cinteros.Crm.Utils.Shuffle.Shuffler.ImportDataBlock(IExecutionContainer container, DataBlock block, EntityCollection cEntities)
      Unable to cast object of type 'System.Guid' to type 'Microsoft.Xrm.Sdk.EntityReference'.
      Innofactor.Crm.XTB.Shuffle
         at Cinteros.Crm.Utils.Shuffle.Shuffler.ImportDataBlock(IExecutionContainer container, DataBlock block, EntityCollection cEntities)
---------------------------------------------------------

Sample of the data file:

<Block Name="nrq_nrq_assettype_nrq_assettype" Count="19">
    <Entities>
      <Entity name="nrq_nrq_assettype_nrq_assettype" id="b7338001-8b03-eb11-a813-000d3a2c0643">
        <Attribute name="nrq_assettypeidone" type="Guid">8e1a0f97-2903-eb11-a813-000d3aae65d4</Attribute>
        <Attribute name="nrq_assettypeidtwo" type="Guid">505cb840-f5f8-ea11-a815-000d3aae65d4</Attribute>
      </Entity>
      <Entity name="nrq_nrq_assettype_nrq_assettype" id="d719a107-8b03-eb11-a813-000d3a2c0643">
        <Attribute name="nrq_assettypeidone" type="Guid">c7f03f3c-2a03-eb11-a813-000d3a2e9b6c</Attribute>
        <Attribute name="nrq_assettypeidtwo" type="Guid">505cb840-f5f8-ea11-a815-000d3aae65d4</Attribute>
      </Entity>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant