<?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: Replace All Blanks in a collection with a specific Value in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86747#M37560</link>
    <description>Hi Vinod,&lt;BR /&gt;&lt;BR /&gt;I tested the same on a collection having both a Text and Number column as well as with a collection having only Number column or Text column. In all these cases it is working. Please find the below screenshot for your reference:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Inputs:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11830.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12001i1509D8BA9F51F79D/image-size/large?v=v2&amp;amp;px=999" role="button" title="11830.png" alt="11830.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11831.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12005i5D2D5110982EB26F/image-size/large?v=v2&amp;amp;px=999" role="button" title="11831.png" alt="11831.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Outputs:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11832.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12002i032F140066067487/image-size/large?v=v2&amp;amp;px=999" role="button" title="11832.png" alt="11832.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Code:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11833.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12000i51DB002B5E3DEF2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="11833.png" alt="11833.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;CODE&gt;try&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp;for each dr as datarow in blanks.rows&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; for each c as datacolumn in blanks.columns&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if isdbnull(dr(c.columnname)) Or CStr(dr(c.columnname)) Is String.Empty then&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dr(c.columnname) = Value&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end if&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; next&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; next&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; no_blanks = blanks&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;catch e as exception&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;end try&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Parameters:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11834.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11999i6FB02DFF730F6B9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="11834.png" alt="11834.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11835.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12004iB7B1391232571F33/image-size/large?v=v2&amp;amp;px=999" role="button" title="11835.png" alt="11835.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;Cross check once from your end if you are using the same code and parameters along with the type of inputs.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For the second requirement that you have asked, there are few things to keep in mind before I proceed with the solution. There is a concept of default values in VB .NET and C# when you specifically talk about Data Columns which is like if you are generating a table with a column type as "Int32" or "Decimal" or any equivalent numeric class type, it won't allow the data to be filled with Null values and instead will auto populate the table with the default value that in this case would be "0". Similarly, for Boolean class types, the default value would be "False". This is being implemented so as to maintain the integrity of the data types and not have any run time error because of that. Logically as well if you see, blank or null is not an allowed&amp;nbsp; numeric type data so it is should not allowed and that is exactly what is being implemented by auto populating an equivalent of blank which is 0 in terms of number however, from a business point of view "0" always won't signify lack of a data but might be a number having a real life value.&lt;BR /&gt;&lt;BR /&gt;Hence my suggestion would be to treat all you data table columns as Text data type only and use this action in order to get a proper result, otherwise you will find the default values getting auto populated. In the above use case, this would not have been an issue since we were replacing all the blank values but here as soon as you replace some selected fields (blank fields) in a particular column, that moment the other columns would get auto populated with default values which may not be something you would want.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For the second solution add an additional input parameter to the above use case called "&lt;STRONG&gt;Field Name&lt;/STRONG&gt;" and modify the code to:&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;try&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp;for each dr as datarow in blanks.rows&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if CStr(dr(Field_Name)) Is String.Empty then&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dr(Field_Name) = Value&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end if&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; next&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;no_blanks = blanks&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;catch e as exception&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;end try&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;Try this and let me know if it solves your purpose.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you and if it resolves you query please mark it as the best answer so that others having the same problem can track the answer easily&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant&lt;BR /&gt;Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Tue, 18 Jan 2022 09:03:00 GMT</pubDate>
    <dc:creator>devneetmohanty07</dc:creator>
    <dc:date>2022-01-18T09:03:00Z</dc:date>
    <item>
      <title>Replace All Blanks in a collection with a specific Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86738#M37551</link>
      <description>Hi All.&lt;BR /&gt;I would like to replace all Blanks in a collection with a specific value. Do we have any solution for that.&lt;BR /&gt;I have tried the action fill blanks but it fill blanks with Zero's.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Jan 2022 06:31:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86738#M37551</guid>
      <dc:creator>vinodchinthakin</dc:creator>
      <dc:date>2022-01-17T06:31:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace All Blanks in a collection with a specific Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86739#M37552</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If it was a small collection, I would just loop through it and set the required value where needed. On larger collections this might be a more time consuming activity.&lt;BR /&gt;&lt;BR /&gt;Perhaps action 'Update Collection' on BP object 'Collection Manipulation - Extended' will provide a solution to a larger collection. Unfortunately, but all too common on BP objects [!], the documentation leaves to be desired (#BPFIXTHIS). But some experimentation will probably reveal its functionality. &lt;BR /&gt;&lt;BR /&gt;Check if any of the above works for you. If not, I'm sure a code stage will magically present itself later today. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Happy coding!&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Jan 2022 07:28:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86739#M37552</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2022-01-17T07:28:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace All Blanks in a collection with a specific Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86740#M37553</link>
      <description>Hi Vinod,&lt;BR /&gt;&lt;BR /&gt;If you have a small collection, then loop within that and update the column value. Otherwise if you want to achieve the same via code stage see the '&lt;STRONG&gt;Fill Blanks&lt;/STRONG&gt;' action in the Collection Manipulation VBO where you will find the section of code written as:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11822.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11994iE9BD19D4230E6C32/image-size/large?v=v2&amp;amp;px=999" role="button" title="11822.png" alt="11822.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Try extending the action by duplicating it and you can pass a input parameter called as Value of type text and modify the highlighted section as:&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;if isdbnull(dr(c.columnname)) Or CStr(dr(c.columnname)) Is String.Empty then&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;dr(c.columnname) = Value&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;This should be able to help you out. I have tested the same with both text and number type of column and it is working.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you and if it resolves you query please mark it as the best answer so that others having the same problem can track the answer easily&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant&lt;BR /&gt;Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Jan 2022 07:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86740#M37553</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2022-01-17T07:44:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace All Blanks in a collection with a specific Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86741#M37554</link>
      <description>Hi Devneet.&lt;BR /&gt;I have already tried the same as you mentioned by tweaking the code before posting my thread, but it didn't worked.&lt;BR /&gt;I have missed OR condition, after including OR condition in code it works perfect. Thanks for providing the code &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Jan 2022 12:44:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86741#M37554</guid>
      <dc:creator>vinodchinthakin</dc:creator>
      <dc:date>2022-01-17T12:44:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace All Blanks in a collection with a specific Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86742#M37555</link>
      <description>Hi Paul. I couldn't find any VBO naming &lt;SPAN&gt;Collection Manipulation - Extended on DX. Can you share the link of the VBO.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Jan 2022 12:51:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86742#M37555</guid>
      <dc:creator>vinodchinthakin</dc:creator>
      <dc:date>2022-01-17T12:51:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace All Blanks in a collection with a specific Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86743#M37556</link>
      <description>Hi V,&lt;BR /&gt;&lt;BR /&gt;The action indicated by me should be within your default installation of BP, not in DX.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;But, as I expected, an excellent solution in the form of a Code stage was provided at short notice.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Happy coding!&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Jan 2022 13:23:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86743#M37556</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2022-01-17T13:23:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace All Blanks in a collection with a specific Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86744#M37557</link>
      <description>Hi Paul, Action mentioned by you is not available in my VBO. Can you share the VBO or release file as an attachment. I would like to see if my VBO has any missing actions&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Jan 2022 13:37:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86744#M37557</guid>
      <dc:creator>vinodchinthakin</dc:creator>
      <dc:date>2022-01-17T13:37:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace All Blanks in a collection with a specific Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86745#M37558</link>
      <description>Sure Vinod, it is always a pleasure to help you out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also, the IsDbNull() function strangely does not pick the null value for me as well hence, came up with that approach.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If your query got resolved, then do mark the answer as the "Best Answer" so that it can be tracked easily by everyone for future reference.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant&lt;BR /&gt;Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Jan 2022 14:41:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86745#M37558</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2022-01-17T14:41:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace All Blanks in a collection with a specific Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86746#M37559</link>
      <description>Hi Devneet.&lt;BR /&gt;&lt;SPAN&gt;I have tested the same code multiple times with both text and number type of column and it is working only for text type of column. Can you verify once again from your end.&lt;BR /&gt;&lt;/SPAN&gt;one more thing, Can you provide the modified code where same logic can be applied only for a specified column instead of for a complete collection.&lt;BR /&gt;&lt;BR /&gt;Thanks...&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2022 06:09:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86746#M37559</guid>
      <dc:creator>vinodchinthakin</dc:creator>
      <dc:date>2022-01-18T06:09:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace All Blanks in a collection with a specific Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86747#M37560</link>
      <description>Hi Vinod,&lt;BR /&gt;&lt;BR /&gt;I tested the same on a collection having both a Text and Number column as well as with a collection having only Number column or Text column. In all these cases it is working. Please find the below screenshot for your reference:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Inputs:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11830.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12001i1509D8BA9F51F79D/image-size/large?v=v2&amp;amp;px=999" role="button" title="11830.png" alt="11830.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11831.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12005i5D2D5110982EB26F/image-size/large?v=v2&amp;amp;px=999" role="button" title="11831.png" alt="11831.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Outputs:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11832.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12002i032F140066067487/image-size/large?v=v2&amp;amp;px=999" role="button" title="11832.png" alt="11832.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Code:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11833.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12000i51DB002B5E3DEF2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="11833.png" alt="11833.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;CODE&gt;try&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp;for each dr as datarow in blanks.rows&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; for each c as datacolumn in blanks.columns&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if isdbnull(dr(c.columnname)) Or CStr(dr(c.columnname)) Is String.Empty then&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dr(c.columnname) = Value&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end if&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; next&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; next&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; no_blanks = blanks&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;catch e as exception&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;end try&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Parameters:&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11834.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/11999i6FB02DFF730F6B9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="11834.png" alt="11834.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11835.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12004iB7B1391232571F33/image-size/large?v=v2&amp;amp;px=999" role="button" title="11835.png" alt="11835.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;Cross check once from your end if you are using the same code and parameters along with the type of inputs.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For the second requirement that you have asked, there are few things to keep in mind before I proceed with the solution. There is a concept of default values in VB .NET and C# when you specifically talk about Data Columns which is like if you are generating a table with a column type as "Int32" or "Decimal" or any equivalent numeric class type, it won't allow the data to be filled with Null values and instead will auto populate the table with the default value that in this case would be "0". Similarly, for Boolean class types, the default value would be "False". This is being implemented so as to maintain the integrity of the data types and not have any run time error because of that. Logically as well if you see, blank or null is not an allowed&amp;nbsp; numeric type data so it is should not allowed and that is exactly what is being implemented by auto populating an equivalent of blank which is 0 in terms of number however, from a business point of view "0" always won't signify lack of a data but might be a number having a real life value.&lt;BR /&gt;&lt;BR /&gt;Hence my suggestion would be to treat all you data table columns as Text data type only and use this action in order to get a proper result, otherwise you will find the default values getting auto populated. In the above use case, this would not have been an issue since we were replacing all the blank values but here as soon as you replace some selected fields (blank fields) in a particular column, that moment the other columns would get auto populated with default values which may not be something you would want.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For the second solution add an additional input parameter to the above use case called "&lt;STRONG&gt;Field Name&lt;/STRONG&gt;" and modify the code to:&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;try&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp;for each dr as datarow in blanks.rows&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if CStr(dr(Field_Name)) Is String.Empty then&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dr(Field_Name) = Value&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; end if&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; next&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;no_blanks = blanks&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;catch e as exception&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;end try&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;Try this and let me know if it solves your purpose.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you and if it resolves you query please mark it as the best answer so that others having the same problem can track the answer easily&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant&lt;BR /&gt;Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2022 09:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86747#M37560</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2022-01-18T09:03:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace All Blanks in a collection with a specific Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86748#M37561</link>
      <description>Hi V,&lt;BR /&gt;&lt;BR /&gt;This is what we have:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11837.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12003i54188BC775E6B4C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="11837.png" alt="11837.png" /&gt;&lt;/span&gt;...in our BP supplied object list. &lt;BR /&gt;&lt;BR /&gt;The object '...- Extended' contains these:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11838.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/12007i53ADC10581BB6E02/image-size/large?v=v2&amp;amp;px=999" role="button" title="11838.png" alt="11838.png" /&gt;&lt;/span&gt;...actions.&lt;BR /&gt;&lt;BR /&gt;We're at 6.5.1 today. Dunno what version this object was added so I'm not gonna send it. If missing in your installation, check with BP.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Happy coding!&lt;BR /&gt;Paul&lt;BR /&gt;Sweden&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2022 11:10:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86748#M37561</guid>
      <dc:creator>PvD_SE</dc:creator>
      <dc:date>2022-01-18T11:10:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace All Blanks in a collection with a specific Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86749#M37562</link>
      <description>Hi Devneet,&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;In my case the code is able to replace blanks with Zero but not for other values for Number column type for both first and second requirement. In my case its &lt;SPAN&gt;&amp;nbsp;auto populating the table/column of number type with the value "0"(irrespective of input new_value).&amp;nbsp; &lt;/SPAN&gt;I still cant able to figure it out the issue. May be its an issue from my end. ( Note: I have restarted my Object and BP tool also)&lt;BR /&gt;&lt;BR /&gt;Thanks for detailed explanation on default values for nulls/blanks for different data types.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2022 11:28:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86749#M37562</guid>
      <dc:creator>vinodchinthakin</dc:creator>
      <dc:date>2022-01-18T11:28:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace All Blanks in a collection with a specific Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86750#M37563</link>
      <description>Hi Paul,&lt;BR /&gt;Thanks for sharing the screenshots.&lt;BR /&gt;From above both Screenshots, I am able to understand its a customized VBO, may be someone within your organization/team has developed those VBO's. Because I can see few actions from screenshot are not available in default VBO's of BP.&amp;nbsp; OR may be I am missing an updated version of collection VBO.!!!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2022 11:39:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86750#M37563</guid>
      <dc:creator>vinodchinthakin</dc:creator>
      <dc:date>2022-01-18T11:39:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace All Blanks in a collection with a specific Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86751#M37564</link>
      <description>Hi Vinod,&lt;BR /&gt;&lt;BR /&gt;Apologies as there has been a mistake at my end. The code that I have shared you actually never goes within the If condition I observed after few error and trials. I was not able to recognize probably because of the Try and Catch block which was already present in the original code which I should have removed prior to testing this.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So ideally what was happening is when the code ran, it will initialize all numeric cells with 0 since it's a default value which I explained you earlier. So here actually, we would need to compare the value against 0 instead of String.Empty if the data type of the column is a Number and rest can work for the Text type of columns. Hence, I have completely modified the code now which you can also give a test with other values apart from 0.&lt;BR /&gt;&lt;BR /&gt;Since I was testing with 0 so I also got confused and thought that the code was working even when there was an error which I could not see because of the Try and Catch block which was already implemented.&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;for each dr as datarow in blanks.rows&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp;for each c as datacolumn in blanks.columns&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; if c.DataType = GetType(Decimal) then&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if isdbnull(dr(c.columnname)) or dr(c.columnname) = 0 then&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dr(c.columnname) = Value&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end if&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else if c.DataType = GetType(Boolean) then&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if isdbnull(dr(c.columnname)) or dr(c.columnname) = False then&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dr(c.columnname) = Value&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end if&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if isdbnull(dr(c.columnname)) or CStr(dr(c.columnname)) = String.Empty then&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dr(c.columnname) = Value&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;end if&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; end if&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp; &amp;nbsp;next&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;next&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;no_blanks = blanks&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;Hope it helps you and if it resolves you query please mark it as the best answer so that others having the same problem can track the answer easily&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant&lt;BR /&gt;Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2022 12:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86751#M37564</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2022-01-18T12:15:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace All Blanks in a collection with a specific Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86752#M37565</link>
      <description>Hi Devneet&lt;BR /&gt;&lt;BR /&gt;No worries, Even I make a lot of mistakes in my coding. Now your code works perfect !.&lt;BR /&gt;I have modified your code as per my second requirement for specified column and it also works perfect!!! .&lt;BR /&gt;Here am sharing the code, might be useful to someone. Just I have replaced &lt;SPAN&gt;&lt;STRONG&gt;c.columnname&lt;/STRONG&gt; with &lt;STRONG&gt;Field_Name&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;for each dr as datarow in blanks.rows&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;for each c as datacolumn in blanks.columns&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;if c.DataType = GetType(Decimal) then&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;if isdbnull(dr(Field_Name)) or dr(Field_Name) = 0 then&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;dr(Field_Name) = New_Value&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;end if&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;else if c.DataType = GetType(Boolean) then&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;if isdbnull(dr(Field_Name)) or dr(Field_Name) = False then&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;dr(Field_Name) = New_Value&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;end if&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;else&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;if isdbnull(dr(Field_Name)) or CStr(dr(Field_Name)) = String.Empty then&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;dr(Field_Name) = New_Value&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;end if&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;end if&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;next&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;next&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;no_blanks = blanks&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;One thing I would like to know what If condition can be provided if the data type is date/time/date time.?&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2022 13:53:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86752#M37565</guid>
      <dc:creator>vinodchinthakin</dc:creator>
      <dc:date>2022-01-18T13:53:00Z</dc:date>
    </item>
    <item>
      <title>RE: Replace All Blanks in a collection with a specific Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86753#M37566</link>
      <description>Awesome Vinod, glad that it got solved and thanks to your for sharing the updated solution, just to add it's better to have all the columns as text only while using the second action as anyhow the default values will get populated for other columns if they are not of text type which might not be always an ideal scenario.&lt;BR /&gt;&lt;BR /&gt;Also, do remember to mark the answer as the "Best Answer" if it resolves the query so that others can track the answer easily.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;----------------------------------&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Devneet Mohanty&lt;BR /&gt;Intelligent Process Automation Consultant&lt;BR /&gt;Blue Prism 7x Certified Professional&lt;BR /&gt;Website: &lt;A href="https://devneet.github.io/" target="test_blank"&gt;https://devneet.github.io/&lt;/A&gt;&lt;BR /&gt;Email: devneetmohanty07@gmail.com&lt;BR /&gt;&lt;BR /&gt;----------------------------------&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Jan 2022 14:35:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Replace-All-Blanks-in-a-collection-with-a-specific-Value/m-p/86753#M37566</guid>
      <dc:creator>devneetmohanty07</dc:creator>
      <dc:date>2022-01-18T14:35:00Z</dc:date>
    </item>
  </channel>
</rss>

