Error 85132273 during Publish and Install application
1. Describe the bug I have same Error 85132273 in two projects. First project raise the error during publish process and second project raise the error during installation/upgrade app.
I analyzed problem and I found reason for this error probably. When I remove code by my new experience everything works perfectly. Problem raise when I use same control/field on page and do move actions.
All was tested on OnPrem servers.
2. To Reproduce First example:
- Create test application
- Create object page Extension
pageextension 65042 "Test HELP" extends "Contact List"
{
layout
{
addlast(Control1)
{
field("Company Name HELP"; Rec."Name")
{
ApplicationArea = All;
ToolTip = 'Specifies a code for an alternate shipment address if you want to ship to another address than the one that has been entered automatically. This field is also used in case of drop shipment.';
}
}
}
}
- Create second object page Extension
pageextension 65046 "Test2 HELP" extends "Contact List"
{
layout
{
moveafter("Company Name"; "Company Name HELP")
}
}
- Publish and raise error.
Second example:
- Create first test application
- Create object page Extension
pageextension 55116 "Contact List HELP" extends "Contact List"
{
layout
{
modify("Name 2")
{
Visible = true;
}
addlast(Control1)
{
field("Address 2 HELP"; Rec."Address 2")
{
ApplicationArea = All;
ToolTip = 'Specifies additional address information.';
}
}
}
}
- Publish and install first appication:
- Create second test application that is depends on first application
- Create object page Extension
pageextension 65042 "Test HELP" extends "Contact List"
{
layout
{
moveafter("Company Name"; "Address 2 HELP")
moveafter("Name"; "Address 2 HELP")
}
}
- Publish and raise error. If you comment one line error is gone. If you substitute "Address 2 HELP" with standard fields created in object Page error is gone. So problem is in combination that field was added by object PageExtension and after that in second application was moved twice.
3. Expected behavior Compilator should raise error that it is not possible do or BC have to allow it. Examples are prepared for testing.
Real scenario for first Example: We have application with some module and object PageExtension. We are usin PageExtension in the project for add or change fields for main application part. But we have "sub modules". So we are using moves in second PageExtension object. We are using second PageExtension as default view. So first page extension add fields only and second page extensions do only moves with fields.
Real scenario for second Example: We as partner create app for customer (first application). Customer do moves with fields, they use designer for this and after that merge changes to one project (second application). They miss that use field so they add moveafter more times for one field.
4. Actual behavior Raise error 85132273 in my examples.
5. Versions:
- AL Language: 15.0.1433841
- Visual Studio Code: 1.99.2
- Business Central: 25.5.30849.31109
- List of Visual Studio Code extensions that you have installed:
- Operating System:
- [X] Windows
- [ ] Linux
- [ ] MacOS
Internal work item: AB#575600