|
[QODBC] Not supported - At least one Line record is required. Please insert Child/Detail record(s) before inserting Parent/Header record.
Posted by Rajendra Dewani (QODBC Support) on 22 October 2025 03:17 AM
|
|
|
Problem Description: I am getting the following error trying to insert a record in Invoice:
Solution: How to Fix the Error Insert the Detail Records First: Before you attempt to insert data into the Parent/Header table (e.g., Invoice), you must successfully insert at least one corresponding record into the Child/Detail/Line table (e.g., InvoiceLine).
Insert the header record: INSERT INTO Invoice (CustomerRefListID, RefNumber, FQSaveToCache) VALUES ('670000-1071517519', '71099',0) Insert the Header Record Last: Once the detail record(s) are in place, you can then insert the Parent/Header record, completing the transaction.
If you are using MS Access application, the connection string or the connection object is getting closed after you insert the Invoice Line and before you can insert the Invoice (Header) record. If you are using ADO/DOA objects, please ensure you do not close the connection between the insert of InvoiceLine and the Invoice table. | |
|
|



