Unexpected Error when creating a new Workflow in AX 2012 R2

A colleague recently faced a problem regarding workflows in AX 2012 R2. When he tried to add a new workflow AX reported an error “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.”  In a first step I added some code to Forms > WorkflowEditorHost > build() Method before the error is thrown to get the Stack and Exception Text

image

This revealed a problem with the services: “The communication object, System.ServiceModel.Channels. ServiceChannel, cannot be used for communication because it is in Faulted state.

image

Fortunately, such a problem can be solved with Default AX Voodoo. Generating Full IL and recreating the WCF configuration in the Dynamics AX Client Configuration Utility solved the problem.

About erpcoder
Azure Cloud Architect and Dynamics 365 enthusiast working in Research & Development for InsideAx

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: