AL icon indicating copy to clipboard operation
AL copied to clipboard

AS0124 error for unchanged pageextension

Open AlexCeg opened this issue 1 year ago • 0 comments

1. Describe the bug We get this error, when we compile against BC24. I think the problem is, that the page "No. Series" was moved to another layer of the base application.

"The target of the extension object 'PageExtension' has changed from '__MissingTypeSymbol__' to 'No. Series'. Changing the target of an extension object that has been published is not allowed, because this might break the dependent extensions."

2. To Reproduce

  1. We have a pageextension to the pages "No. Series" (456) and "No. Series Relationships" (571) which was already published for BC23 (e.g. Version 1)
  2. Create a BC24 container (Artifact URL https://bcinsider.azureedge.net/sandbox/24.0.16410.16944/de)
  3. Download symbols of BC24 container
  4. Set up our workspace to compile and check for breaking changes between Version 1 and our current code
  5. Compile -> Error AS0124

Note: Because the developers need to copy and paste the code snippet, including a code snippet as a media file (i.e. .gif) is not sufficient.

3. Expected behavior There should be no error, because there is no breaking change.

4. Actual behavior Error AS0124 occurs

5. Versions:

  • AL Language: 14.0.951286 (worked until 13.878831, I checked all versions)
  • Visual Studio Code: 1.87.0
  • Business Central: 24.0.16410.16944
  • List of Visual Studio Code extensions that you have installed:
  • AL Language

Final Checklist

Please remember to do the following:

  • [x] Search the issue repository to ensure you are reporting a new issue

  • [x] Reproduce the issue after disabling all extensions except the AL Language extension

  • [x] Simplify your code around the issue to better isolate the problem

AlexCeg avatar Mar 08 '24 07:03 AlexCeg