Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

FRM-40508: oracle error:unable to INSERT record

794404Aug 28 2010 — edited Aug 15 2012
Hello,

I'm creating a form with forms builder (oracle 10g) and I created one control block (i converted the data block to a control block) and a detail data block (detail block was created using the wizard).

There is a save button in the detail data block which generates a trigger to insert the record in the DB. But it gives the error "FRM-40508: oracle error:unable to INSERT record", but when I manually insert the same record through SQL it works fine.

The user has all the privilages in the DB.

This is the trigger code to insert the record:

INSERT INTO order_line VALUES
(: ORDER_BLOCK.order_id,
:ORDER_LINE_BLOCK.inv_id,
:ORDER_LINE_BLOCK.qty);
COMMIT;

Thanks for any help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 12 2012
Added on Aug 28 2010
8 comments
25,637 views