Option value code compiles but fails at runtime in 17.0
Describe the bug We have an app running with a cloud customer who was just upgraded from BC 16 to 17. The setrange for an option value still compiles, but when the program runs, it crashes the client without a meaningful error.
To Reproduce
AL Code to reproduce the issue
SETRANGE(Entry_Type, JobLedgQuery.Entry_Type::Usage); //option Changed this to prevent the crash: SETRANGE(Entry_Type, "Job Journal Line Entry Type"::Usage); //enum
- Go to '...' Expected behavior I expect it to either run in BC17 or for the compiler to give an error or at least a warning.
Screenshots If applicable, add screenshots to help explain your problem.
5. Versions:
- AL Language: 6.1.362735
- Business Central: 17.0
Hi,
Many thanks for raising this issue. Unfortunately we have not been able to get to this issue as soon as we'd have liked. Since it has been a long time since this issue was last updated, it is possible that this has been fixed by a newer release of Business Central and the AL extension for Visual Studio Code. We have thus decided to close it.
If the issue still affects you on the latest insider build of Business Central, please help us and open a new issue for us with the latest steps to reproduce the issue, and link back to this closed issue to track any comments or discussions.
Thanks,
Thaddeus