Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

An Unexpected error has occurred while opening the workflow

(0) ShareShare
ReportReport
Posted on by 3,090

6505.WorkflowError.png

Hi Experts,

When i open or create a new workflow this error i am facing as shown in the image"An Unexpected error has occurred while opening workflow. I restore the backup from a different domain and change all things as required. now system is working but workflow is not working why. I did full compile compile. Watch all the blogs and follow but no luck.

Best Regards,

Shabir Ahmad

  • Suggested answer
    GirishS Profile Picture
    27,823 Moderator on at
    RE: An Unexpected error has occurred while opening the workflow

    Hello Amar,

    Refer to the below blog which will be helpful for you.

    http://www.artofcreation.be/2015/08/19/workflow-an-unexpected-error-has-occurred-while-opening-the-workflow-see-the-event-log-on-the-aos-and-contact-your-system-administrator-to-resolve-the-issue/

    https://erpcoder.blog/2014/05/20/unexpected-error-when-creating-a-new-workflow-in-ax-2012-r2/

    Have you gone through this blogs already?

    Thanks,

    Girish S.

  • AMAR1302 Profile Picture
    10 on at
    RE: An Unexpected error has occurred while opening the workflow

    I have same error

    Was you able to open workflow ?

  • Fangyuan Hou Profile Picture
    on at
    RE: An Unexpected error has occurred while opening the workflow

    Hi Shabir,

    Please we suggest you to submit a support ticket to us for further investigation.

  • Shabir Ahmad Profile Picture
    3,090 on at
    RE: An Unexpected error has occurred while opening the workflow

    Log Name: Application
    Source: Microsoft Dynamics AX
    Date: 3/3/2021 10:32:57 AM
    Event ID: 180
    Task Category: None
    Level: Error
    Keywords: Classic
    User: N/A
    Computer: Server.Local.com
    Description:
    The description for Event ID 180 from source Microsoft Dynamics AX cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

    If the event originated on another computer, the display information had to be saved with the event.

    The following information was included with the event:

    Microsoft Dynamics AX Business Connector Session 3.


    RPC exception 3758096384 occurred in session 3 process is Ax32.exe thread is 3380(User: Admin, ClientType: GUI)


    Event Xml:
    <Event xmlns="">schemas.microsoft.com/.../event">
    <System>
    <Provider Name="Microsoft Dynamics AX" />
    <EventID Qualifiers="0">180</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2021-03-03T18:32:57.000000000Z" />
    <EventRecordID>118509</EventRecordID>
    <Channel>Application</Channel>
    <Computer>Server.Local.com</Computer>
    <Security />
    </System>
    <EventData>
    <Data>Microsoft Dynamics AX Business Connector Session 3.

    </Data>
    <Data>RPC exception 3758096384 occurred in session 3 process is Ax32.exe thread is 3380(User: Admin, ClientType: GUI)
    </Data>
    </EventData>
    </Event>

  • Shabir Ahmad Profile Picture
    3,090 on at
    RE: An Unexpected error has occurred while opening the workflow

    Log Name:      Application
    Source:        Dynamics Server 01
    Date:          3/3/2021 10:32:37 AM
    Event ID:      117
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      Server.Local.com
    Description:
    Object Server 01:  The database reported (session 1 (-AOS-)): [Microsoft][SQL Server Native Client 11.0][SQL Server]Could not find stored procedure 
    'MDALive_model.dbo.XU_IsModelIdInstalled'.. The SQL statement was: "{ CALL [MDAX2012Live_model].[dbo].[XU_IsModelIdInstalled](?, ?) }"
    Event Xml:
    

  • Shabir Ahmad Profile Picture
    3,090 on at
    RE: An Unexpected error has occurred while opening the workflow

    Log Name:      Application
    Source:        Dynamics Server 01
    Date:          3/3/2021 1:19:46 PM
    Event ID:      110
    Task Category: None
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      Server.Local.com
    Description:
    Object Server 01:  An error has occurred in the services framework.  Method: AifMessageInspector::AfterReceiveRequest.  Error: System.ServiceModel.FaultException: Failed to logon to Microsoft Dynamics AX.
       at Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.InitializeSession()
       at Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.InitializeContext()
       at Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.Attach(OperationContext owner)
       at System.ServiceModel.ExtensionCollection`1.InsertItem(Int32 index, IExtension`1 item)
       at System.Collections.Generic.SynchronizedCollection`1.Add(T item)
       at Microsoft.Dynamics.Ax.Services.AifMessageInspector.AfterReceiveRequest(Message& request, IClientChannel channel, InstanceContext instanceContext) 
    Event Xml:
    

  • Shabir Ahmad Profile Picture
    3,090 on at
    RE: An Unexpected error has occurred while opening the workflow

    Hi Gunjan Bhattacharyya,

    Sorry for late reply i was busy with some other work, i debug this form but no result.

    Best Regards,

    Shabir Ahmad

  • Suggested answer
    Fangyuan Hou Profile Picture
    on at
    RE: An Unexpected error has occurred while opening the workflow

    Could you please have a check on the below discuss?

    Uninstalling the Business Connector and reinstalled it. Then ran a WCF refresh. To see if it will resolve the issue?

    community.dynamics.com/.../an-unexpected-error-has-occurred-while-opening-the-workflow-see-the-event-log-on-the-aos-and-contact-your-system-administrator-to-resolve-the-issue

    Please share detail error messages in the event logs, so we can have a further check if this is known issue, or please submit a support ticket to us for further investigation.

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: An Unexpected error has occurred while opening the workflow

    Hi Shabir,

    Can you try debugging the form WorkflowEditorHost and check where the error is being thrown from?

  • Shabir Ahmad Profile Picture
    3,090 on at
    RE: An Unexpected error has occurred while opening the workflow

    Hi Gunjan Bhattacharyya ,

    I just changed userid administrator, sid for this id and domain name in user info class. Then the system was able to run.

    Best Regards,

    Shabir

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,923 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,788 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans