Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Workflow Error

Posted on by 45

Using CRM 2016 on premise version 8.0.1.97

Upon create/update of some fields in a custom entity we fire a workflow . Depending upon the status of the record the workflow may then execute a child workflow which will update fields on the relevant entity.  With our version of CRM 2016 the 2nd workflow encounters an error when being called and is stuck in a waiting state.  Error details on the workflow is Workflow suspended temporarily due to error: Unhandled Exception: System.Data.SqlClient.SqlException: Cannot insert the value NULL into column 'WorkflowLogId', table

We have not updated our workflows or made changes to them and they work fine in current production which is still on CRM 2011.

*This post is locked for comments

  • Kalpavruksh D365 CoE Profile Picture
    Kalpavruksh D365 CoE 2,545 on at
    RE: Workflow Error

    Please mark our answer as verified, if it has helped you to resolve your issue.

  • RDT Profile Picture
    RDT 45 on at
    RE: Workflow Error

    I added a 1 minute wait condition to the beginning of the child workflow that was failing. So far in several attempts it seems to have resolved the issue.

  • RDT Profile Picture
    RDT 45 on at
    RE: Workflow Error

    Looks like it may be a Microsoft bug that is fixed in version 8.2.1 and/or 8.2.2 according to documentation.

  • RDT Profile Picture
    RDT 45 on at
    RE: Workflow Error

    There are no input parmeters. On the parent workflow if the entity record has a particular value it calls the child workflow to make updates to the record.

  • Suggested answer
    Kalpavruksh D365 CoE Profile Picture
    Kalpavruksh D365 CoE 2,545 on at
    RE: Workflow Error

    Hi,

    If you are setting any input parameters to the child workflow, please make sure that the records are active and the values passed to the child workflow are not null. If possible, can you share the details of the workflow configured which will help to analyze this issue?

  • Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: Workflow Error

    Looks like there might be a reference broken somewhere. If you try to recreate the workflows do you still see the issue?

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans