AppSourceCop Error AS0044
Property changes that cause destructive changes are not allowed
Description
Destructive field properties that have been published must not be modified.
Remarks
This error occurs when an attempt is made to modify field properties that have already been published and are considered destructive. Destructive changes can lead to data loss, corruption, or other issues that can break the upgrade process for existing installations and dependent extensions.
How to fix this diagnostic?
To resolve this error, you need to avoid modifying published field properties that are considered destructive. Here are the steps:
- Locate the field property in your code that is being removed.
- Restore the property to its original state.
Related information
AppSourceCop Analyzer
Get Started with AL
Developing Extensions