Uploading from Excel stopd when I open the file [message #480093] |
Thu, 21 October 2010 03:13 |
|
I'm uploading data from excel to our database using forms thru webutil. The problem is when I open the same excel file while the upload process is in progress, the uploading stops, BUT not displaying any error. Not even when I chick Help->Show error.
How could I prevent this error and how to trap and display error message?
|
|
|
Re: Uploading from Excel stopd when I open the file [message #480233 is a reply to message #480093] |
Thu, 21 October 2010 21:37 |
|
I also get this error on java console.
2010-Oct-22 10:28:16.500 ERROR>WUO-714 [OleFunctions.setExceptionValues()] Unable to get the last OLE Error details; Exception
null
2010-Oct-22 10:28:16.500 ERROR>WUO-709 [OleFunctions.get_obj_property_args()] Unable to get Property: Cells; Exception
com.jacob.com.ComFailException: A COM exception has been encountered:
At Invoke of: Cells
Description: An unknown COM error has occured.
|
|
|
Re: Uploading from Excel stopd when I open the file [message #481650 is a reply to message #480233] |
Fri, 05 November 2010 00:11 |
tamzidulamin
Messages: 132 Registered: October 2009 Location: Dhaka
|
Senior Member |
|
|
Dear wency,
you don't access your excel file while your upload process is running. you have to access excel file after uploading is complete.
Because oracle forms using OLE(Object Linking Embed) tools for upload data from excel. OLE function unable to get data from excel
while any other access the same file. u use a status value in your forms developer so that u can ensure your data uploading is
complete or not.
regards,
Tamzidul Amin.
|
|
|
|
|
Re: Uploading from Excel stopd when I open the file [message #482124 is a reply to message #481920] |
Tue, 09 November 2010 21:03 |
|
I placed a marker everytime I read the value from excel, like this:
v_isopened := 'Y';
cell_value := Client_OLE2.get_char_property(cell,'Value');
v_isopened := 'N';
In my EXCEPTION, I can now display message that the file was opened so it terminates.
Also, place these for other error that may occur:
displaymessage(Error_code||': '||Error_text || '.');
displaymessage(SQLERRM);
[Updated on: Tue, 09 November 2010 21:04] Report message to a moderator
|
|
|
|
|
|