<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Multiple Bots Writing To Single Text File in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Multiple-Bots-Writing-To-Single-Text-File/m-p/125594#M54611</link>
    <description>&lt;P&gt;Yes, the standard way to do this is to use environment locks so that they wait for each other.&lt;/P&gt;&lt;P&gt;If they tried to concurrently access, it would look like this:&lt;BR /&gt;1 - Session A acquires the lock&lt;BR /&gt;2 - Session B waits for the lock&lt;BR /&gt;3 - Session A writes to the file&lt;BR /&gt;4 - Session A releases the lock&lt;BR /&gt;5 - Session B acquires the lock&lt;BR /&gt;6 - Session B writes to the file&lt;BR /&gt;7 - Session B releases the lock&lt;BR /&gt;&lt;BR /&gt;Check for the internal business object "Environment Locking". You'll use the actions Acquire Lock and Release Lock. You don't usually need Query Lock.&lt;/P&gt;&lt;P&gt;You'll want to play around with it to understand how it works and test different scenarios. There's also probably training on the Blue Prism University, and there are YouTube videos about it.&lt;/P&gt;&lt;P&gt;Also note that you can view current Environment Locks in the BP UI in System tab &amp;gt; Workflow &amp;gt; Environment Locks. So, you could do Acquire Lock as a quick test and then go view it in that screen.&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2026 13:31:04 GMT</pubDate>
    <dc:creator>david.l.morris</dc:creator>
    <dc:date>2026-05-27T13:31:04Z</dc:date>
    <item>
      <title>Multiple Bots Writing To Single Text File</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Multiple-Bots-Writing-To-Single-Text-File/m-p/125590#M54608</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to Append To Text File to write exception cases by multiple bots to a single text file?&amp;nbsp; This text file is on a shared drive location for the multiple bots to access.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am getting an append error when the other bot tries to write to this file (the bot that has created the file on the shared drive is able to write to the text file without issues).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a lock etc, but still getting the append error.&lt;/P&gt;&lt;P&gt;This text file will be used as an input file for manual completion.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;P&gt;Using v6.10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2026 10:09:05 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Multiple-Bots-Writing-To-Single-Text-File/m-p/125590#M54608</guid>
      <dc:creator>PJNI</dc:creator>
      <dc:date>2026-05-27T10:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Bots Writing To Single Text File</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Multiple-Bots-Writing-To-Single-Text-File/m-p/125594#M54611</link>
      <description>&lt;P&gt;Yes, the standard way to do this is to use environment locks so that they wait for each other.&lt;/P&gt;&lt;P&gt;If they tried to concurrently access, it would look like this:&lt;BR /&gt;1 - Session A acquires the lock&lt;BR /&gt;2 - Session B waits for the lock&lt;BR /&gt;3 - Session A writes to the file&lt;BR /&gt;4 - Session A releases the lock&lt;BR /&gt;5 - Session B acquires the lock&lt;BR /&gt;6 - Session B writes to the file&lt;BR /&gt;7 - Session B releases the lock&lt;BR /&gt;&lt;BR /&gt;Check for the internal business object "Environment Locking". You'll use the actions Acquire Lock and Release Lock. You don't usually need Query Lock.&lt;/P&gt;&lt;P&gt;You'll want to play around with it to understand how it works and test different scenarios. There's also probably training on the Blue Prism University, and there are YouTube videos about it.&lt;/P&gt;&lt;P&gt;Also note that you can view current Environment Locks in the BP UI in System tab &amp;gt; Workflow &amp;gt; Environment Locks. So, you could do Acquire Lock as a quick test and then go view it in that screen.&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2026 13:31:04 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Multiple-Bots-Writing-To-Single-Text-File/m-p/125594#M54611</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2026-05-27T13:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Bots Writing To Single Text File</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Multiple-Bots-Writing-To-Single-Text-File/m-p/125595#M54612</link>
      <description>&lt;P&gt;you can save text file with bot name like bot1.txt, bot2.txt, and at last you can add environment lock so that you can collate all the individual text files into one (probably different process or add logic to check nothing is in pending or lock item , if any then loop it until all cases cleared , you can add this logic after acquiring lock).&amp;nbsp;&lt;BR /&gt;this will make sure everything is collected properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2026 17:13:11 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Multiple-Bots-Writing-To-Single-Text-File/m-p/125595#M54612</guid>
      <dc:creator>naveed_raza</dc:creator>
      <dc:date>2026-05-27T17:13:11Z</dc:date>
    </item>
  </channel>
</rss>

