Edit

Compiler Error AL0918

Note

The AL diagnostics topics are in preview. If you have input for this topic, we'd love to hear from you. Use our GitHub repo to create a PR and add content to this topic by going to here. To read about contributing, see Contribute to the Help. Thanks!

Interface '{0}' has the same runtime ID as interface '{1}' from module '{2}'. Rename one of the interfaces or change its methods to resolve the conflict.

Remarks

The AL compiler assigns a runtime ID to each interface based on its namespace, module, name, and method signatures. The ID generation should result in unique IDs, but in rare cases, conflicts can arise. If two interfaces from different modules produce the same runtime ID, the runtime cannot distinguish between them. This error prevents ambiguous interface dispatch at runtime.

How to fix it

If your interface triggers this error, rename the interface, change its namespace, or rename one of its methods so the two interfaces produce different runtime IDs.

Getting started with AL
Developing extensions
Interfaces in AL