EXISTS error code
Chris Rendall
crendall at teamind.com
Tue Oct 17 08:33:48 PDT 2017
Thanks to Bill I was able to determine the error I was getting was 'Invalid argument'. After looking at the file server I found that the 8.3 names were not enabled on the new volume I created on the file server. The directory name it couldn't find was called IFCDRA~1. I changed the filePro code to look for ifc\ drawings, since there is a space in the name, and that's when I started getting the -22 error.
After enabling 8.3 names on the file server and set the short name for the folder to IFCDRA~1 my original filePro code started working again.
-----Original Message-----
From: Bob Rasmussen [mailto:ras at anzio.com]
Sent: Tuesday, October 17, 2017 10:21 AM
To: Chris Rendall <crendall at teamind.com>
Cc: filePro (filepro-list at lists.celestial.com) <filepro-list at lists.celestial.com>
Subject: Re: EXISTS error code
On Tue, 17 Oct 2017, Chris Rendall via Filepro-list wrote:
> We are running filePro 5.0.14 on Linux. I have a directory path in Linux mapped to our Windows 2012 R2 file server. Recently I had to make a change on the file server, but the mapping to the shares from Linux to Windows still works. Our Linux server is still able to connect to the Windows share, but the 'exists' command in filePro that was been working for years has now stopped working and gives me an error -22 when checking if a file exists on the Windows share.
>
> I commented out the 'exists' command and the variable with the path to the PDF works when the WINSTART command is echoed to the screen in AnzioWin, so I know the mapping from our Linux server to the Windows file share is working.
>
> Does anyone know what a -22 error code means when running the 'exists' command?
I recently had a customer encounter a related problem, also with Windows Server 2012. This was with Print Wizard (on Windows) despooling from a Samba-mounted Linux directory. The despool process tests for the existence of certain files by periodically reading the directory; it also tests for the ability to open those files 'exclusive', to make sure they are finished being written to.
I'd be interested in knowing what file operation filePro uses for 'exists'. I'd also be interested in any resolution to this problem.
More information about the Filepro-list
mailing list