BizTalk FILE Receive port shutting down, Error: The process cannot access the file because it is being used by another process.

Ralf Lüders 0 Reputation points
2023-03-29T10:54:28.67+00:00

Hi
We are using BizTalk 2016 and having an integration reading files from a share and the receive port is sometimes shutting down with following error:

Event ID: 5644

The Messaging Engine failed to add a receive location "Rcv_Queue_FILE" with URL "\FILESERVER\SharedBizTalkIO\Prod\Queues\Invoices\*.xml" to the adapter "FILE".

Reason: "The FILE adapter can not access the folder \FILESERVER\SharedBizTalkIO\Prod\Queues\Invoices.
Verify this folder exists.
Error: The process cannot access the file because it is being used by another process.".

This failure appears sporadically. It can occur once a month or twice a week so it appears very differently.

I have looked in the eventlog on the FILESERVER but cant find any errors there. It seems that BizTalk server cant find the share.
Does any one have the clue what this might be?

Cheers
RL

Microsoft BizTalk Server
Microsoft BizTalk Server
A family of Microsoft server products that support large-scale implementation management of enterprise application integration processes.
364 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vahid Ghafarpour 21,235 Reputation points
    2023-04-28T04:56:07.6466667+00:00

    The error message suggests that the FILE adapter is having difficulty accessing the file share at \FILESERVER\SharedBizTalkIO\Prod\Queues\Invoices.

    One possible cause of this issue could be that the file share is being locked by another process or application when BizTalk is attempting to access it. This could happen if another application or process is accessing the same file share at the same time as BizTalk, causing a lock on the file share.

    To troubleshoot this issue, you could try the following steps:

    Check if there are any other applications or processes that could be accessing the file share at the same time as BizTalk. For example, if there are any scheduled backups or maintenance tasks that run at the same time as the BizTalk receive location.

    Check the permissions on the file share to ensure that the BizTalk service account has the necessary permissions to access the file share.

    Check the network connectivity between the BizTalk server and the file share to ensure that there are no network issues that could be causing intermittent connectivity problems.

    Enable debug logging on the FILE adapter to get more detailed information about the issue. You can enable debug logging by setting the following registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\BizTalk Adapter Pack\3.0\File\Debug Value: 1

    This will create a log file in the following directory: C:\Program Files (x86)\Microsoft BizTalk Adapter Pack 3.0\File\log

    The log file should provide more information about the error and could help pinpoint the root cause of the issue.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.