API Error: Running AR_INVOICE_API_PUB.CREATE_INVOICE Multiple Times in a Session Raises Error: ORA-01400: cannot insert NULL into ("AR"."RA_CUST_TRX_LINE_GL_DIST_ALL"."SET_OF_BOOKS_ID") (Doc ID 1399814.1)

Last updated on JUNE 20, 2016

Applies to:

Oracle Receivables - Version 11.5.10.2 and later
Information in this document applies to any platform.
*** Checked for relevance 09-Jan-2014 ***

Symptoms

When attempting to run AR_INVOICE_API_PUB.create.single.invoice more than once in a session, the following error occurs:
Error in AR_TRX_BULK_PROCESS_DIST.INSERT_ROW ORA-01400: cannot insert NULL into ("AR"."RA_CUST_TRX_LINE_GL_DIST_ALL"."SET_OF_BOOKS_ID")

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms