Description
Please include the following with each issue:
1. Describe the bug
When using the "Merge Customers" function, the system incorrectly flags dimension conflicts during the merge process, even when no real conflict exists.
2. To Reproduce
Steps to reproduce the behavior:
1.Create:
- Customer 1000
- Customer 2000
- Create:
- Item 1000 with dimensions: Department = SALES
- Item 2000 with dimensions: Department = SALES (same as Item 1000)
- Go to Customers.
- Select Customer 1000.
- Choose **Actions > Functions > MergeDuplicate.
- Attempt to merge Customer 2000 into Customer 1000.
- A dimension conflict is reported, although:
- The customer-level dimensions are not conflicting.
- Item 1000 and Item 2000 have the same dimension values.
- No true data conflict exists.
Example Scenario:
- Item 1000 and Item 2000 exist and Item 100 have the same Dimensions like Item 2000
AL code snippet that demonstrates the issue or a link to a code repository the developers can easily pull down to recreate the issue locally.
Code in Table 64 "Merge Duplicates Buffer" function CollectRelatedTables()


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
The merge should check dimensions only for the target table (Customer, ID 18) and related ledger entries that are relevant to the customer. Shared or matching Item numbers and unrelated dimensions should not cause merge conflicts.
4. Actual behavior
The system detects dimension conflicts even when dimension values are valid. The conflict is falsely triggered due to dimension differences in Items (same Item No. used across different customers), even though these should not be considered in the Customer merge context.
5. Versions:
- AL Language: v15.0.1433841
- Visual Studio Code: 1.102.0
- Business Central: 26.0
- List of Visual Studio Code extensions that you have installed: AL Language only
- Operating System:
- Windows
- Linux
- MacOS
Final Checklist
Please remember to do the following:
-
Search the issue repository to ensure you are reporting a new issue
-
Reproduce the issue after disabling all extensions except the AL Language extension
-
Simplify your code around the issue to better isolate the problem