Unexpected Error when creating a new Workflow in AX 2012 R2
20. May 2014 Leave a comment
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
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.”
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.