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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

"schemaUpdateMode": "Synchronize"...

(0) ShareShare
ReportReport
Posted on by 782
Hi all,
I am working on AL i have created 1 table and one page when i publish the app more the one time on  same version the data that i entered was lost even i did not make any change in table or page.
Even i used  "schemaUpdateMode": "Synchronize" , i don't know why the data lost when the schemaUpdateMode = Synchronize.
any solution to safe the data ?

*This post is locked for comments

I have the same question (0)
  • ManishS Profile Picture
    86 on at

    That's surprising.

    Had you used force to synchronize the changes.

  • Muhammad Arif Maseed Profile Picture
    782 on at

    sir how you use force in AL Extension V2.0 ?

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    The data synchronization between each publish of an extension is controlled by schemaUpdateMode setting, which is specified in the launch.json. This setting consists of two options; Synchronize and Recreate. The default value for schemaUpdateMode is set to Synchronize mode, which means that every time you publish an extension the data you entered is preserved.

    If you don't want this, you can change the schemaUpdateMode setting from Synchronize to Recreate.

    When you set the schema update mode to Recreate, all the tables and table extensions are recreated at every publish, which means that all the data in those tables are lost.

  • yannstlo Profile Picture
    122 on at

    Hi,

    How about if I have 10 tables in my extension and only 1 is getting modified, do I have to loose the data in all the other tables? Is there a way to use the "schemaUpdateMode": "Recreate" on only 1 table?

    What about in a production environment, how would you handle modifications to your tables without loosing your data?

    Thanks

    Yann

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    No way for a single table.

    In a production environment, recreate is not possible, you need to always be backward compatible. In production you need to act as explained here:

    [View:https://demiliani.com/2018/10/26/dynamics-365-business-central-handling-breaking-schema-changes-on-production/]

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans