Troubleshooting: File in Use error from the Director
Problem: The eFORMz Director gave a File in Use error.
Solution: The solution depends upon the cause of the error. This error can have the following causes:
- The most common way this error occurs is when eFORMz attempts to read the file before the program writing it finishes writing the file. A reliable solution is to create a file size selector, and require the file to have 500 bytes or more before it is processed. The steps to set up a file size selector are in https://minisoft.com/support/index.php/troubleshooting-input-files-of-zero-bytes-stops-director/.
- Two or more instances of the Director attempt to read the same file at the same time. This cause usually is rare. One way to prevent the error is to schedule the two instances so that they do not conflict.
- The ID that the Director runs under must have read permission on the input directory.