<?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: Find and Replace in Excel in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81405#M32981</link>
    <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/66"&gt;@PabloSarabia&lt;/a&gt;&lt;SPAN&gt;,&lt;BR /&gt;My excel is having 4 sheets but i have to do replacements in only one sheet.&lt;BR /&gt;1.can we use nested replace function to replace characters for all columns?&lt;BR /&gt;2. Can we give the sheet name as dynamic in query instead of hardcoding it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Salman Shaik&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Sun, 07 Aug 2022 08:43:00 GMT</pubDate>
    <dc:creator>salman_shaik</dc:creator>
    <dc:date>2022-08-07T08:43:00Z</dc:date>
    <item>
      <title>Find and Replace in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81397#M32973</link>
      <description>Hi,&lt;BR /&gt;I want to replace some special characters like *,"" with Null in excel before doing further validations. Can you pl suggest me if there is any action available to do in Blueprism?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Salman Shaik&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Aug 2022 19:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81397#M32973</guid>
      <dc:creator>salman_shaik</dc:creator>
      <dc:date>2022-08-05T19:06:00Z</dc:date>
    </item>
    <item>
      <title>RE: Find and Replace in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81398#M32974</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="cc3198eb-c3ec-4e75-a199-6fd33c706606" data-tag-text="@Salman Shaik" href="https://community.blueprism.com/network/profile?UserKey=cc3198eb-c3ec-4e75-a199-6fd33c706606" data-itemmentionkey="dd7edb4a-6a67-44e5-bcb9-e8cd9c3cc9b0"&gt;@Salman Shaik&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;I think, the best way for this is to use &lt;A href="https://digitalexchange.blueprism.com/dx/entry/3439/solution/data---oledb" target="_blank" rel="noopener"&gt;Data - OLEDB&lt;/A&gt; ​and replace your special characters by using UPDATE SQL statement.&lt;BR /&gt;&lt;BR /&gt;Something similar to this:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;UPDATE [Sheet1$]&lt;BR /&gt;SET valueField1 = REPLACE(valueField1,'*','')&lt;/PRE&gt;
&lt;BR /&gt;&lt;BR /&gt;This is faster than opening the full Excel and read it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps you! And if this solves the problem, remember mark as the best answer!&lt;BR /&gt;&lt;BR /&gt;See you in the Community, bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Solution Manager &amp;amp; Architect&lt;BR /&gt;Altamira Assets Management&lt;BR /&gt;Madrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Aug 2022 21:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81398#M32974</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-08-05T21:25:00Z</dc:date>
    </item>
    <item>
      <title>RE: Find and Replace in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81399#M32975</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="d8d598ac-98cd-430e-a343-5ff6a431bd5e" data-tag-text="@pablo" href="https://community.blueprism.com/network/profile?UserKey=d8d598ac-98cd-430e-a343-5ff6a431bd5e" data-itemmentionkey="c9fab5b7-f6f2-43a4-87f0-d705c79835b5"&gt;@pablo&lt;/A&gt; sarabia&lt;BR /&gt;&lt;BR /&gt;by using the above query ​ i am getting the below error. Pl suggest how to handle&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Salman Shaik&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 06 Aug 2022 06:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81399#M32975</guid>
      <dc:creator>salman_shaik</dc:creator>
      <dc:date>2022-08-06T06:23:00Z</dc:date>
    </item>
    <item>
      <title>RE: Find and Replace in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81400#M32976</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="cc3198eb-c3ec-4e75-a199-6fd33c706606" data-tag-text="@Salman Shaik" href="https://community.blueprism.com/network/profile?UserKey=cc3198eb-c3ec-4e75-a199-6fd33c706606" data-itemmentionkey="694fac93-f6c0-449e-860d-054be5312d42"&gt;@Salman Shaik&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You need to put the SQL sentence as a text, with (")&lt;BR /&gt;&lt;BR /&gt;I give you a full example step by step to achive this:&lt;BR /&gt;&lt;BR /&gt;1.- You need to add this VBO &lt;A href="https://digitalexchange.blueprism.com/dx/entry/3439/solution/data---oledb?_ga=2.211078869.1342714367.1659854738-1687242555.1598625428&amp;amp;_gl=1*vtn0mw*_ga*MTY4NzI0MjU1NS4xNTk4NjI1NDI4*_ga_MFBQ2KFZ1L*MTY1OTg1NDczNy40MDIuMS4xNjU5ODU3MDkyLjA." target="_blank" rel="noopener"&gt;Data - OLEDB&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;2.-&amp;nbsp; To use this you need to follow the next structure:&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23257.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23392iCEE009553C353ED3/image-size/large?v=v2&amp;amp;px=999" role="button" title="23257.png" alt="23257.png" /&gt;&lt;/span&gt;In the Set Connection action you need to put your connection string.&lt;BR /&gt;&lt;BR /&gt;Try to use something similar to this:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;"Provider=Microsoft.ACE.OLEDB.12.0;Data Source="&amp;amp;[ExcelFile]&amp;amp;";Extended Properties='Excel 12.0 Xml;HDR=YES';"&lt;/PRE&gt;
