idRanges property
Describe the bug Compiler doesnt accept the declaring of the idRanges property on the app.json file, to support multiple id ranges. I've used the example from the following online documentation:
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-json-files
To Reproduce
- Go to app.json
- Add property for idRanges as
"idRanges": {"from": 50100,"to": 50200},{"from": 50202,"to": 50300}
Expected behavior No compiler issue
Screenshots

Versions:
- AL Langauge: 2.1.6.9331
- Business Central: W1 13.2 (26556)
The compiler issue was resolved by including square brackets, as follows
"idRanges": [{"from": 50100,"to": 50200},{"from": 50202,"to": 50300}]
However, cannot publish the app due to the following error... error AS0014: The project manifest must contain the allocated identifier range.
Hi @nmahate ! If you enter the name of the property "idRanges": and then use Ctrl+Space, Intellisense will guide you towards the right syntax. AS0014 is an AppSourceCop error. Are you creating an extension for AppSource?
Hi. I'm publishing it to a local container. But we intend for the app to go onto appsource, so I've kept the AppSourceCop analyzer on.
The id's in the example were just to display the initial problem with the compiler. I am using a range intended for AppSource.
This looks like a bug in the analyzer. I will mark it for investigation.
Hi, I have a similar problem but the compiler is reporting an issue with the property.

VSIX is 2.1.69331
Hi, this issue is not reproducing on our master branch. In runtime 3.0 this issue is resolved, which is our spring release. Please work around the issue for now and make sure to update your extension when our new version is out, and this issue should be resolved. If you are a BC customer and need this feature activated sooner, please open a support ticket and we can consider to make it available for previous runtime versions.
Thanks!
Johan