web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Async client upload error (critical)

(0) ShareShare
ReportReport
Posted on by

Async Client on Store Server don't upload data. 

At OS Event Viewer Async Client wreting error:

Exception when converting job defination to request header. Error Details: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Dynamics.Retail.SynchClient.Core.UploadAgent.CalculateFilterMinValue(Int64 rerunUploadSessionId, String tableName, String fieldName)
at Microsoft.Dynamics.Retail.SynchClient.Core.UploadAgent.ConvertJobDefinitionToRequestHeader(Int64 rerunUploadSessionId, Job activeJob, SessionManager sessionMgr)System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Dynamics.Retail.SynchClient.Core.UploadAgent.CalculateFilterMinValue(Int64 rerunUploadSessionId, String tableName, String fieldName)
at Microsoft.Dynamics.Retail.SynchClient.Core.UploadAgent.ConvertJobDefinitionToRequestHeader(Int64 rerunUploadSessionId, Job activeJob, SessionManager sessionMgr)

 Check all the parameters, table, etc. but can't resolve the problem.

I think the problem at data by uploading table. 

*This post is locked for comments

I have the same question (0)
  • Aneesh Revi Profile Picture
    65 on at
    RE: Async client upload error (critical)

    Possible Reason: Upon more investigation, the error seems to have started from the moment when a record in the Upload sessions form with the status "Upload failed" isReRun. The problem seems to be related to the ReRun function (Retail > Inquiries > Commerce Data Exchange > Upload sessions > Button ReRun)


    Solution: I was able to solve this issue after unchecking 'ReRun' field in the Upload sessions table in Async Server message database. You can use the below update statement directly in SQL. 


    Update [Asyncserver_MSGDB_PROD].[dbo].[UPLOADSESSION] set RERUN = 0 where RERUN = 1

    community.dynamics.com/.../issue-resolved-unsynced-records-from-retail-store-to-ax-db-p-0001-job

  • Suggested answer
    ahmvarol Profile Picture
    16 on at
    RE: Async client upload error (critical)

    Thanks Shafeeque it is a good view for the solution. I tried your solution and select only default Ax tables(without localization Tables _BR, _RU etc.) and problem has fixed.

    Thanks for the idea.

  • Mohd saddaf khan Profile Picture
    20 on at
    RE: Ax 2012 r3 async client upload error (critical)

    Anyone got solution for this?

    getting the same issue, but no luck after uncheck Rerun

    I am continuing the issue on different thread, looking for your valuable suggestions:

    community.dynamics.com/.../584145

    Thanks!

  • Suggested answer
    A.Prasanna Profile Picture
    8,221 on at
    RE: Ax 2012 r3 async client upload error (critical)

    Just Check Followings,

    1.Real Time Service's Service account already added in to AX (as AX user)

    2. Real Time web application is running properly(In IIS) and you can open Service URL on Browser

    3.Real Time Service is running 

    4.Settings in Real Time Service & Profile App Pool name , Full Computer Name etc.

    Hope this will help 

    Amith Prasanna

  • Mark_Edel Profile Picture
    160 on at
    RE: Ax 2012 r3 async client upload error (critical)

    Hi All,

    I am also encountering this error. Could you please help me how did you solve the issue.

    Thanks.

  • Suggested answer
    Vino9667 Profile Picture
    364 on at
    RE: Ax 2012 r3 async client upload error (critical)

    Thank you soo much i also tried the same way my issue got solved.

  • Vino9667 Profile Picture
    364 on at
    RE: Ax 2012 r3 async client upload error (critical)

    Dear Friends,

    I am aslo facing the same problem for single store and only for upload, download session is working fine and both upload and download is working fine in rest of the stores.

    Please suggest me what is the issue and solution.

  • Ansar Basha Profile Picture
    1,582 on at
    RE: Ax 2012 r3 async client upload error (critical)

    Hi Shafeeque,

    Couldn't find the issue, there are only around 20 transactions, I checked the data in the tables as specified, there is nothing much huge amount, just 100-5000.

    I tried second method too by copying P-job and tried with 5 tables, then repeated, still didn't work.

    Any other clues.

    Thanks.

  • Shafeeque P. Profile Picture
    6,523 Moderator on at
    RE: Ax 2012 r3 async client upload error (critical)

    Check the transactions tables (example below)  in store DB for big values (especially the fields price/totals are recorded). I have faced the issue multiple times and the data went through after updating values.

    retailtransactiontable

    retailttransactionsalestrans

    retailtransactionpaymenttrans

    If you are still not able to find the cause, create a copy of P-001 job. Enable only first 10 tables in the job and pull the data. If the pulling works, add the next 20 tables. Using this method you will be able to find data data in which table is causing the issue. 

  • Ansar Basha Profile Picture
    1,582 on at
    RE: Ax 2012 r3 async client upload error (critical)

    Hi All,

    Can anyone help me with, i'm also having the same error. I checked the ReRun field its already unchecked.

    Thanks.

    Below is the error details:

    Exception when converting job definition to request header. Error Details: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
    at System.Collections.Generic.List`1.get_Item(Int32 index)
    at System.Linq.Enumerable.ElementAt[TSource](IEnumerable`1 source, Int32 index)
    at Microsoft.Dynamics.Retail.SynchClient.Core.UploadAgent.ConvertJobDefinitionToRequestHeader(Int64 rerunUploadSessionId, Job activeJob, SessionManager sessionMgr)System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
    at System.Collections.Generic.List`1.get_Item(Int32 index)
    at System.Linq.Enumerable.ElementAt[TSource](IEnumerable`1 source, Int32 index)
    at Microsoft.Dynamics.Retail.SynchClient.Core.UploadAgent.ConvertJobDefinitionToRequestHeader(Int64 rerunUploadSessionId, Job activeJob, SessionManager sessionMgr)

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Syed Haris Shah Profile Picture

Syed Haris Shah 9

#2
Mea_ Profile Picture

Mea_ 4

#3
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans