web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Error on SDK connection using Console Application

(0) ShareShare
ReportReport
Posted on by 8,270

Hi guys,

I have a "console application" that queries the CRM database and then inserts a row in a custom entity. But randomly it's throwing this error:

"System.ServiceModel.FaultException '1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Connection State is closed. Please open the connection before executing the command. <Fault Detail is equal to Microsoft.Xrm.Sdk.OrganizationServiceFault>."

And I don't really know how to fix that, like having the connection always open or such a thing.

btw I'm using CRM Online 2013.

Regards,

Raúl

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    Hi, This sounds like you have a plugin that is re-using a service instance across threads by using instance members. Try disabling plugins and seeing if the issue is resolved.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans