If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Load data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-20-04, 12:44
jortiz jortiz is offline
Registered User
 
Join Date: Jun 2003
Posts: 294
Lightbulb Load data

Hello !

I Got a function that loads a file into a table, but there's a mistake and I don't know why and how to solve it. That's very usefull.

The file is attached and I used this plsql block to test it :

DECLARE
ovaMensajeTecnico VARCHAR2(100);
lnuResultadoCarga NUMBER;
BEGIN
lnuResultadoCarga:=FNC_CARCAR_INFO (
'x',
'COL1',
'C:\',
'CargaFile.txt',
' ',
ovaMensajeTecnico);
END;
/


ERROR at line 1:
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "SYS.UTL_FILE", line 98
ORA-06512: at "SYS.UTL_FILE", line 157
ORA-06512: at "BASE_AVANSOFT.FNC_CARCAR_INFO", line 22
ORA-06512: at line 5
Attached Files
File Type: txt LoadInfo.txt (2.5 KB, 62 views)
Reply With Quote
  #2 (permalink)  
Old 05-20-04, 19:49
billm billm is offline
Drunkard
 
Join Date: Nov 2002
Location: Desk, slightly south of keyboard
Posts: 697
Hi,

the error is not in the code you provided, but in the function/packaged function called FNC_CARCAR_INFO. The call stack/error message states this.

Regards
Bill
__________________
Please don't email me directly with questions. I've probably just got home from the pub and cannot guarantee the sanity of my answers. In fact, I can't believe I actually made it home.
Reply With Quote
  #3 (permalink)  
Old 05-20-04, 21:14
jortiz jortiz is offline
Registered User
 
Join Date: Jun 2003
Posts: 294
What do you mean ?????
Reply With Quote
  #4 (permalink)  
Old 05-21-04, 03:16
julla27 julla27 is offline
Registered User
 
Join Date: Feb 2004
Location: Germany
Posts: 136
Hi jortiz!

I think you have the same problem:

http://www.dbforums.com/t997729.html
__________________
Regards,
Julia

Last edited by julla27; 05-21-04 at 03:18.
Reply With Quote
  #5 (permalink)  
Old 05-21-04, 03:23
billm billm is offline
Drunkard
 
Join Date: Nov 2002
Location: Desk, slightly south of keyboard
Posts: 697
Oops, I have just noticed that you have provided the code in the attachment, my mistake sorry :-)

I think Julia's advice will serve you well.

Cheers
Bill
__________________
Please don't email me directly with questions. I've probably just got home from the pub and cannot guarantee the sanity of my answers. In fact, I can't believe I actually made it home.
Reply With Quote
  #6 (permalink)  
Old 05-21-04, 09:00
jortiz jortiz is offline
Registered User
 
Join Date: Jun 2003
Posts: 294
Don't worry !

Thanks !
Reply With Quote
  #7 (permalink)  
Old 05-21-04, 10:43
jortiz jortiz is offline
Registered User
 
Join Date: Jun 2003
Posts: 294
I gotta solve the problem, It was with the UTL file directory !!!

Now It's working correctly !
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On