Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Getting error on batch job execution

(0) ShareShare
ReportReport
Posted on by

Hi,

I am getting an error while executing a specific batch job on 2012 R3 environment. Actual process is import vendors from cross company using DMF . The batch job was executing successfully till last week  after that it was withhold state for time being. Now trying to start again and job getting executed and an error occurred on log. 

Getting an error as mentioned below.

Issue-Arised.JPG

Error description from info log:

Error 1:

System.InvalidOperationException: Unable to find the application configuration file C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\Bin\Microsoft.Dynamics.AX.Framework.Tools.DMF.ServiceProxy.dll.config. Ensure that the assembly containing the specific service client type has an application configuration source file present. Paths below were inspected:

C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Dynamics.AX.Framework.Tools.DMF.ServiceProxy\v4.0_6.3.0.0__31bf3856ad364e35\Microsoft.Dynamics.AX.Framework.Tools.DMF.ServiceProxy.dll.config

C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAXProd\Bin\Microsoft.Dynamics.AX.Framework.Tools.DMF.ServiceProxy.dll.config

   at Microsoft.Dynamics.IntegrationFramework.ServiceReference.GetConfigFilePath(Type serviceClientType, String configFileHintPath)

at Dynamics.Ax.Application.MdmWebServiceProxyFactory.GetDmfEntityProxy() in MdmWebServiceProxyFactory.GetDmfEntityProxy.xpp:line 18

   at Dynamics.Ax.Application.MdmWebServiceProxyBase.new() in MdmWebServiceProxyBase.new.xpp:line 3

   at Dynamics.Ax.Application.MdmWebServiceProxyBase..ctor()

   at Dynamics.Ax.Application.MdmWebServiceProxyV1..ctor()

   at Dynamics.Ax.Application.MdmWebServiceProxyFactory.Createproxy() in MdmWebServiceProxyFactory.CreateProxy.xpp:line 11

   at Dynamics.Ax.Application.MdmAxToMdsExporter.createAndExecuteExportPackageToMDS(MdmEntity _mdmEntity, String _eid) in MdmAxToMdsExporter.createAndExecuteExportPackageToMDS.xpp:line 11

Error 2:

Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown.

   at Dynamics.Ax.Application.MdmSyncGroupExecution.reportErrorAndThrow(Int64 _executionLogRecId, String _syncGroupName, String _error) in MdmSyncGroupExecution.reportErrorAndThrow.xpp:line 19

   at Dynamics.Ax.Application.MdmAxToMdsExporter.Run() in MdmAxToMdsExporter.run.xpp:line 30

   at Dynamics.Ax.Application.MdmSynchronizer.synchronize(Object[] _arg) in MdmSynchronizer.synchronize.xpp:line 290

   at MdmSynchronizer::synchronize(Object[] )

   at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)

   at Microsoft.Dynamics.Ax.Xpp.PredefinedFunctions.runas(String userId, Int32 classId, String staticMethodName, Object[] parms, String company, String language, String partitionKey)

   at Dynamics.Ax.Application.MdmSynchronizer.Run() in MdmSynchronizer.run.xpp:line 23

   at Dynamics.Ax.Application.BatchRun.runJobStaticCode(Int64 batchId) in BatchRun.runJobStaticCode.xpp:line 54

   at Dynamics.Ax.Application.BatchRun.runJobStatic(Int64 batchId) in BatchRun.runJobStatic.xpp:line 13

   at BatchRun::runJobStatic(Object[] )

   at Microsoft.Dynamics.Ax.Xpp.ReflectionCallHelper.MakeStaticCall(Type type, String MethodName, Object[] parameters)

   at BatchIL.taskThreadEntry(Object threadArg)

FYI,

1. Data Import/Export framework and AOS services running on same machine.

2. Done full CIL.

3. Restarted the AOS and Data Import/Export framework services .

4. As mentioned in the first error description "Microsoft.Dynamics.AX.Framework.Tools.DMF.ServiceProxy.dll.config" dll file copied and pasted to  Dynamics AX folder. C:\Program Files\Microsoft Dynamics AX\60\Server\MicrosoftDynamicsAX\Bin\Microsoft.Dynamics.AX.Framework.Tools.DMF.ServiceProxy.dll.config

Thanks in advance,

Mani

*This post is locked for comments

  • RE: Getting error on batch job execution

    Hello Andre,

    I found the solution that the User roles are not assigned to the service account on the SQL MDS webservice .

    • System Administration

    • Version Management

    • Integration Management

    • Explorer

    Now the issue resolved and the  job getting executed successfully. Again , the synchronization of records are not happening properly.

    Lets say i have created two sync group - publishA company, SubscribeB comapany.

    Case 1:

    When i modified the vendor records in published company(A) its getting inserted into DMFVendorentity_Leaf table on MDS database and updates the changes on the respective records on B company .

    Case 2:

    I created a new vendor with bank details in the A company.  once the batch job executed i can see only the DMFvendbankaccount_Leaf table updated in the MDS db but Vendor record not even inserted into the DMFVendorEntity_Leaf  table and also not inserted into into B company .

    I don't know what i am missed

    regards,

    Mani

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,516 Super User 2025 Season 1 on at
    RE: Getting error on batch job execution

    Hi Mani,

    Do you have this issue in the test or production environment? If you have it in test, then please tell if both the business and model databases were restored with a proper AOS shutdown and restart.

  • RE: Getting error on batch job execution

    Hello Andrew,

    Its seems the database got restored from production to test environment. After that this job got stuck its. Yes I have repaired that DIXF as you mentioned . Now I am getting new error on the log info .  

    Error 1:

    System.ServiceModel.FaultException`1[Microsoft.Dynamics.AX.Framework.Tools.DMF.ServiceProxy.DMFServiceReference.ExceptionData]: Exception from HRESULT: 0xC0202040 (Fault Detail is equal to Microsoft.Dynamics.AX.Framework.Tools.DMF.ServiceProxy.DMFServiceReference.ExceptionData).

    Error 2:

    Microsoft.Dynamics.Ax.Xpp.ErrorException: Exception of type 'Microsoft.Dynamics.Ax.Xpp.ErrorException' was thrown.

      at Dynamics.Ax.Application.MdmSyncGroupExecution.reportErrorAndThrow(Int64 _executionLogRecId, String _syncGroupName, String _error) in MdmSyncGroupExecution.reportErrorAndThrow.xpp:line 19

      at Dynamics.Ax.Application.MdmAxToMdsExporter.Run() in MdmAxToMdsExporter.run.xpp:line 30

      at Dynamics.Ax.Application.MdmSynchronizer.synchronize(Object[] _arg) in MdmSynchronizer.synchronize.xpp:line 290

      at MdmSynchronizer::synchronize(Object[] )

  • Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Getting error on batch job execution

    Do you have more than 1 AOS ? it maybe a case when you don't have required components installed on one of them.

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,516 Super User 2025 Season 1 on at
    RE: Getting error on batch job execution

    Hi Mani,

    Can you tell if something was changed in the time before it was working and when it got stuck? You can try to re-install or repair the DIXF binary setup files.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,436 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans