ORA-305500 with Outlook and forms 6i OLE2 FIX
Gary_WMay 18 2005 — edited Sep 24 2007I am posting this in the hope that this bit of info may help solve someone else's problem with this error.
I am converting a forms 5 app to 6i on Win2000. E-mailing a report as an attachment via Outlook and OLE2 worked just fine on forms 5. With 6i (running client-server) I got ORA-305500 on the call to OLE2.INVOKE_OBJ() where I am trying to add the attachment.
I searched on Metalink and google'd the error but none of the fixes listed worked. So, I figured I best start at the beginning and began tracing through the code to make sure the report file was really created, was able to be opened, etc.
Well, I found that the report creation code had a hardcoded path where the report was to be saved to prior to being attached (this path will exist when the app is distributed to the client). The path did not exist on my machine! So, the report did not get created, but yet no error was produced. The call to INVOKE_OBJ() failed because the attachment was not found. When I created the path all works ok!
Good Luck!