Hi,
I have created two tables. And created a codeunit in which I try to insert values into these tables.
I get the following error:
You cannot make any changes to the database until a transaction has been started.
Any idea why I am getting this error? Do I need to set some properties on the table or CodeUnit?
Thanks & Regards,
Sup
0
Comments
You cannot make any changes to the database until a transaction has been started.
Thanks & Regards,
Sup
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
I know this is an old posting but I got the samw error. I consulted with two other developers who had never heard of it. The solution was to move my code away from the OnInitDataport trigger to the OnPreDataport trigger.
j
can you please describe the error and the solution so that others can avoid this problem? And then maybe put [SOLVED] in the topic?
It think it is not possible to write data in a table on the onInit trigger.
Correct me if i'm wrong