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

(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

I have the same question (1)
  • Iulian Cordobin Profile Picture
    8,201 on at

    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?

  • manikumar Profile Picture
    1,623 on at

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

  • Suggested answer
    Iulian Cordobin Profile Picture
    8,201 on at

    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

    of course, tried already what you have said

  • Iulian Cordobin Profile Picture
    8,201 on at

    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

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

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