I have a working NAV2015 solution that I have just upgraded to NAV 2016. In that solution, when the Sales Order list opens from the Role Centre there are some extra columns that involve calling code units to calculate some extra information about Group credit limits etc.
In those code units I use temporary Customer tables to do calculations. The first thing I execute is a DELETEALL statement on the temporary table.
This has worked fine in all versions from Classic to NAV2015.
In NAV2016 the page fails with a message "A transaction must be started before changes can be made to the database." Looking at the code, the sequence is as follows:
now seems to trigger new functions in Codeunit 1550 Record Restriction Management
RemoveCustomerRestrictionsBeforeDelete(VAR Rec : Record Customer;RunTrigger : Boolean)
AllowRecordUsage(RecID : RecordID)
which is where the debugger falls over with the message.
This only happens opening the page from the Role Centre. If I go to another route and open the Sales Order page from a Factbox for example it works fine.
As I said, this code has worked perfectly over the last 4/5 versions.
Anybody experienced this with NAV2106 yet?