I hada Virtual Machine in V12.0.30 in which suddenly I could not create receipts, but got an error as below.
I found out this was caused by a trigger on the STOJOU table that had not deleted when I uninstalled SEI.
I disabled the trigger and the X3 receipt function worked again.