Closed tyurm closed 2 weeks ago
Hi, this issue is out of scope of for this repository. You should do one of the following:
As a reminder, this repository only handles issues to do with the compiler or VSCode development experience for AL. This is to do with the execution of AL code on the server, so we can't handle it here and it needs to go to the server team.
1. Describe the bug OnAfterGetRecord trigger ignores IsolationLevel specified onOpenPage trigger. The only way to get "COMMITED" data on the page is to run CalcFields onAfterGetRecord, but this kills performance.
2. To Reproduce Steps to reproduce the behavior:
2.1. Use page below for debugging
2.2. Add two breakpoints OnAfterGetRecord trigger - before Rec.CalcFields and after. 2.3. Compare last executed SQL statement.
3. Expected behavior BC gets data from "Comment Line" table according to IsolationLevel specified onOpenPage trigger, in our example - READCOMMITED.
4. Actual behavior statement before CalcFields shows that BC "READUNCOMMITED" data from "Comment Line" table:
statement after CalcFields shows that BC "READCOMMITED" data from "Comment Line" table:
5. Versions: