Edit

Compiler Error AL0132

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!

'{0}' does not contain a definition for '{1}'.

Description

The referenced element does not contain a definition for the referenced member.

How to fix this diagnostic?

The object or variable exists, but it has no field, method, or property with the name you used.

To fix it:

  1. Check the spelling of the member. Quote names that contain spaces, for example Customer."No.".
  2. Confirm you're using the right variable or object type. The member might be defined on a different object.
  3. Use IntelliSense (after the .) or Go to Definition (F12) to list the available members.
  4. If the member comes from another extension, add that extension as a dependency in app.json.
var
    Cust: Record Customer;
begin
    // 'Naem' isn't a field on Customer -> AL0132
    Message(Cust.Naem);
    // Correct
    Message(Cust.Name);
end;

Get Started with AL
Developing Extensions