<?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: Remove Null/Empty Columns From a Collection in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Remove-Null-Empty-Columns-From-a-Collection/m-p/76498#M28982</link>
    <description>Thanks. It worked for me for Text Type Fields!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 20 Jul 2022 14:06:00 GMT</pubDate>
    <dc:creator>vinodchinthakin</dc:creator>
    <dc:date>2022-07-20T14:06:00Z</dc:date>
    <item>
      <title>Remove Null/Empty Columns From a Collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-Null-Empty-Columns-From-a-Collection/m-p/76492#M28976</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Do we have any action or code stage to Remove Null/Empty Columns from a Collection.&lt;BR /&gt;&lt;BR /&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1843"&gt;@devneetmohanty07&lt;/a&gt;. Any insights here.&lt;BR /&gt;​​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;​</description>
      <pubDate>Thu, 14 Jul 2022 06:26:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-Null-Empty-Columns-From-a-Collection/m-p/76492#M28976</guid>
      <dc:creator>vinodchinthakin</dc:creator>
      <dc:date>2022-07-14T06:26:00Z</dc:date>
    </item>
    <item>
      <title>RE: Remove Null/Empty Columns From a Collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-Null-Empty-Columns-From-a-Collection/m-p/76493#M28977</link>
      <description>Hi Vinod,&lt;BR /&gt;&lt;BR /&gt;Try VBO:Utility-Collection manipulation, action-remove empty rows, that should work.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Joshna Dammala&lt;BR /&gt;RPA Developer&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Jul 2022 10:08:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-Null-Empty-Columns-From-a-Collection/m-p/76493#M28977</guid>
      <dc:creator>Joshna_16</dc:creator>
      <dc:date>2022-07-14T10:08:00Z</dc:date>
    </item>
    <item>
      <title>RE: Remove Null/Empty Columns From a Collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-Null-Empty-Columns-From-a-Collection/m-p/76494#M28978</link>
      <description>Hi Joshna,&lt;BR /&gt;The action you have stated simply deletes Empty rows, but my requirement is to delete Empty Columns&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jul 2022 12:31:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-Null-Empty-Columns-From-a-Collection/m-p/76494#M28978</guid>
      <dc:creator>vinodchinthakin</dc:creator>
      <dc:date>2022-07-18T12:31:00Z</dc:date>
    </item>
    <item>
      <title>RE: Remove Null/Empty Columns From a Collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-Null-Empty-Columns-From-a-Collection/m-p/76495#M28979</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="cdcbb58e-c324-4e05-b305-48fb798e17be" data-tag-text="@vinod chinthakindi" href="https://community.blueprism.com/network/profile?UserKey=cdcbb58e-c324-4e05-b305-48fb798e17be" data-itemmentionkey="93e56563-e1dc-4cd8-8f96-8b5148a9bfed"&gt;@vinod chinthakindi&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;You can use "&lt;STRONG&gt;Delete field&lt;/STRONG&gt;" action of &lt;STRONG&gt;Utility-Manipulation&amp;nbsp;&lt;/STRONG&gt;and provide the column name to be deleted. It will ask for field name as input to be deleted. Please let me know if it doesn't work for you.&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Manpreet Kaur&lt;BR /&gt;Manager&lt;BR /&gt;Deloitte&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Jul 2022 15:20:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-Null-Empty-Columns-From-a-Collection/m-p/76495#M28979</guid>
      <dc:creator>ManpreetKaur1</dc:creator>
      <dc:date>2022-07-18T15:20:00Z</dc:date>
    </item>
    <item>
      <title>RE: Remove Null/Empty Columns From a Collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-Null-Empty-Columns-From-a-Collection/m-p/76496#M28980</link>
      <description>Thanks Manpreet for your reply. Delete field works only when we know the column name. In my case, the columns names are dynamic. We don't know which columns are Empty.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Jul 2022 04:58:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-Null-Empty-Columns-From-a-Collection/m-p/76496#M28980</guid>
      <dc:creator>vinodchinthakin</dc:creator>
      <dc:date>2022-07-19T04:58:00Z</dc:date>
    </item>
    <item>
      <title>RE: Remove Null/Empty Columns From a Collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-Null-Empty-Columns-From-a-Collection/m-p/76497#M28981</link>
      <description>There's no such functionality in Blue Prism Utility library. You have to create a custom functionality with a Code Stage, such as following:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-markup"&gt;&lt;CODE&gt;Dim bRemove as Boolean
