Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Error while creating records in CRM 2013

Posted on by 310

Hi Team,

When tried to create new records one by one in CRM 2013 (OnPrem) using plugin, getting below mentioned exception in 5 out of 10 records due to which these records are not getting created. 

For code analysis I have put logger in plugin, each step get executed successfully but when it comes to Create() method of CRM it throws below exception.

Microsoft.Crm.Extensibility.InprocessServiceProxy Microsoft.Crm.Workflow.SynchronousRuntime.SynchronousWorkflowContext        
at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Create(Entity entity, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode)
 at Microsoft.Crm.Extensibility.InprocessServiceProxy.CreateCore(Entity entity)

Kindly suggest how to tackle this exception.

  • Shaun W Harvey Profile Picture
    Shaun W Harvey 240 on at
    RE: Error while creating records in CRM 2013

    Hello Manoj,

    It might also be worth inspecting any "Inner" Exception that might be present as well.

    Sometimes the really useful information as to what is happening is just under the surface of the main exception thrown.

    But the exception we can see, definitely points to a Real-Time Workflow.

    By design, they can throw exceptions and produce a "Business Process Error" in the UI just like a plugin.

    Another option you have on premise is to switch on the Server Side Tracing. The output of those logs give you a mountain of trace information.

    If you go down that route. Definitely use the "CRM Trace Reader" utility (available within XrmToolBox). It really helps to filter and organise the results.

    Good Luck!

    Shaun Harvey

  • Suggested answer
    a33ik Profile Picture
    a33ik 84,323 Most Valuable Professional on at
    RE: Error while creating records in CRM 2013

    Hello Manoj,

    Doublecheck if you have a real-time workflow that is get triggered on the creation of your records.

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans