Call to the function 'INSERT' is not allowed inside the call to when it is used as a TryFunction.

Hi all,

Does somebody know why this error occurs when I want to migrate some functionality to newer version, and how to solve it?


Best Answer


  • KishormKishorm Posts: 908Member
    You can use the DisableWriteInsideTryFunctions as a temporary measure but you should restructure your code so that you do not have database changes within the TryFunction. The reason this restriction was added was for database integrity as the initial implementation of TryFunctions could result in partially committed / partially rolled back data.
Sign In or Register to comment.