Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Error while creating records in CRM 2013

(0) ShareShare
ReportReport
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
    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
    84,325 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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,923 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,788 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans