<?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 Selecting File with a File Name that Changes in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Selecting-File-with-a-File-Name-that-Changes/m-p/99802#M47274</link>
    <description>&lt;P&gt;10001_LIT_TEN_NO_SUPPLIED_RESULTS - 2020-12-15_SEQNO_14790.txt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I need to be able to search for the above file name from a list of file in a folder. The issue I am having is that parts of the file name change each day.&lt;/P&gt;
&lt;P&gt;The inly parts of the file name that do not change are the are as per below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;10001_LIT_TEN_NO_SUPPLIED_RESULTS –&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I ensure that my CSV pattern in "Get Files" caters for this, so that BP only picks up files that have these non-changing characters?&lt;/P&gt;
&lt;P&gt;I have managed to get these files into a collection using *.txt but this returns everthing which is 1000s of files.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ree&lt;/P&gt;</description>
    <pubDate>Fri, 05 Feb 2021 16:58:31 GMT</pubDate>
    <dc:creator>Rinesh</dc:creator>
    <dc:date>2021-02-05T16:58:31Z</dc:date>
    <item>
      <title>Selecting File with a File Name that Changes</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Selecting-File-with-a-File-Name-that-Changes/m-p/99802#M47274</link>
      <description>&lt;P&gt;10001_LIT_TEN_NO_SUPPLIED_RESULTS - 2020-12-15_SEQNO_14790.txt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I need to be able to search for the above file name from a list of file in a folder. The issue I am having is that parts of the file name change each day.&lt;/P&gt;
&lt;P&gt;The inly parts of the file name that do not change are the are as per below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;10001_LIT_TEN_NO_SUPPLIED_RESULTS –&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I ensure that my CSV pattern in "Get Files" caters for this, so that BP only picks up files that have these non-changing characters?&lt;/P&gt;
&lt;P&gt;I have managed to get these files into a collection using *.txt but this returns everthing which is 1000s of files.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ree&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 16:58:31 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Selecting-File-with-a-File-Name-that-Changes/m-p/99802#M47274</guid>
      <dc:creator>Rinesh</dc:creator>
      <dc:date>2021-02-05T16:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting File with a File Name that Changes</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Selecting-File-with-a-File-Name-that-Changes/m-p/99803#M47275</link>
      <description>&lt;P&gt;Hello&amp;nbsp; Ree,&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;I have ran a test on my system using the BPC file utility- all works fine.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Example source files in my test folder&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P class="media"&gt;10001_LIT_TEN_NO_SUPPLIED_RESULTS - 2020-12-14_SEQNO_14790.txt&lt;/P&gt;
&lt;P&gt;10001_LIT_TEN_NO_SUPPLIED_RESULTS - 2020-12-15_SEQNO_14790.txt&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Then i used '&lt;SPAN&gt;Utility - File Management' Action: "Get Files"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Input&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;Folder: (this is the folder where you store the files, ending in "\", as text value in quotations) e.g. "C:\TestFolder\files\"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pattern CSV: "10001_LIT_TEN_NO_SUPPLIED_RESULTS*.txt"&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Output&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;Success: Flag data item , I named it: Load_test&lt;/P&gt;
&lt;P&gt;Message: Text data item, I named it: Message_test&lt;/P&gt;
&lt;P&gt;Files: Collection data item, I named it: Files list&lt;/P&gt;
&lt;P&gt;(Use the little block to the right, to auto create the data items)&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Now, open the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;collection data item, and add fields&lt;/SPAN&gt;:&lt;/P&gt;
&lt;P&gt;Name (text), Path (text), Folder (text), Extension (text), Created (date), Last Accessed (date), Last Written (date), Read Only (flag), Bytes (number)&lt;/P&gt;
&lt;P class="media"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36326.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36335iE4E65F9208AE389A/image-size/large?v=v2&amp;amp;px=999" role="button" title="36326.png" alt="36326.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Run the stage - it will populate with the file names.&lt;/P&gt;
&lt;P class="media"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="36327.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/36336i01648C0F07A19EA1/image-size/large?v=v2&amp;amp;px=999" role="button" title="36327.png" alt="36327.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Have you checked your collection has all the required fields, and have you added the closing slash "\" in the 'Folder' input parameter in 'get files' action?&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;P&gt;BW&lt;BR /&gt;Marcin&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 16:59:35 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Selecting-File-with-a-File-Name-that-Changes/m-p/99803#M47275</guid>
      <dc:creator>MarcinDabrowski</dc:creator>
      <dc:date>2021-02-05T16:59:35Z</dc:date>
    </item>
  </channel>
</rss>

