D365 BC Shows Error When Changes Made in Table Fields- Solved

D365 BC Shows Error When Changes Made in Table Fields:

(1) The system show error when we did changes in the Table fields like Delete, Change Data Type and Rename in Dynamics 365 Business Central.

(2) Error Message-

Microsoft (R) AL Compiler version 7.4.7.43721
Copyright (C) Microsoft Corporation. All rights reserved
Compilation started for project ‘TNSProjectExtension’ containing ’25’ files at ’18:26:34.515′.
e:\ABC Extensions\ABCProjectExtensions.vscode\Custom Object\ProjectBudgeting.Page.al(91,61): error
 AL0132: ‘Record “Sales Line”‘ does not contain a definition for ‘BudgetedMargin’
Compilation ended at ’18:26:35.597′.
Error: The package could not be created.
error when changes made in table field in d365

(3) For solving the above error. Define “schemaUpdateMode“: “ForceSync” in “launch.json” file. And publish the extension again. As shown below-

Define SchemaUpdateMode in Business Central

How to Create New Database in Microsoft SQL Server
How to Attach MDF file Without LDF File by using SSMS
How to change Caption or Name of existing Field in D365 BC
Troubleshooting Synchronization Errors– Microsoft Docs

Leave a Reply