Applies to Product - Dynamics 365 Business Central
What’s happening?
- The AL compiler builds invalid permission XML files when it contains only a few permissions, leading to service startup failures.
- Debugging errors occur in Visual Studio Code when targeting a production environment instead of a sandbox environment.
- This with the AL compiler arises when the generated entitlement XML file is less than 256 bytes, causing the Business Central (BC) service to pad the file with invalid characters, resulting in an invalid XML file.
- The debugging error in Visual Studio Code is due to the attempt to debug in a production environment, which is not supported for certain scenarios.
- For the AL compiler issue, ensure that the permissions set includes sufficient entries to avoid generating an entitlement file that is too small. If this persists, refer to the fix included in the platform build as confirmed in the support case.
- For the Visual Studio Code debugging error, switch to using the sandbox environment for debugging instead of the production environment. This change should resolve the encountered error.
