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 AX (Archived)

Unable to save workflow configuration

(0) ShareShare
ReportReport
Posted on by 1,245

Hi all,

I'm facing a problem with workflow in AX 2012 R2. After I create workflow, I click on button "Save and close" in order to save workflow. Unfortunately, the workflow is not saved.

I looked into Event Viewer --> Applications and Services log --> Microsoft AX workflow and I saw these errors:

Error 1:

Workflow threw an exception for the following reason: The server has rejected the client credentials.

Error 2:

Workflow threw an exception for the following reason: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state.

Error 3:

Exception thrown in : Workflow configuration The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state

Error 4:

Workflow threw an exception for the following reason: Exception has been thrown by the target of an invocation. 

Does anyone face this problem? Please help me to fix it

Thanks in advance

Trung

*This post is locked for comments

I have the same question (0)
  • Tommy Skaue Profile Picture
    Moderator on at

    Hi

    Please make sure the entire AOT compile without errors (just errors). Make sure CIL compiles. Restart the AOS.

    Make sure the client configuration has refreshed WCF bindings with proper endpoint principals.

  • Trung Nguyen Profile Picture
    1,245 on at

    Hi,

    I compiled AOT without error, have full CIL generation and restart AOS but nothing changed. Do you have any ideas?

    BR,

    Trung

  • Trung Nguyen Profile Picture
    1,245 on at

    Hi,

    No one face this error?

    Please help me.

  • Martin Dráb Profile Picture
    237,970 Most Valuable Professional on at

    "The server has rejected the client credentials" sounds like a clear indication of what's wrong. Please verify that workflow execution account is configured correctly.

    See more about workflow setup in Configure the workflow system [AX 2012].

  • Community Member Profile Picture
    on at

    Hello Trung,

    I had this problem before and here is the fix for it:

    wizardofax.wordpress.com/.../unable-to-save-workflow-configuration-in-dynamics-ax2012

    Unable to save an existing workflow to which you are making small changes, is a known issue at Microsoft  the good thing is that it can be  fixed via a simple code change on the “canclose” method of the workflowEditorHost form.

    If you go to the AOT > Forms > WorkflowEditorHost. Find the CanClose() method and change the code:

    ==============

    From this:

    ==============

    public boolean canClose()

    {

    boolean ret;

    ret = super();

    if (saveOnClose)

    {

    ret = modelEditorControl.SaveAndClose();

    }

    return ret;

    }

    ===========================

    To This

    ===========================

    public boolean canClose()

    {

    boolean ret;

    ret = super();

    if (saveOnClose)

    {

    try

    {

    ret = modelEditorControl.SaveAndClose();

    }

    catch (Exception::Error)

    {

    info(“Caught ‘Exception::Error’.”);

    }

    catch (Exception::CLRError)

    {

    info(“Caught ‘Exception::CLRError’.”);

    netExcepn = CLRInterop::getLastException();

    info(netExcepn.ToString());

    }

    }

    return ret;

    }

    =======================================

    After making this change then do the following:

    1. Run an Incremental CIL.

    2. Compile Forward on the NumberSeq class (Right-click > Add-in > Compile Forward).

    3. Generate an incremental CIL.

    I hope this helps!

  • Jose Nedumpuram Profile Picture
    10 on at

    Hi,

    I am facing the same issue in AX2012 R3, what was the solution which you had applied to solve the issue.

  • Jose Nedumpuram Profile Picture
    10 on at

    I have tried all the methods mentioned above, but no success...

  • Kevin Roos Profile Picture
    265 on at

    Any updates on this issue?

    I seem to be having the same problem om 2012R3CU8

  • Suggested answer
    Jose Nedumpuram Profile Picture
    10 on at

    Hi Kevin,

    I hope you have resolved the issue, if not pls try the following which solved my issue:

    made change in registrty :-

    social.technet.microsoft.com/.../event-6037-lsasrv

    This settings should fix it:

    HKLM\system\CurrentControlSet\Services\Lanmanserver\parameters

    DisableStrictNameChecking:DWORD=1

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa

    DisableLoopbackCheck:DWORD=1

    interesting...

    just googled around these values.

    after you set  DisableStrictNameChecking=1 and reboot computer,  you will have two options.

    more secure... Update BackConnectionHostNames=.

    or less secure... set  DisableLoopbackCheck=1

    both ways described in kb support.microsoft.com/.../896861

  • Kevin Roos Profile Picture
    265 on at

    Hi Jose,

    Thank you for the feedback!

    I'm not sure if the environment is still existing because it was for pre sales purposes but if I encounter the issue I'll check it ;-)

    Kind regards,

    Kevin

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 AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans