cancel
Showing results for 
Search instead for 
Did you mean: 

What is return code -30953 fro importfile?

Former Member
0 Kudos

PB 12.5.1 (build 4015)

The return code from an importfile command is -30953.

li_return   = parent.dw_process.ImportFile (ls_pathname)

The file is a csv file that contains 34583 records.

Can somebody please confirm this is a maximum number of rows error.

Also, I assume my option is to split the file into two files to process.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Da;

  ImportFile only has 15 error codes. On a positive return number though the import lets you know how many rows were successfully imported. However, the return value is a long. Did you use an Integer by chance?

Regards ... Chris

Answers (1)

Answers (1)

former_member190719
Active Contributor
0 Kudos

I'm assuming li_return is an integer.  It looks like you have an overflow.  If you put a value larger than an integer into an integer, you get a negative value.  Change li_return to ll_return ( a long ).

Former Member
0 Kudos

thanks Bruce, yes I gathered that after I saw Chris's post and realized how dumb I was.

Former Member
0 Kudos

I sometimes have the same problem - but my solution is "More coffee!".