Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7992207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:29:53+00:00 2026-06-04T13:29:53+00:00

I have a custom workflow in CRM 2011 which is manually triggered against custom

  • 0

I have a custom workflow in CRM 2011 which is manually triggered against custom entity records. When a single record is selected for processing, the workflow is always successful. However when selecting more than one record, at least one will fail. The error(s) provided seem to vary from one attempt to the next, even though the same data is being used.

Errors I’ve encountered so far are:

  • ValidateOpen – Encountered disposed CrmDbConnection when it should
    not be disposed You cannot create a SqlExecutionContext from another
  • SqlExecutionContext on which OnBeginRequest has not been called

And after restarting the DB server:

  • Invalid Pointer

All of these occur when calling the Update method of the IOrganizationService. The Invalid Pointer error seems to be the more common error since having restarted the DB server (it was suggested to me that it might be an issue with an overly-busy DB server). I’ve also deleted any backlog of asynchronous tasks in case this was the issue, but it hasn’t had any effect.

Does anyone know what this error means, why I might be getting it or how I can get around the issue?

Many thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T13:29:54+00:00Added an answer on June 4, 2026 at 1:29 pm

    It seems this error message is a round-about way of saying, ‘tried to open another connection to CRM when the previous one was open’, and the reason it tries to do this is very much relevant to the fact it only fails when processing more than one record.

    Reference this blog:

    It seems that when a workflow is run against multiple records, it uses the same instance of the class, which means that class-level variables won’t be re-instantiated between executions. So, when subsequent executions come to the code which sets the class-level service variable to an instance of an IOrganisationService, it finds the variables already has one and that it’s open.

    The solution I’ve found easiest to implement it to have the service variable within the Execute function, rather than class-level. This has solved the problem everywhere that I’ve tried it since.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For MS CRM 2011 I have made custom workflow activity, but I'm not able
In CRM 2011, I have a workflow configured to Send Email once Invoice status
I have created a custom workflow activity in CRM that creates a task. The
I have a custom workflow which requires a fair amount of setup before to
I have a custom content type in SharePoint which has an approval workflow associated
I have created a custom CRM activity that I'm using in a workflow. I'm
I have a custom workflow activity for which I've written a designer. Unfortunately, when
Background: Custom workflow activities for Microsoft Dynamics CRM. Currently we have one project per
I have created a custom entity in MS CRM 4.0 and am trying to
I implemented one custom workflow in in Visual Studio 2010 using CRM 2011 Developer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.