&lt;BR /&gt;Where the data item ExcelFile is where I have my Excel file.&lt;BR /&gt;&lt;BR /&gt;3.- If the Open action gives you the error "'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine", no worries, just install this: &lt;A href="https://www.microsoft.com/en-us/download/confirmation.aspx?id=13255" target="_blank" rel="noopener"&gt;https://www.microsoft.com/en-us/download/confirmation.aspx?id=13255.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;4.- In the "Execute" action you need to put the SQL Statement. For this example I have created&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23258.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23391i1358350CDB59BEE2/image-size/large?v=v2&amp;amp;px=999" role="button" title="23258.png" alt="23258.png" /&gt;&lt;/span&gt;And I will replace the * from the Field2 with a "YYYY". (When we define the connection string with HDR=YES, we &lt;SPAN&gt;indicate that the first row contains columnnames)&lt;/SPAN&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23259.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23394i805CF1CE69C825D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="23259.png" alt="23259.png" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;PRE&gt;"UPDATE [Hoja1$] SET Field2 = Replace(Field2, '*','YYYY')"&lt;/PRE&gt;
&lt;BR /&gt;After executing this step your excel will be updated.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23260.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23393i9605EF0C1335B109/image-size/large?v=v2&amp;amp;px=999" role="button" title="23260.png" alt="23260.png" /&gt;&lt;/span&gt;&lt;BR /&gt;5.- And finally, Close the connection by using the Close Action.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this is clearer and it solves the problem. If this helps you, remember mark as the best answer!&lt;BR /&gt;&lt;BR /&gt;See you in the Community, bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Solution Manager &amp;amp; Architect&lt;BR /&gt;Altamira Assets Management&lt;BR /&gt;Madrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 07 Aug 2022 07:53:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81400#M32976</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-08-07T07:53:00Z</dc:date>
    </item>
    <item>
      <title>RE: Find and Replace in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81401#M32977</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/66"&gt;@PabloSarabia&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;can you please share the single query to replace all the * in the particular sheet Hoja1​ instead of executing for each field seperately.&lt;BR /&gt;&lt;BR /&gt;so that it can be helpful…&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Salman Shaik&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 07 Aug 2022 08:12:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81401#M32977</guid>
      <dc:creator>salman_shaik</dc:creator>
      <dc:date>2022-08-07T08:12:00Z</dc:date>
    </item>
    <item>
      <title>RE: Find and Replace in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81402#M32978</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="cc3198eb-c3ec-4e75-a199-6fd33c706606" data-tag-text="@Salman Shaik" href="https://community.blueprism.com/network/profile?UserKey=cc3198eb-c3ec-4e75-a199-6fd33c706606" data-itemmentionkey="2a0399b0-3f26-4770-8977-90ae5fdf6ac3"&gt;@Salman Shaik&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Sure, but in SQL you need to specify each field separately &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;But you can put any fields that you need in a single SQL sentence&lt;BR /&gt;&lt;BR /&gt;For example, this is for my three fields:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;"UPDATE [Hoja1$] SET &lt;BR /&gt;Field1 = Replace(Field1, '*','')&lt;BR /&gt;, Field2 = Replace(Field2, '*','')&lt;BR /&gt;, Field3 = Replace(Field3, '*','')"&lt;/PRE&gt;
