Skip to main content

Notifications

Customer Insights - Journeys forum

Created a Sandbox instance from Production instance with Markting Installed

(0) ShareShare
ReportReport
Posted on by 390

Hi,

I wanted to create a Sandbox instance from the Production Instance where we have Marketing installed but as I try the basics to just add a contact I get the following error:

Unhandled exception: 
Exception type: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]
Message: Exception 'InvalidPluginExecutionException' occured: Error during retrieval of Configuration Entity: entity doesn't exist., CorrelationId: 98a89bbe-2762-47f5-aeba-15d601b6654cDetail: 
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
  <ActivityId>566ad9f5-aba3-4e33-aba6-a3a65dd4ce59</ActivityId>
  <ErrorCode>-2147220891</ErrorCode>
  <ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic">
    <KeyValuePairOfstringanyType>
      <d2p1:key>OperationStatus</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">0</d2p1:value>
    </KeyValuePairOfstringanyType>
    <KeyValuePairOfstringanyType>
      <d2p1:key>SubErrorCode</d2p1:key>
      <d2p1:value xmlns:d4p1="www.w3.org/.../XMLSchema" i:type="d4p1:string">-2146233088</d2p1:value>
    </KeyValuePairOfstringanyType>
  </ErrorDetails>
  <Message>Exception 'InvalidPluginExecutionException' occured: Error during retrieval of Configuration Entity: entity doesn't exist., CorrelationId: 98a89bbe-2762-47f5-aeba-15d601b6654c</Message>
  <Timestamp>2019-06-25T12:22:58.0802488Z</Timestamp>
  <ExceptionRetriable>false</ExceptionRetriable>
  <ExceptionSource i:nil="true" />
  <InnerFault i:nil="true" />
  <OriginalException i:nil="true" />
  <TraceText>

[Microsoft.Dynamics.Crm.MarketingPlugins: Microsoft.Dynamics.Crm.MarketingPlugins.Plugins.Segmentation.SegmentMembersPlugin]
[2c52b4fb-a8c0-425f-9e32-4cd99e95ba1a: Microsoft.Dynamics.Crm.MarketingPlugins.Plugins.Segmentation.SegmentMembersPlugin: Retrieve of members of segment as Contacts]

2019-06-25T12:22:55.8111235Z :: ConfigurationEntityProvider - no entities returned
2019-06-25T12:22:55.8161351Z :: Error during retrieval of Configuration Entity: entity doesn't exist.
2019-06-25T12:22:58.0361210Z :: Exception 'InvalidPluginExecutionException' occured: Error during retrieval of Configuration Entity: entity doesn't exist., CorrelationId: 98a89bbe-2762-47f5-aeba-15d601b6654c


</TraceText>
</OrganizationServiceFault>

It seems that there is a plugin that causes the error due to missing configuration entity?

Any idea on how to solve this?

regards

Martin

  • MRNBagtas Profile Picture
    MRNBagtas 50 on at
    RE: Created a Sandbox instance from Production instance with Markting Installed

    Hello, we encountered this issue just now and this is such a helpful reference. Thanks for putting it out.

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Created a Sandbox instance from Production instance with Markting Installed

    Hi Martin,

    I'm so glad that you have resolved your issue and thank you very much for your sharing the solution :-)

    Regards,

    Clofly

  • icimasa Profile Picture
    icimasa 390 on at
    RE: Created a Sandbox instance from Production instance with Markting Installed

    So for reference and others with the same issues as me.

    I had a chat with Microsoft about this and the problem is a plugin that is enabled and just needs to be disabled and after that everything works fine. So the plugin: Microsoft.Dynamics.Crm.MarketingPlugins.Plugins.Segmentation.SegmentMembersPlugin needs to be deaktivated. 

    I also got word from MS that this is a known issue and they are working on a fix that this will not happen when creating a sandbox instance from a prod instance that has the marketing app installed.

    regards

    Martin

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Created a Sandbox instance from Production instance with Markting Installed

    Hi Martin,

    Yes, you could try to reset your sandbox instance.

    It will restore the instance to default settings, and all customization will be removed. Just to check whether issue still exists in a clean environment.

    If issue would be resolved after resetting, you can still copy instance from the production(with all data completely).

    If not, it would be better to create a ticket for help. 

    Regards,

    Clofly

  • icimasa Profile Picture
    icimasa 390 on at
    RE: Created a Sandbox instance from Production instance with Markting Installed

    Hi Clofly,

    resetting the sandbox instance I guess you are referring to right?

    So just curious, what would be the result more that I create a clean instance right? But i need it to be a copy of the production instance

    Br

    Martin

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Created a Sandbox instance from Production instance with Markting Installed

    Hi Martin,

    Would you mind resetting the instance if your environment is newly installed?

    Regards,

    Clofly

  • icimasa Profile Picture
    icimasa 390 on at
    RE: Created a Sandbox instance from Production instance with Markting Installed

    Hi Clofly,

    no actually not, it is just newly installed still doing the standard configuration of the application.

    regrads

    Martin

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Created a Sandbox instance from Production instance with Markting Installed

    Hi Martin, 

    Have you added any customized plug-in and counfigured it in workflow in your previous production marketing application instance?

    It may cause exception if there were no related entity available for workflow to do steps when you add contact.

    Regards,

    Clofly

  • icimasa Profile Picture
    icimasa 390 on at
    RE: Created a Sandbox instance from Production instance with Markting Installed

    Hi Justin,

    well the copy has been done in a proper manner, however it seems that parts were not copied over as I hope they would. I would also not be able to install the Marketing App on the Sandbox instance as I would need a separate license for that and I only have 1 Marketing app to deploy.

  • Suggested answer
    Justin Wilkinson Profile Picture
    Justin Wilkinson 1,336 on at
    RE: Created a Sandbox instance from Production instance with Markting Installed

    if you go to: https://web.powerapps.com/ there should be ability to copy an instance from production there:

    docs.microsoft.com/.../copy-instance

    in your case it looks like the Configuration Entity is missing, would it be worth trying to set up the sandbox and then adding the marketing app separately to the sandbox ?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,965 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,817 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans