Hi Dynamics Community,
I'm running into an issue which seems like it should be a non-issue, was hoping someone might have some input here.
I'm importing a workflow (Workflow approval for proposed vendor change) in a test environment, then running into an error and this stack trace when trying to import it in the production environment (see below).
However, when importing the same workflow in a totally unrelated environment, it works fine. So it shouldn't be an issue related to users or anything such.
Here's the error message, which seems to be just a 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.Framework.Workflow.Model.AxMilClient.save(WorkflowModel _model, Boolean _isNewModel, Boolean _isNewVersion, WorkflowConfigurationVersionType _versionType)
at Microsoft.Dynamics.AX.Framework.Workflow.Model.WorkflowModelProvider.Save(WorkflowModel model, Boolean isNewModel, Boolean isNewVersion, WorkflowConfigurationVersionType versionType)
I tried using import option, the check box, to import to new version if there's a version conflict, no difference.
Since the stack trace starts with WorkFlowModelProvider, I figured I'd try to see if there's any problem with the model provider. Checking the XML-file for provider, I find this match: HcmPositionHierarchyConfigurableWorkflowProvider.
Checking that class, I see this description:
"Provider class for the configurable workflow hierarchy assignment provider.
Assignment is determined by the hierarchy configured to a given workflow."
Anyway, checking the position hierarchy and position hierarchy types, they are empty in both test and prod environments, that I can see.