When inserting into a table and excluding a value for a nullable column with a foreign key reference, I am getting an error:
Could not execute 'INSERT INTO ATTRIBUTE_VALUE (ATTR_VALUE_KEY, ATTR_KEY, VALUE) values (30,1,'VALUE 30-1')' in 43 ms 845 µs . SAP DBTech JDBC: [461]: row locked by other transaction:
However, if I provide a valid foreign key reference in the fourth column, the insert will work just fine.
Statement 'INSERT INTO ATTRIBUTE_VALUE (ATTR_VALUE_KEY, ATTR_KEY, VALUE, DATA_SOURCE_SYSTEM_KEY) values ...' successfully executed in 27 ms 54 µs (server processing time: 2 ms 711 µs) - Rows Affected: 1
Why is this happening?