AppSourceCop Error AS0124
Changing an extension object's target is not allowed.
Description
Changing the target of an extension object that has been published is not allowed, because this might break the dependent extensions.
Remarks
Altering the target of a published extension object can break dependent extensions that rely on the original target. When an extension object is published, other extensions may depend on its target. Changing the target can introduce compatibility issues and cause dependent extensions to fail.
How to fix this diagnostic?
To address the AS0124 error, avoid changing the target of an extension object that has already been published. If you need to introduce new functionality or changes, consider creating a new extension object with the desired target instead of modifying the existing one. Here are the steps to fix this diagnostic:
- Identify the extension object with the target that you intend to change.
- Evaluate whether the change is necessary or if you can achieve your goal without modifying the existing target.
- If the change is necessary, create a new extension object with the desired target.
- Update your extensions to use the new extension object instead of modifying the existing one.
- Deprecate the extension object if it's a page extension or page customization and/or all its members.
Related information
AppSourceCop Analyzer
Getting Started with AL
Developing Extensions