lingdanglfw(DAX)

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

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.

\Forms\WorkflowEditorHost\Methods\build
 
private void build()
....
    System.Exception            interopException;
 
 ............
    else
 
    {
        try
        {
            workflowConfiguration = Microsoft.Dynamics.AX.Framework.Workflow.Model.WorkflowModel::Create(versionTable.ConfigurationId, curext(), domainUser);
        }
        catch (Exception::CLRError)
        {
            interopException = CLRInterop::getLastException();
            while (!CLRInterop::isNull(interopException.get_InnerException()))
            {
                interopException = interopException.get_InnerException();
            }
 
            error(strFmt("%1", CLRInterop::getAnyTypeForObject(interopException.get_Message())));
            throw error("@SYS327400");
        }
    }
 

}
 
}
 
After editing workflow configuration, now the inner exception was somewhat:
 
Could not find endpoint element with name 'NetTcpBinding_SysWorkflowConfigurationService' and contract 'Microsoft.Dynamics.AX.Framework.Services.Client.AxClient.SysWorkflowConfigurationService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element.
 
This was obviously related with SysWorkflowConfigurationService which is linked with AxClient Service Group, and manual deployment was not successful due to underlying issue of CIL mess up or mismatching IL assemblies in DB vs files. This was also true on checking AX Client configuration *.axc file which should have an entry as below. Contrary to that it was not found even after freshly generated WCF without such entry as AXClient SysOperation service group was not successfully deployed:
 
<endpoint address="net.tcp://[aoserver]:8201/DynamicsAx/Services/AxClient" binding="netTcpBinding" bindingConfiguration="NetTcpBinding_SysWorkflowConfigurationService" contract="Microsoft.Dynamics.AX.Framework.Services.Client.AxClient.SysWorkflowConfigurationService" name="NetTcpBinding_SysWorkflowConfigurationService">
 
To resolve the above issues, one should follow the below sequence:
 
1. Compile Natively without any errors.
 
2. Truncate the SYSXPPASSEMBLY table in model DB and remove everything in XPPIL (path: C:\Program Files\Microsoft Dynamics AX\60\Server\[AOS-Instance-Name]\bin\XppIL).
 
3. Compile CIL fully to generate new assemblies.
 
4. This would automatically deploy AXClient service group. If not, you should try manually deploying the same from AOT.
 
5. Finally, generate fresh WCF and generate a fresh client configuration file, to open AX Client. Also, check the above mentioned end point entry if it was generated which also means AXClient Service Group successfully deployed.
 
Finally the above mentioned issue in workflow should be resolved, if the batch jobs for workflow are running without issues. Also, workflow configuration form should be opened without any issues if the issue was resolved.

posted on   lingdanglfw  阅读(50)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示