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)

Retail Channel Database Full Data Sync Error

(0) ShareShare
ReportReport
Posted on by 739

Dears,

Please note that i am facing the following error when trying to sync data into channel database.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Dynamics.Ax.Application.RetailCDXDataSync.Initializeclasses() in RetailCDXDataSync.initializeClasses.xpp:line 34
at Dynamics.Ax.Application.RetailCDXDataSync.Initialize() in RetailCDXDataSync.initialize.xpp:line 23
at Dynamics.Ax.Application.RetailCDXDataSync.Run() in RetailCDXDataSync.run.xpp:line 11
at Dynamics.Ax.Application.RetailCDXDataSync.sync(Object[] params) in RetailCDXDataSync.sync.xpp:line 35
--- End of inner exception stack trace ---

Please advise,

Elie

*This post is locked for comments

I have the same question (0)
  • Rodolfo Recalde Profile Picture
    on at

    Hi Elie,

    You initialize/sync metadata  Retail?

    Please, share with us the event viewer log.

    Perhaps, these links can help you:

    https://community.dynamics.com/ax/f/33/t/192538

    https://community.dynamics.com/ax/f/33/p/189350/479456

    Regards,

    Rodolfo Recalde.

  • E. R. Profile Picture
    739 on at

    I tried to Initialize Retail 

    Click > Retail >Setup >Parameters > Retail parameters > Initialize button

    but I faced the following error:

    The CIL generator found errors and could not save the new assembly.

    Please advise.

    Regards,

    Elias

  • Rodolfo Recalde Profile Picture
    on at

    Compile the application. Confirm that there are no errors. After that, compile the CIL Full.

  • E. R. Profile Picture
    739 on at

    Dears,

    Please note that I am facing the following error after clicking on retail parameters initialize.

    CIL generation: Source array was not long enough. Check srcIndex and length, and the array's lower bounds.

    Please advise

    Regards,

    Elias

  • Community Member Profile Picture
    on at

    Hello Elie,

    Usually the exception "Object reference not set to an instance of an object" is talking about some key value that used to be reference is missing. Please make sure all the field related to Sync service is filled correctly. Such as parameter, working folder or channel database profile. And sync metadata again. Thanks.

    Max

  • Rodolfo Recalde Profile Picture
    on at

    It sounds a compilation problem. Perhaps, the compilation (CIL) is corrupted. Compile and generate CIL Full.

    Take a look in this links:

    https://community.dynamics.com/ax/f/33/t/144273

    https://dsin.wordpress.com/2014/01/28/dynamics-ax-cil-generation-source-array-was-not-long-enough-check-srcindex-and-length-and-the-arrays-lower-bounds/

    http://ax2012anant.blogspot.com.br/2014/05/how-to-generate-cilcommon-intermediate.html

    I Hope this Helps,

    Regards,

    Rodolfo Recalde.

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