AL icon indicating copy to clipboard operation
AL copied to clipboard

Aldoc 13.0.864697 will error and fail to generate a yaml file if the ExternalBusinessEvent is used.

Open coffeecup007 opened this issue 2 years ago • 0 comments

1. Describe the bug With ms-dynamics-smb.al-13.0.864697\bin\win32\aldoc it seems like if you have an "ExternalBusinessEvent" decorator in your codeunit, then the aldoc 'build' command will write an error, and product an empty yaml for the codeunit:

ERROR writing content yaml for 'Codeunit "Your Codeunit Name Here"'. Message: Object reference not set to an instance of an object.

2. To Reproduce Create a codeunit. Add an external integration event using the ExternalBusinessEvent decorator. Successfully compile the app. Attempt to use aldoc 'build'

    [ExternalBusinessEvent('j', 'k', 'lmnop', EventCategory::YourEventCategoryHere)]
    procedure OnSomeEvent(a: guid; b: code[20]; c: Guid; d: code[20]; e: Code[20]; f: code[10]; g: Code[50]; h: Code[50]; i: Code[20])
    begin
    end;

3. Expected behavior It not to fail.

4. Actual behavior It fails with ERROR writing content yaml for 'Codeunit "Your Codeunit Name Here"'. Message: Object reference not set to an instance of an object.

5. Versions:

  • AL Language: 13.0.864697
  • Visual Studio Code: 1.82.1
  • Business Central: 22.5
  • List of Visual Studio Code extensions that you have installed: None.

coffeecup007 avatar Sep 19 '23 18:09 coffeecup007