BizTalk FILE Adapter Error: File transport does not have read/write privileges for receive location

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\”.

BizTalk Server: File transport does not have read/write privileges for receive location - Error Descriptions

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.

BizTalk Server: File transport does not have read/write privileges for receive location - User that is running Services

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”
BizTalk Server: File transport does not have read/write privileges for receive location - Give user Access
  • 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!

#1 all-in-one platform for Microsoft BizTalk Server management and monitoring
Author: Sandro Pereira

Sandro Pereira lives in Portugal and works as a consultant at DevScope. In the past years, he has been working on implementing Integration scenarios both on-premises and cloud for various clients, each with different scenarios from a technical point of view, size, and criticality, using Microsoft Azure, Microsoft BizTalk Server and different technologies like AS2, EDI, RosettaNet, SAP, TIBCO etc. He is a regular blogger, international speaker, and technical reviewer of several BizTalk books all focused on Integration. He is also the author of the book “BizTalk Mapping Patterns & Best Practices”. He has been awarded MVP since 2011 for his contributions to the integration community.

2 thoughts on “BizTalk FILE Adapter Error: File transport does not have read/write privileges for receive location”

  1. 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!

    1. 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!

Leave a Reply

Your email address will not be published. Required fields are marked *

turbo360

Back to Top