編集

Compiler Error AL0155

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!

A member of type {0} with name '{1}' is already defined in {2} '{3}' by the extension '{4}'.

Description

Multiple members with the same name are defined by the same or several extensions.

How to fix this diagnostic?

A member (a field, control, action, or method) with this name is already defined on the object, sometimes by another extension that also extends it.

To fix it:

  1. If you didn't intend to define the member twice, remove the duplicate.
  2. If you need a new member, give it a unique name.
  3. When several extensions extend the same object, prefix your member names with a short identifier for your extension to avoid collisions with other publishers.

Get Started with AL
Developing Extensions