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)

Error while database Synchronization

(0) ShareShare
ReportReport
Posted on by 85

Hi Everyone, 

I encountered the below error while synchronizing the Data Dictionary. 

dbsyncerror.PNG

Please help me..

*This post is locked for comments

I have the same question (0)
  • Bharath B J Profile Picture
    85 on at
    RE: Error while database Synchronization

    Hi Vilmos,

    That was indeed a great explanation!

    Thank you very much for that :)

    When i went through the Error description in detail, i saw that there were a few fields in the InsertInto statement which caused problems. I removed those fields from SalesLine and now its good :)

    Thank you, again!

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: Error while database Synchronization

    Each metadata object in your AOT have a unique identifier, which you could see on the top if you go to the Properties of your table and field.

    Then if you navigate in the AOT to System documentation > Tables > SQLDictionary, right click, select Add-ins and Table browse, you would see the object that AX thinks are there in your actual database within SQL. Now if these IDs sitting in the table do not match with the ones in the AOT, that is a problem which will cause your DB synchronization to throw errors similar to what you got. For example it tries to convert a field from one to another.

    You may use an ID conflict resolving tool written by other AX developers, however do not do that in a Production environment unless you know and understand what the job is (and you are) doing.

    To ensure that your IDs are correct, normally people create a Build environment off from Production, so initially these IDs will be matching. Then any code changes can only be introduced to your Build environment, where the new objects will get a new ID. Then from the build environment you would be releasing the AX ModelStore, which does carry over your IDs to Production, and not cause a problem like you have at the moment with the XPOs.

  • Bharath B J Profile Picture
    85 on at
    RE: Error while database Synchronization

    Thanks for the replies..

    Martin,

    I imported a few XPOs to the environment.

    Also, i just now noticed that this error is related to the SalesLine table.

    The insert into statement in the screenshot is for the SalesLine table.

    Vilmos,

    Can you please explain in brief about the ID conflicts? Also, what is required to be done for table/field identifiers to be in sync with SQLDictionary table?

  • Vilmos Kintera Profile Picture
    46,149 on at
    RE: Error while database Synchronization

    Your table/field identifiers are out of synch from the SQLDictionary table. This is due to incorrectly releasing code to an environment. You need to sort out the ID conflicts on those objects.

  • Martin Dráb Profile Picture
    236,192 Most Valuable Professional on at
    RE: Error while database Synchronization

    It seems that you have several different errors there. What did you do with the environment before running synchronization?

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#1
Guy Terry Profile Picture

Guy Terry 2 Moderator

#1
Community Member Profile Picture

Community Member 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans