drcelus
9th June 2011, 09:41
Does anybody know the meaning of the server2client error codes ?
Values below 0 are errors, and it is returning a -2 value to me.
The file is getting created on the client but with 0 bytes size.

Regards.

george7a
9th June 2011, 11:54
Please show us your code. and check the following:

1) Does the server file exist? Double check the full name you give to server2client
2) Do you have permission on that server file?
3) Are all the directories (including subs) on the client created?
4) do you have permission to write on that client directory?

mark_h
9th June 2011, 14:56
George covered everything basically. On seq.open -2 means the file does not exist - not sure if it is related to client2server command. We also do not use spaces in the path of the directory - that used to cause us problems.

drcelus
9th June 2011, 15:41
Than you all for the tips.
I learned some other codes the hard way :
-6 = can't create file on destination or invalid filename
-3 = destination directory does not exist

NPRao
16th November 2016, 00:16
Operating system errors
--------------------------------------------------------------------------------
The operating system errors generate the error numbers 1-99.

Refer to - Operating system errors (http://www.baanboard.com/programmers_manual_baanerp_TopicList_1)

Looks at the numbered pages for the other error codes - http://www.baanboard.com/programmers_manual_baanerp or download the latest Programmer's manual from the Infor Support site -
KB 22924522 The programmers manual for ERP LN