Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Generic SQL Error in Workflow

Posted on by 390

Hi,

We are getting a generic sql error while updating a record inside the workow. This error occurs not for all cases but the error occurs for the same update entity. We are not having clue to find what is causing this issue. Any idea please help.

*This post is locked for comments

  • MMK Profile Picture
    MMK 745 on at
    RE: Generic SQL Error in Workflow

    Hi Jayakumar ,

    Once I had got this Generic SQL error  

    and it occurred because the same field is updating at the same time by Mapping and plugins

    Make sure to check if there any OOB functionality or custom functionality is running on same thing

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Generic SQL Error in Workflow

    Hi,

    Generic Sql error is mostly due to a deadlock. Ensure your workflow logic and any plugins related to the same operation. If you are doing an update and also doing a retrievemultiple in some kind of a loop then it may cause this.

    Hope this helps.

  • Saad Kabarousse Profile Picture
    Saad Kabarousse 732 on at
    RE: Generic SQL Error in Workflow

    Hi Jayakumar,

    what is exactly the error that you are getting? and can you please give us more details about?

    Thanks.

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,048 on at
    RE: Generic SQL Error in Workflow

    Hi

    Please enable trace and try the workflow to get to the actual error message.

    Please see below for how you can enable trace and read the logs

    You can enable tracing using the following tool

    archive.codeplex.com

    Download the archive, unzip, under the releases folder, rename the file inside the folder 5 to .zip and unzip this to get the actual exe. Copy this across to crm server an run and enable trace

    And you can use the traced reader to identify the error easily

    archive.codeplex.com

    Download the archive, unzip the file, under the releases folder, rename the file in folder 3 to .exe and this is the reader application. Copy this across to CRM server to read the trace file

    Make sure you disable the tracing once you done the debugging as it will be logging a lot of data and might quickly fill up the server hard disk

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans