How to solve this error Integrity Error The operation cannot be completed, probably due to the following: - deletion: you may be trying to delete a record while other records still reference it - creation/update: a mandatory field is not correctly set [object with reference: order_id - order.id] ?
I try to insert data in sale order line table this table has FK refer to sale order (I want this FK as Null ) but when I insert data to this table raise for me this error althoght I maked this FK on_delete (set null) and not required but still raise for me this error please help me how to solv this error
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 3/2/15, 12:59 AM|
|Seen: 448 times|
|Last updated: 3/16/15, 8:10 AM|