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.

Unknown error while document upload. 1 error has occurred Error:

BansiApr 22 2022

Hi, I've created report with form for document upload.
first, there is one button which is redirecting to document report page (model dialog) and then report to form. in which I've passed document id from button target set items to item named id on report and then item named id from report to form page. on form page, id item is display only with list of value.
On form page, I am saving document directly in table without using apex temp files table.
file browse item settings: display as : inline file browse, storage type: blob column specified in item source attribute , mime type, filename, charset, last updated column all are as per table columns.
While uploading the document, sometimes it's showing this unknown error and sometimes allowing to upload.
image.png
I have already tried some testcases like size related and extension related
I'm not able to understand what exactly the error is about.
Please help.
Thank you.

Comments

Hi Jon,
there is a setting for this when using the new Data Load Definitions in APEX 21.1.
After creating the data load, navigate to Shared Components, Data Load Definitions
Edit your very Data Load Definition
Click the button to edit the Data Profile, which contains all information about the format, columns or data types
Scroll down towards the bottom and you'll see an attribute named Skip Rows.
Does that help?
regards
-Carsten

Jon Finke

Alas, it appears too late - I need to skip the rows when defining the columns to match. It looks like while I can skip the rows, I have to go in and manually define each of the columns.
But perhaps I can edit the original spreadsheet to make the data definition...

Answer

Hi Jon,
ah - that's right. At design time there is no attribute to specify the amount of rows to skip. But the column mapping is only done once; so for the sample file you're uploading, you can also manually remove the rows in question, then create the data load definition, add the "Rows to Skip" attribute and save. Then you should be good, right?
But this is a good heads-up: We might have the Skip Rows attribute in the wizard ...
best regards
-Carsten

Marked as Answer by Jon Finke · Jul 29 2021
Jon Finke

Carsten,
If I edit the excel file ahead of time, delete the header rows, use that to create the data load template, I can then use that to load the spreadsheet. That will work for my application.
But it would be really nice to have the SKIP_ROWS available as an option the wizard when defining the load sources.

1 - 4

Post Details

Added on Apr 22 2022
2 comments
643 views