D365FO - Error: cannot edit a record in batch job (batchjob). update must be performed inside a transaction.

Hi,

D365FO - Error: cannot edit a record in batch job (batchjob). update must be performed inside a transaction.


Error comes while printing any report in D365FO




Solution: After a data refresh from the Production to the sandbox environment we encountered the exact same error.
However this thread helped me to solve the error, the fix was a little different.
In Production the batch job "Report data clean up" has the status 'Waiting' and is running once every day.
In sandbox the data refresh changed the batch status to 'Withhold'. After changing back to "Waiting' and running once the error disappeared.


After batch job started





Comments