AppSourceCop Error AS0128
An interface must not be removed from the the list of extended interfaces on an interface that has been published.
Description
An interface must not be removed from the list of extended interfaces on an interface that has been published, because dependent extensions may break
Remarks
Removing an extended interface from a published interface can break dependent extensions that rely on the original interface. When an interface is published, other extensions may implement or depend on it. Changing the interface by removing extended interfaces can introduce compatibility issues and cause dependent extensions to fail.
How to fix this diagnostic?
To address the AS0128 error, avoid modifying the list of extended interfaces on an interface that has already been published. If you need to deprecate functionality, mark the interface as obsolete before removing it. Here are the steps to fix this diagnostic:
- Identify the interface that has been published and is causing the AS0128 error.
- Evaluate whether the functionality can be deprecated without modifying the existing interface.
- If the functionality needs to be deprecated, mark the interface as obsolete using the
ObsoleteState
andObsoleteReason
properties.
Related information
AppSourceCop Analyzer
Getting Started with AL
Developing Extensions