Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Unable to create Data Sources records

Posted on by Microsoft Employee

I have tried creating Data Source records from System>Administrator> Virtual Entity Data Sources . I have previously consumed data through the Data Sources but from the past two days am not able to create a Data Source itself. This error first was noticed on a trial instance in India and later for a trial instance in North America.

The error details are as follows:

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: An unexpected error occurred.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ActivityId>06f66b2f-edd8-46ee-afcc-b3873b916dbc</ActivityId>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">
<KeyValuePairOfstringanyType>
<d2p1:key>ApiExceptionSourceKey</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Plugin/Microsoft.Xrm.DataProvider.JsonConverter.Plugins.JsonConverterCreatePlugin</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiOriginalExceptionKey</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">Microsoft.Crm.CrmException: An unexpected error occurred. ---&gt; System.IO.FileLoadException: Could not load file or assembly 'Microsoft.D365.ServicePlatform, Version=4.0.368.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
at Microsoft.Xrm.DataProvider.Logger.XrmLogger..ctor(ILoggerFactory loggerFactory)
at Microsoft.Xrm.DataProvider.JsonConverter.Plugins.LogContextFactory.Create(ILoggerFactory loggerFactory, ILoggerFactory servicePlatLoggerFactory, IDataProviderContext dataProviderContext, String sdkMessageName, String pluginName)
at Microsoft.Xrm.DataProvider.JsonConverter.Plugins.Bootstrapper.Bootstrap(IServiceProvider serviceProvider, String pluginName)
at Microsoft.Xrm.DataProvider.JsonConverter.Plugins.JsonConverterCreatePlugin.Execute(IServiceProvider serviceProvider)
at Microsoft.Crm.Extensibility.V5PluginProxyStep.ExecuteInternal(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
--- End of inner exception stack trace ---
at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.PipelineInstrumentationHelper.Execute(Boolean instrumentationEnabled, String stopwatchName, ExecuteWithInstrumentation action, PipelineExecutionContext context)
at Microsoft.Crm.Extensibility.Pipeline.&lt;&gt;c__DisplayClass1_0.&lt;Execute&gt;b__0()</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiStepKey</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">1d0f14d0-ce1e-e811-a980-000d3a192e9a</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiDepthKey</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">1</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiActivityIdKey</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">06f66b2f-edd8-46ee-afcc-b3873b916dbc</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiPluginSolutionNameKey</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value>
</KeyValuePairOfstringanyType>
<KeyValuePairOfstringanyType>
<d2p1:key>ApiStepSolutionNameKey</d2p1:key>
<d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">System</d2p1:value>
</KeyValuePairOfstringanyType>
</ErrorDetails>
<Message>An unexpected error occurred.</Message>
<Timestamp>2018-03-13T10:38:50.7919131Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText>

[Microsoft.Xrm.DataProvider.JsonConverter.Plugins: Microsoft.Xrm.DataProvider.JsonConverter.Plugins.JsonConverterCreatePlugin]
[1d0f14d0-ce1e-e811-a980-000d3a192e9a: External plug-in implementation]


</TraceText>
</OrganizationServiceFault>

Could anyone let me know any solutions as to how to fix this.?

PS: The Data Source is created on a completely uncustomised trial Dynamics instance.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Unable to create Data Sources records

    This is just a FYI

    Microsoft confirmed to me the error exists, but nothing more.

    I just tried this again a month later.

    I *can* create the virtual data source now, but when I advanced search on the virtuak entity, I get the error "Entity could not be retrieved from data source" even for the simple example of connecting to CRM entity account with external fields accountid and name.

    This happens when connecting to instances using version 8.2 and 9.0

    I can, however, create a virtual entity using the Technet example https://blogs.technet.microsoft.com/lystavlen/2017/09/08/virtual-entities/

  • Rodrigo Groener Profile Picture
    Rodrigo Groener 20 on at
    RE: Unable to create Data Sources records

    Same Error for me.

  • Brackee Profile Picture
    Brackee 245 on at
    RE: Unable to create Data Sources records

    I am experiencing the same issue, in both my environments. Hope this will be fixed in the 9.0.2 update.

  • Shahbaaz Ansari Profile Picture
    Shahbaaz Ansari 6,203 on at
    RE: Unable to create Data Sources records

    Thanks Nro for sharing the information

  • CU23052011-0 Profile Picture
    CU23052011-0 130 on at
    RE: Unable to create Data Sources records

    I finally got a response from Microsoft. They said it is a known issue and will be fixed in the upcoming weekly release.
    There is no ETA when the next release will be available.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Unable to create Data Sources records

    I still get this error on a nontrial instance.

    I have a ticket open for this but no feedback still. 

    I'm hoping the upgrade to 9.0.2 will fix this

  • DivyeshA Profile Picture
    DivyeshA 10 on at
    RE: Unable to create Data Sources records

    Hi Neil Ryan,

    Any update on this yet? I am still getting the same error as above even today.

  • CU23052011-0 Profile Picture
    CU23052011-0 130 on at
    RE: Unable to create Data Sources records

    Hello Neil,

    I am curious, did you get this issue resolved?

    We are also experiencing the same issue. We log a ticket with MSFT since last week and its silence on their side, they are unable to provide with any kind of update.

    Thank You

    Nro

  • Suggested answer
    Shahbaaz Ansari Profile Picture
    Shahbaaz Ansari 6,203 on at
    RE: Unable to create Data Sources records

    Hi Ryan,

    If it is urgent for you then you can raise a ticket with Microsoft support.

    If you find it helpful, please mark my answer as Verified.

    Best regards,

    Shahbaaz

  • crisfervil Profile Picture
    crisfervil on at
    RE: Unable to create Data Sources records

    Exact same problem here :(

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans