Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Unable to save workflow

(0) ShareShare
ReportReport
Posted on by 1,623

Hi all,

Getting below Info and unable to save the workflow.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ServiceModel.FaultException`1[Microsoft.Dynamics.AX.Framework.Workflow.Model.AxWorkflowServiceReference.AifFault]: Exception has been thrown by the target of an invocation.

Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Dynamics.AX.Framework.Workflow.Model.AxWorkflowServiceReference.SysWorkflowConfigurationService.save(SysWorkflowConfigurationServiceSaveRequest request)
at Microsoft.Dynamics.AX.Framework.Workflow.Model.AxServiceClient.save(String serializedWorkflowConfiguration, Boolean _newConfig, Boolean _newVersion, WorkflowConfigurationVersionType _versionType)
at Microsoft.Dynamics.AX.Framework.Workflow.Model.WorkflowModel.Save()
at Microsoft.Dynamics.AX.Framework.Workflow.Model.Design.ModelEditor.SaveAndClose()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.Dynamics.AX.ManagedInterop.ClrBridgeImpl.InvokeClrInstanceMethod(ClrBridgeImpl* , ObjectWrapper* objectWrapper, Char* pszMethodName, Int32 argsLength, ObjectWrapper** arguments, Boolean* argsAreByRef, Boolean* isException)

Thanks in advance for your replies.

erere.png

*This post is locked for comments

  • manikumar Profile Picture
    1,623 on at
    RE: Unable to save workflow

    yes,facing same problem on any wf. no custom code is there

  • Iulian Cordobin Profile Picture
    8,201 on at
    RE: Unable to save workflow

    Is this happening for any workflow you try to create (if it's the first one you're working on) just try to setup very fast another workflow and see if you get the same error. Do you know if you have any custom code written on this particular wf you're getting the error?

  • manikumar Profile Picture
    1,623 on at
    RE: Unable to save workflow

    of course, tried already what you have said

  • Suggested answer
    Iulian Cordobin Profile Picture
    8,201 on at
    RE: Unable to save workflow

    Working with the WF requires a full compile and full CIL generation performed. Can you please perform these two tasks and retry then to work on your wf (save it).

  • manikumar Profile Picture
    1,623 on at
    RE: Unable to save workflow

    Creating new wf, while saving im getting that error/info.

  • Iulian Cordobin Profile Picture
    8,201 on at
    RE: Unable to save workflow

    What exactly were you trying to do? Are you in the workflow editor and try to save a newly created WF, or changed an existing one, etc?

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Kempeth Profile Picture

Kempeth 4

#1
Andy Adamak Profile Picture

Andy Adamak 4

#1
Community Member Profile Picture

Community Member 4

Featured topics

Product updates

Dynamics 365 release plans