Eddie Monster
12th July 2011, 21:17
Just a quick question... my counterpart and I have been going bug-eyed with this and a fresh set of eyes may come up with a solution.

Writing some custom code to build a text file and then bring that text file in as text to the purchase order footer text (tdsls040.txtb).

Windows 2008 Server version of Baan IVc4.

When my counterpart runs the script it works fine for him, however when I run it I get a return code of -1 for the text.write() function. The SSA ERP LN 6.1 Programmers Guide does not provide any insight as to what could be causing the error. As best as I can tell, my user and his user have the same text permissions within Baan and our Windows AD usernames have the same permissions in the database and file permissions in the system folders where the text files are created and maniuplated prior to the text.write function.

Does anybody have any suggestions as to what could be causing the problem? Any help would be greatly appreciated!

mark_h
12th July 2011, 22:46
Test permissions - make sure they can jump out to the directory and write(or save) a file in the directory.

mark_h
12th July 2011, 22:54
Oops my bad. I meant to say check to see if they can read the file since this is text.write. I would think if you can write to file in the directory you should be able to read, but mistakes happen. I was also going to say double check and make sure the text group permissions are the same. When our users change jobs we sometimes forget to update text permissions.

JaapJD
13th July 2011, 09:24
Check also if your default text groups are the same if you have no default text group defined for tdsls040.txtb.

Eddie Monster
13th July 2011, 16:40
Ended up that I did not have a default text group set up and my counterpart did. We tested with some other users and everything works now. Thank you all for your assistance and suggestions!