Hello sir, I am very grateful for your posts, it helps me a lot.
I have one question:
In my application, I use the data load wizard for uploading data. I want to adjust the content in the error column of the data load result page in the data load wizard progress so that when the user sees the error, they will understand what it is. For example, when reporting a constraint error, if the default, apex will display “ORA-00001: unique constraint (…) violated” I want to replace it with my message is”Duplicated data, check again.” and other errors.
If it is the default, we can not adjust it so do you have any solution for this problem?
THANKS, A LOT.
In Oracle Apex, upload data wizard logs error information in the collection and creates the report using the collection.
So it is better to modify the query to replace the error column usually (c048) using the case statement. Below is an example:
In the “Data Load Results” page, modify the failed records region query as following:
In the above query, you can see, I am checking the first 14 characters of the C048 column, that if the value is ‘-1 : ORA-00001’, then replacing the error message with Duplicate Row. Similarly, you can replace any other errors too.
The following is the output now:
Sincerely thanks! ^-^