In the spirit of documenting all possible and imaginary errors, let’s address today a classic one: File transport does not have read/write privileges for receive location “DRIVE:\FOLDER NAME”.
This happens more than you may think, and today after finish creating a backup port for testing a new process while I was trying to Enable the File receive location I got the following errors:
File transport does not have read/write privileges for receive location “C:\BizTalkPorts\IN_POLLING\”.
Followed by other similar warning messages:
The Messaging Engine failed to add a receive location “POLLING_FILE” with URL “C:\BizTalkPorts\IN_POLLING\*.xml” to the adapter “FILE”. Reason: “File transport does not have read/write privileges for receive location “C:\BizTalkPorts\IN_POLLING\”. “.
The receive location “POLLING_FILE” with URL “C:\BizTalkPorts\IN_POLLING\*.xml” is shutting down. Details:”The Messaging Engine failed while notifying an adapter of its configuration. “.
Cause
As I said before this is a classic error, the reason is quite obvious and the error message clearly identifies the origin of the problem.
The problem is that the user that is running the BizTalk Server host instance(s) don’t have read/write privileges in that specific folder.
Solution
To solve this problem, you need to give read\write privileges for the user that is running BizTalk Server Host Instance, in my case “BTSHostSrvc”, into that specific folder. For that you need to:
- From the file system, access to the folder in question and then right-click on the folder and select the “Properties” option;
- If attribute “Read-only (only applies to files in folder)” is enabled (selected), disable it (unselect);
- Then go to the “Security” tab and then click “Edit…” button and then “Add…” button
- Search for the user that is running the BizTalk Server Host Instance and then click “OK”;
- For that specific user give read and write access;
- In my case, because this was/is a “BizTalk process” folder, I gave “Full control”
- At the click “OK” and “OK” once again.
Once you give access to the user this classic problem is going away… until the next time!
Just thought I’d add that Read/Write actually isn’t enough for a Receive Location. Since the File Adapter removes the file after reading, it also needs “delete” permissions (found under “special permissions”). “Modify” is not enough either… only “full” or manually adding “delete” permissions will do. Don’t know how many times this has bitten me… 🙂
Thanks for a great resource Sandro, please keep it up!
Thanks Martin! You comment solved it for me. My admin was just giving read and write, but no special permissions, and that was not enough 🙂 Thanks!