Skip to Main Content

APEX

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

have this error code: 1 error has occurred ORA-01465: invalid hex number, with my code can you help me please

Thes Michel ONDO BONGAAug 26 2024 — edited Aug 26 2024

Hello everyone, I hope you are doing well! I have an error when I want to save two tables in a form, using an onSubmit process with pl/sql code and this error is linked to the SYMBOLEBLOB column that I use to save images here is the error code: 1 error has occurred ORA-01465: invalid hex number and here is the code thank you :

DECLARE
v_organisation_id SGP_ORGANISATION.id%TYPE;
BEGIN
-- Insert into the Organisation table
INSERT INTO SGP_ORGANISATION(
LOCATION_ID,
NOM,
DATE_CREATION,
TELEPHONE,
EMAIL,
SITEWEB,
DESCRIPTION,
NOMBREMEMBRES,
SYMBOLEBLOB
) VALUES (
:P5_LOCATION_ID,
:P5_NOM,
:P5_DATE_CREATION,
:P5_TELEPHONE,
:P5_EMAIL,
:P5_SITEWEB,
:P5_DESCRIPTION,
:P5_NOMBREMEMBRES,
:P5_SYMBOLEBLOB
) RETURNING id INTO v_organisation_id;

-- Insert into the PartiePolitique table using the newly created organisation ID
INSERT INTO SGP_PARTIEPOLITIQUE (
FOUNDEDDATE,
PRESIDENT,
IDEOLOGIE,
PROGRAMMES,
ELUS,
organisation_id
) VALUES (
:P5_FOUNDEDDATE_1,
:P5_PRESIDENT_1,
:P5_IDEOLOGIE_1,
:P5_PROGRAMMES_1,
:P5_ELUS_1,
v_organisation_id -- Use the organisation ID created above
);

-- Commit the transaction
COMMIT;
END;

This post has been answered by Steve Muench-Oracle on Aug 28 2024
Jump to Answer
Comments
Post Details
Added on Aug 26 2024
7 comments
227 views