Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

Best approach when DB sync table schema change issue

Posted on by 396
Hello everyone,
 
I have a table with a field having type Enum, and after using for several time in production, we have to change the type to string, and result Build error, because of this conversion
 
May I know the best way to solve the error ? the error suggest us to delete the object (table), but it already contain many rows, also several object like data entity, security keys, forms that using this table. Wouldn't it produce more error if I delete the table ?
 
Can I get advice how to resolve this ?
Thanks
Categories:
  • Best approach when DB sync table schema change issue

    There is no fix for the error other than to rethink how to change the type of the field. And when you are in PROD, your options are pretty limited.

    I'm used to creating a new field on the table, instead of changing the type; not removing the table. This approach leads to fewer issues but requires some effort in updating it in tables, etc. Once you have migrated the data using a job and are confident in the migration, you can remove the old field from PROD.

    Can you use this approach?
    Also, you mention security keys. Is this part of an ISV solution?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans