I have an SSIS task that has run successfully for years. They just moved the dtsx to a new server and now it is failing.
Issue:
The task has a data flow that writes a raw file destination. It then has a subsequent data flow that reads the raw file destination.
The path and name of the raw file is passed to each of the data flows via the same variable.
The raw file resides in a folder on the server in the same path that the dtsx resides in.
The task fails with the "
The File name property is not valid. The file name is a device or contains invalid characters" error when trying to access the raw file.
What we have done to troubleshoot:
1. I ran the task successfully on my local machine so it is definitely a server issue.
2. The first thing we were seeing was that it failed trying to write to the raw file. The task is set to "Create Always".
3. We saw that the dba's copied over the entire directory structure from the old server which included a previously created raw file, so we deleted the raw file.
4. We reran the task and it successfully wrote a new raw file but then failed on reading the raw file with the same error as above.
5. We reran the task AGAIN and this time it failed trying to write the raw file throwing the same error as above.
6. The dba looked at the directory and the account that performs the task has full control.
7. The dba looked at the raw file that was created and verified that the account that performs the task has full control of the file and that it is the owner of the file.
Summary:
The task fails when trying to access the file EXCEPT when the file does not exist. In that situation it can write the file but subsequently fails in accessing it again.