&lt;BR /&gt;Do you have a lot of fields in your sheet?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;See you in the Community, bye :)​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Solution Manager &amp;amp; Architect&lt;BR /&gt;Altamira Assets Management&lt;BR /&gt;Madrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 07 Aug 2022 08:16:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81402#M32978</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-08-07T08:16:00Z</dc:date>
    </item>
    <item>
      <title>RE: Find and Replace in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81403#M32979</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/66"&gt;@PabloSarabia&lt;/a&gt;&lt;SPAN&gt;,&lt;BR /&gt;i have more than 70 fields in my excel.&lt;BR /&gt;is there any wild card functionality in query?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Salman Shaik&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 07 Aug 2022 08:21:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81403#M32979</guid>
      <dc:creator>salman_shaik</dc:creator>
      <dc:date>2022-08-07T08:21:00Z</dc:date>
    </item>
    <item>
      <title>RE: Find and Replace in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81404#M32980</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="cc3198eb-c3ec-4e75-a199-6fd33c706606" data-tag-text="@Salman Shaik" href="https://community.blueprism.com/network/profile?UserKey=cc3198eb-c3ec-4e75-a199-6fd33c706606" data-itemmentionkey="f0bcc853-eff6-4ad4-9082-bad91bebc9d8"&gt;@Salman Shaik&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Unfortunately, that cannot be done. SQL only supports field-by-field &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;If your excel is not going to grow in fields, you can try building your SQL sentence with CONCAT in Excel. Easy and fast.&lt;BR /&gt;&lt;BR /&gt;But we can look for another way to do this. Your Excel only have one sheet? or want to do this in several sheets?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Solution Manager &amp;amp; Architect&lt;BR /&gt;Altamira Assets Management&lt;BR /&gt;Madrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 07 Aug 2022 08:36:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81404#M32980</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-08-07T08:36:00Z</dc:date>
    </item>
    <item>
      <title>RE: Find and Replace in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81405#M32981</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/66"&gt;@PabloSarabia&lt;/a&gt;&lt;SPAN&gt;,&lt;BR /&gt;My excel is having 4 sheets but i have to do replacements in only one sheet.&lt;BR /&gt;1.can we use nested replace function to replace characters for all columns?&lt;BR /&gt;2. Can we give the sheet name as dynamic in query instead of hardcoding it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Salman Shaik&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 07 Aug 2022 08:43:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81405#M32981</guid>
      <dc:creator>salman_shaik</dc:creator>
      <dc:date>2022-08-07T08:43:00Z</dc:date>
    </item>
    <item>
      <title>RE: Find and Replace in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81406#M32982</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="cc3198eb-c3ec-4e75-a199-6fd33c706606" data-tag-text="@Salman Shaik" href="https://community.blueprism.com/network/profile?UserKey=cc3198eb-c3ec-4e75-a199-6fd33c706606" data-itemmentionkey="802e691f-3414-4f8d-b746-2645c8d28113"&gt;@Salman Shaik&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I think i found a good solution for this. And with this solution you don't need to take care with the column numbers, or if in the future you want to add more.&lt;BR /&gt;&lt;BR /&gt;Here is the schema of the solution.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23307.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23443iBC1DA0303D173510/image-size/large?v=v2&amp;amp;px=999" role="button" title="23307.png" alt="23307.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;The changes are:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;1.- After opening the connection to your Excel, get as collection the first line in the sheet. Use "Get Collection" action with this SQL Statement&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;"SELECT TOP 1 * FROM [Hoja1$]"&lt;/PRE&gt;