Dim iColumn as integer
' Loop through each column
For iColumn = Collection_In.Columns.Count - 1 to 0 step -1
'For each Row as DataRow in Collection_In.Rows
	bRemove=True
	' Loop through every row for this column
	For each Row as DataRow in Collection_In.Rows
		if Trim(Row(iColumn).ToString()) &amp;amp; "" &amp;lt;&amp;gt; "" then
			bRemove=False
			exit for
		end if
	Next

	if bRemove=True then
		Collection_In.Columns.Remove(Collection_In.Columns(iColumn))
	end if
Next

Collection_Out = Collection_In.Copy​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It's VB code. For Code Properties settings: &lt;BR /&gt;* Inputs, a collection named "Collection In" &lt;BR /&gt;* Outputs, "Collection out".&lt;BR /&gt;&lt;BR /&gt;Please note, the code above works only for Collection having &lt;SPAN style="text-decoration: underline;"&gt;String fields only&lt;/SPAN&gt;. Please develop further if your Collection contains Flags, Numbers etc. It's basically a fork of "Remove Empty Rows" provided by Blue Prism.&lt;BR /&gt;&lt;BR /&gt;Note: no guarantees given.&lt;/P&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mikko Kamppila&lt;BR /&gt;IT analyst&lt;BR /&gt;Kela&lt;BR /&gt;Europe/Helsinki&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Jul 2022 07:20:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-Null-Empty-Columns-From-a-Collection/m-p/76497#M28981</guid>
      <dc:creator>MikkoKamppila</dc:creator>
      <dc:date>2022-07-19T07:20:00Z</dc:date>
    </item>
    <item>
      <title>RE: Remove Null/Empty Columns From a Collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-Null-Empty-Columns-From-a-Collection/m-p/76498#M28982</link>
      <description>Thanks. It worked for me for Text Type Fields!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;vinod chinthakindi&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Jul 2022 14:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-Null-Empty-Columns-From-a-Collection/m-p/76498#M28982</guid>
      <dc:creator>vinodchinthakin</dc:creator>
      <dc:date>2022-07-20T14:06:00Z</dc:date>
    </item>
    <item>
      <title>RE: Remove Null/Empty Columns From a Collection</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-Null-Empty-Columns-From-a-Collection/m-p/76499#M28983</link>
      <description>&lt;DIV class="comment-text  js-comment-text-and-form"&gt;
&lt;DIV class="comment-body js-comment-edit-hide"&gt;&lt;SPAN class="comment-copy"&gt;What are the names of the blank columns? From the text of the question as it currently stands, it's unclear what happens when you attempt to leverage the appropriate Action in the Utility - Collection Manipulation VBO.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="js-comment-actions comment-actions"&gt;
&lt;DIV class="comment-score js-comment-edit-hide"&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="comment-text  js-comment-text-and-form"&gt;
&lt;DIV class="comment-text  js-comment-text-and-form"&gt;
&lt;DIV class="comment-body js-comment-edit-hide"&gt;&lt;SPAN class="comment-copy"&gt;Thanks for the reply.. I am copying data Excel to collections with out headers data is having 5 columns but it is copying 8 columns. &lt;BR /&gt;&lt;BR /&gt;By using utility- collection Manipulation and the action delete column I can able to delete only one column, but I want to delete all empty columns in collections.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;STYLE type="text/css"&gt;&amp;lt;!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--&amp;gt;&lt;/STYLE&gt;
&lt;DIV class="comment-text  js-comment-text-and-form"&gt;
&lt;DIV class="comment-body js-comment-edit-hide"&gt;&lt;SPAN&gt;&lt;A href="https://www.onhold.on.ca/" target="_blank" rel="noopener"&gt;On-Hold Marketing&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="comment-date" dir="ltr"&gt;&lt;A class="comment-link" href="https://stackoverflow.com/questions/54774613/how-to-delete-empty-columns-in-collections#comment96357588_54774613" target="_blank" rel="noopener"&gt;&lt;SPAN title="2019-02-20 15:18:11Z, License: CC BY-SA 4.0" class="relativetime-clean"&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Jul 2022 15:10:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-Null-Empty-Columns-From-a-Collection/m-p/76499#M28983</guid>
      <dc:creator>LinkenZaney</dc:creator>
      <dc:date>2022-07-20T15:10:00Z</dc:date>
    </item>
  </channel>
</rss>

