locked
Cannot remove lock on file using custom receive pipeline RRS feed

  • Question

  • I am building a custom receive pipeline. I am performing operations on a file within the Decode class. I am getting an error the BT has lock on the file while I am attempting to perform a different action on this file. There is no valid operation where BT needs to maintain an ongoing lock on the file. How can I get BT to release the file?
    Thursday, January 5, 2012 7:48 PM

Answers

  • I am building a custom receive pipeline. I am performing operations on a file within the Decode class. I am getting an error the BT has lock on the file while I am attempting to perform a different action on this file. There is no valid operation where BT needs to maintain an ongoing lock on the file. How can I get BT to release the file?

    You use the file receive adapter to read messages from files and submit them to the server. The receive adapter reads the file and creates a BizTalk Message object, so that BizTalk Server can process the message. While reading from the file, the adapter locks the file to ensure that no modifications can be made to the file content.

    Reference: Documentation


    Please mark the post answered your question as answer, and mark other helpful posts as helpful, it'll help other users who are visiting your thread for the similar problem, Regards -Rohit Sharma (http://rohitbiztalk.blogspot.com)
    Friday, January 6, 2012 5:24 AM
    Moderator

All replies

  • Please  try it .

    http://sandroaspbiztalkblog.wordpress.com/2011/01/18/biztalk-pipeline-component-unable-to-copy-file-pipeline-componentsmypipelinecomponent-dll-to-bindebug-mypipelinecomponent-dll-the-process-cannot-access-the-f/

     

    hope it will solve your issue .

     

    Please mark the post answered your question as answer, and marks other helpful posts as helpful, it'll help other users who are visiting your thread for the similar problem, Regards -Chandra Kumar (http://www.chandrabiztalk.blogspot.com/)

     

     

     

    • Proposed as answer by Chandra Kumar Thursday, January 5, 2012 7:57 PM
    Thursday, January 5, 2012 7:57 PM
  • I had similar issue with pipeline which used a file storage.

    It happened when this pipeline was started sumultaneously in couple ports. So rethinking / redesigning the workflow could help.

    But maybe the problem is in locking file in development time? It is not clear from your question.

    In this case try to move locked file to another folder (you cannot delete it but can move it).

    OR rename file

    OR restart Visual Studio

    OR restart OS


    Leonid Ganeline [BizTalk MVP] BizTalk: Sample: Context Routing and Throttling with orchestration
    Friday, January 6, 2012 12:40 AM
    Moderator
  • OK, maybe you misunderstood the question. I am not refering to the actual Pipeline component DLL but the actual FILE that I am pulling in with my Pipeline component that is locking up.
    Friday, January 6, 2012 12:56 AM
  • I am building a custom receive pipeline. I am performing operations on a file within the Decode class. I am getting an error the BT has lock on the file while I am attempting to perform a different action on this file. There is no valid operation where BT needs to maintain an ongoing lock on the file. How can I get BT to release the file?

    You use the file receive adapter to read messages from files and submit them to the server. The receive adapter reads the file and creates a BizTalk Message object, so that BizTalk Server can process the message. While reading from the file, the adapter locks the file to ensure that no modifications can be made to the file content.

    Reference: Documentation


    Please mark the post answered your question as answer, and mark other helpful posts as helpful, it'll help other users who are visiting your thread for the similar problem, Regards -Rohit Sharma (http://rohitbiztalk.blogspot.com)
    Friday, January 6, 2012 5:24 AM
    Moderator