2.- Then use the VBO "Utility - Collection Manipulation" and the action "Get Collection Fields" to get a collection with all the fields that you have in your sheet.&lt;BR /&gt;&lt;BR /&gt;3.- Create a loop through your Collection Fields. Inside the loop, put a Calculation Stage with this formula:&lt;BR /&gt;
&lt;PRE&gt;[SQL Statement Fields] &amp;amp; ", " &amp;amp; [Collection Fields.Field Name] &amp;amp; " = REPLACE(" &amp;amp; [Collection Fields.Field Name] &amp;amp; ",'*','')"&lt;/PRE&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="23308.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23445i4986AC3B238181FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="23308.png" alt="23308.png" /&gt;&lt;/span&gt;&lt;BR /&gt;4.- Finally, use the "Execute" Action with this SQL formula inside:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;"UPDATE [Hoja1$] SET " &amp;amp; Replace(","&amp;amp;[SQL Statement Fields];",,";"")&lt;/PRE&gt;
&lt;BR /&gt;I think this is a very good approach for your problem, cause if you add one more field, this automatically replace the character&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps you!&lt;BR /&gt;&lt;BR /&gt;See you in the Community, bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Solution Manager &amp;amp; Architect&lt;BR /&gt;Altamira Assets Management&lt;BR /&gt;Madrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 07 Aug 2022 08:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81406#M32982</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-08-07T08:57:00Z</dc:date>
    </item>
    <item>
      <title>RE: Find and Replace in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81407#M32983</link>
      <description>I feel the Execute Query action should be inside the loop &amp;nbsp;to replace the characters field by field.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Salman Shaik&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 07 Aug 2022 09:17:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81407#M32983</guid>
      <dc:creator>salman_shaik</dc:creator>
      <dc:date>2022-08-07T09:17:00Z</dc:date>
    </item>
    <item>
      <title>RE: Find and Replace in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81408#M32984</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="cc3198eb-c3ec-4e75-a199-6fd33c706606" data-tag-text="@Salman Shaik" href="https://community.blueprism.com/network/profile?UserKey=cc3198eb-c3ec-4e75-a199-6fd33c706606" data-itemmentionkey="cce3b889-f473-41e9-b51e-e8133c95f372"&gt;@Salman Shaik&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Yeah! It's another posibility for this.&lt;BR /&gt;&lt;BR /&gt;But I think that is slow to make +70 updates instance only 1. If is more clear for you, yes, you can put the Execute inside.&lt;BR /&gt;&lt;BR /&gt;Here is the statement&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;​"UPDATE [Sheet1$] SET " &amp;amp; [Collection Fields.Field Name] &amp;amp; " = REPLACE(" &amp;amp; [Collection Fields.Field Name] &amp;amp; ",'*','')"&lt;/PRE&gt;
&lt;BR /&gt;Does this solve your problem completely?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;See you in the Community, bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Solution Manager &amp;amp; Architect&lt;BR /&gt;Altamira Assets Management&lt;BR /&gt;Madrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 07 Aug 2022 09:26:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81408#M32984</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-08-07T09:26:00Z</dc:date>
    </item>
    <item>
      <title>RE: Find and Replace in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81409#M32985</link>
      <description>Hi &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/66"&gt;@PabloSarabia&lt;/a&gt;&lt;SPAN&gt;,&lt;BR /&gt;Is your previous logic(Placing execute outside the loop) also does the same replacement * with null with much speed than the logic suggested by me?&lt;BR /&gt;because i am not able to understand your precious logic thats why i am asking you several times.&lt;BR /&gt;&lt;BR /&gt;can you pl elaborate more on your previous logic in calculation stage, execute stage&lt;BR /&gt;pl dont mind….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Salman Shaik&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 07 Aug 2022 09:37:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81409#M32985</guid>
      <dc:creator>salman_shaik</dc:creator>
      <dc:date>2022-08-07T09:37:00Z</dc:date>
    </item>
    <item>
      <title>RE: Find and Replace in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81410#M32986</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="cc3198eb-c3ec-4e75-a199-6fd33c706606" data-tag-text="@Salman Shaik" href="https://community.blueprism.com/network/profile?UserKey=cc3198eb-c3ec-4e75-a199-6fd33c706606" data-itemmentionkey="45233398-c92e-4853-a6fa-49499807d04b"&gt;@Salman Shaik&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Both solutions make the same correctly. &lt;BR /&gt;&lt;BR /&gt;The only different ​between these two solutions is the time that its takes to complete.&lt;BR /&gt;&lt;BR /&gt;As I said in my previos post, is not the same to execute one update with all the fields than execute 70 updates with only one field. Of course, in both solutions you replace the *, but the second one takes several minutes to complete.&lt;BR /&gt;&lt;BR /&gt;To ilustrate this, I make bigger my example Excel with 80 fields and 70.000 lines.&lt;BR /&gt;&lt;BR /&gt;I duplicate my example to make as you suggest, the update inside the loop, and I take the time with two variables and the function Now()&lt;BR /&gt;&lt;BR /&gt;Running the first one, one update outside the loop its take 30 seconds to be completed:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23338.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23473i6656800724AE33BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="23338.png" alt="23338.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Then I run your suggestion, the update inside, and it takes me more than 10 minutes.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23339.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23476i2AE22FC22F10A511/image-size/large?v=v2&amp;amp;px=999" role="button" title="23339.png" alt="23339.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Why is this happening? Because if you go field by field you waste a lot of time opening and closing the command execution.Of course, my solution is not perfect,&amp;nbsp;if you have too many fields in an update you may get the opposite effect and it may take longer.&lt;BR /&gt;&lt;BR /&gt;Now is more clear?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Solution Manager &amp;amp; Architect&lt;BR /&gt;Altamira Assets Management&lt;BR /&gt;Madrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 07 Aug 2022 10:14:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81410#M32986</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-08-07T10:14:00Z</dc:date>
    </item>
    <item>
      <title>RE: Find and Replace in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81411#M32987</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;/SPAN&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/66"&gt;@PabloSarabia&lt;/a&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have tried as per your suggestion but the validation is failed in execute query stage.&lt;BR /&gt;pl find the below screenshot for your reference&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Salman Shaik&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Aug 2022 05:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81411#M32987</guid>
      <dc:creator>salman_shaik</dc:creator>
      <dc:date>2022-08-08T05:56:00Z</dc:date>
    </item>
    <item>
      <title>RE: Find and Replace in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81412#M32988</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="cc3198eb-c3ec-4e75-a199-6fd33c706606" data-tag-text="@Salman Shaik" href="https://community.blueprism.com/network/profile?UserKey=cc3198eb-c3ec-4e75-a199-6fd33c706606" data-itemmentionkey="2b8b19cd-c53a-4228-b91b-ad1afa74606f"&gt;@Salman Shaik&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Humm... is strange...&lt;BR /&gt;&lt;BR /&gt;In your column names do you have this character ( ' )?&lt;BR /&gt;&lt;BR /&gt;If you can share in private the excel headers I will try to analyzed the problem directly&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;See you in the Community, bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Solution Manager &amp;amp; Architect&lt;BR /&gt;Altamira Assets Management&lt;BR /&gt;Madrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Aug 2022 08:36:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81412#M32988</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-08-08T08:36:00Z</dc:date>
    </item>
    <item>
      <title>RE: Find and Replace in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81413#M32989</link>
      <description>&lt;SPAN&gt;Hi&amp;nbsp;&lt;/SPAN&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/66"&gt;@PabloSarabia&lt;/a&gt;&lt;SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;I don't have any character(') in my column name. I just copy pasted the logic which you mentioned, while doing the validation its showing Missing " error. I feel the syntax of the query is wrong.&lt;BR /&gt;can you pl validate the query which you have posted from your end?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;PRE&gt;​&lt;/PRE&gt;
&lt;PRE&gt;"UPDATE [Hoja1$] SET " &amp;amp; Replace(","&amp;amp;[SQL Statement Fields];",,";"")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Salman Shaik&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Aug 2022 09:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81413#M32989</guid>
      <dc:creator>salman_shaik</dc:creator>
      <dc:date>2022-08-08T09:23:00Z</dc:date>
    </item>
    <item>
      <title>RE: Find and Replace in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81414#M32990</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="cc3198eb-c3ec-4e75-a199-6fd33c706606" data-tag-text="@Salman Shaik" href="https://community.blueprism.com/network/profile?UserKey=cc3198eb-c3ec-4e75-a199-6fd33c706606" data-itemmentionkey="58e13709-baf5-4b79-ba70-663ac41e26bf"&gt;@Salman Shaik&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I don't know if maybe the problem is if you ​have any space in the Column name, or any other special character.&lt;BR /&gt;&lt;BR /&gt;I try to reproduce this in my local but I didn't get the same error.&lt;BR /&gt;&lt;BR /&gt;Try replacing the calculation stage inside the loop for this:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;[SQL Statement Fields] &amp;amp; ", [" &amp;amp; [Collection Fields.Field Name] &amp;amp; "] = REPLACE([" &amp;amp; [Collection Fields.Field Name] &amp;amp; "],'*','')"&lt;/PRE&gt;
&lt;BR /&gt;The only different is that I encapsulate in square brackets the field name.&lt;BR /&gt;&lt;BR /&gt;If the error persists, give in private the SQL that is executing or the Excel header to debug it better.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps you!&lt;BR /&gt;&lt;BR /&gt;See you in the Community, bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Solution Manager &amp;amp; Architect&lt;BR /&gt;Altamira Assets Management&lt;BR /&gt;Madrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Aug 2022 19:14:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81414#M32990</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-08-08T19:14:00Z</dc:date>
    </item>
    <item>
      <title>RE: Find and Replace in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81415#M32991</link>
      <description>Hi,&lt;BR /&gt;i am having issue with Execute stage not in calc stage. Can you please share the screenshot of execute stage logic. Its missing some " in the query so during validation its throwing error.&lt;BR /&gt;&lt;BR /&gt;can you pl validate the execute stage and share me the logic.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Salman Shaik&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Aug 2022 19:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81415#M32991</guid>
      <dc:creator>salman_shaik</dc:creator>
      <dc:date>2022-08-08T19:27:00Z</dc:date>
    </item>
    <item>
      <title>RE: Find and Replace in Excel</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81416#M32992</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="cc3198eb-c3ec-4e75-a199-6fd33c706606" data-tag-text="@Salman Shaik" href="https://community.blueprism.com/network/profile?UserKey=cc3198eb-c3ec-4e75-a199-6fd33c706606" data-itemmentionkey="364c5597-c864-4a73-97ca-d203695bf1b9"&gt;@Salman Shaik&lt;/A&gt;&lt;BR /&gt;​&lt;BR /&gt;Understood, I think that your problem was internally when you execute the SQL. Something like SQL syntax error or similar.&lt;BR /&gt;&lt;BR /&gt;I don't understand why it's gives you this error&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23411.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23549iA7422F292E8B1447/image-size/large?v=v2&amp;amp;px=999" role="button" title="23411.png" alt="23411.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Maybe something go wrong when you copy and paste&lt;BR /&gt;&lt;BR /&gt;This is the text:&lt;BR /&gt;&lt;BR /&gt;"UPDATE [Hoja1$] SET " &amp;amp; Replace(","&amp;amp;[SQL Statement Fields];",,";"")&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I attach you the full process. Check it in your Blue Prism Solution&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps you!&lt;BR /&gt;&lt;BR /&gt;Bye &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Pablo Sarabia&lt;BR /&gt;Solution Manager &amp;amp; Architect&lt;BR /&gt;Altamira Assets Management&lt;BR /&gt;Madrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Aug 2022 22:10:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Find-and-Replace-in-Excel/m-p/81416#M32992</guid>
      <dc:creator>PabloSarabia</dc:creator>
      <dc:date>2022-08-08T22:10:00Z</dc:date>
    </item>
  </channel>
</rss>

