<?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 empty columns in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Remove-empty-columns/m-p/50778#M5952</link>
    <description>The way I usually do this is like this:&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;Utility - Collection Manipulation action 'Get Collection Fields' (let's call the output [Fields]&lt;/LI&gt;
&lt;LI&gt;Use Loop stages to loop over [Fields]&lt;/LI&gt;
&lt;LI&gt;Inside the Loop, use Utility - Collection Manipulation action 'Read Collection Field' with inputs of Row Index = 0, Field Name = [Fields.Field Name], and Collection = [Your Data Collection] -- this should output the value into a text data item&lt;/LI&gt;
&lt;LI&gt;Inside the Loop still, use a Decision stage to check if that text data item is empty: [Text Data Item]&amp;lt;&amp;gt;"" and if it is empty then use Utility - Collection Manipulation action 'Delete Column' using the [Fields.Field Name] as input for the name of the Column.&lt;/LI&gt;
&lt;/UL&gt;
It'd look something like this:&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="25859.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/25988i027076422F67D7A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="25859.png" alt="25859.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Edit: I should mention that there are better ways to do this, and I'm specifically suggesting in the case that you only have a few empty columns. If you have dozens of empty columns to remove, then it'd be better to do it another way.&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dave Morris&lt;BR /&gt;Cano Ai&lt;BR /&gt;Atlanta, GA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 10 Mar 2021 18:29:00 GMT</pubDate>
    <dc:creator>david.l.morris</dc:creator>
    <dc:date>2021-03-10T18:29:00Z</dc:date>
    <item>
      <title>Remove empty columns</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-empty-columns/m-p/50777#M5951</link>
      <description>&lt;P&gt;Hello guys,&lt;BR /&gt;i need some help with a collection. I need to perform the action "Set columns name from first row" but i've some empty field, and i need to delete this column before without the use of my own code stage. Maybe with Oledb that will be great but i haven't the DELETE function.&lt;BR /&gt;How can i do that?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vrat Himbo&lt;BR /&gt;------------------------------</description>
      <pubDate>Wed, 10 Mar 2021 14:10:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-empty-columns/m-p/50777#M5951</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2021-03-10T14:10:00Z</dc:date>
    </item>
    <item>
      <title>RE: Remove empty columns</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-empty-columns/m-p/50778#M5952</link>
      <description>The way I usually do this is like this:&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;Utility - Collection Manipulation action 'Get Collection Fields' (let's call the output [Fields]&lt;/LI&gt;
&lt;LI&gt;Use Loop stages to loop over [Fields]&lt;/LI&gt;
&lt;LI&gt;Inside the Loop, use Utility - Collection Manipulation action 'Read Collection Field' with inputs of Row Index = 0, Field Name = [Fields.Field Name], and Collection = [Your Data Collection] -- this should output the value into a text data item&lt;/LI&gt;
&lt;LI&gt;Inside the Loop still, use a Decision stage to check if that text data item is empty: [Text Data Item]&amp;lt;&amp;gt;"" and if it is empty then use Utility - Collection Manipulation action 'Delete Column' using the [Fields.Field Name] as input for the name of the Column.&lt;/LI&gt;
&lt;/UL&gt;
It'd look something like this:&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="25859.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/25988i027076422F67D7A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="25859.png" alt="25859.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Edit: I should mention that there are better ways to do this, and I'm specifically suggesting in the case that you only have a few empty columns. If you have dozens of empty columns to remove, then it'd be better to do it another way.&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dave Morris&lt;BR /&gt;Cano Ai&lt;BR /&gt;Atlanta, GA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 10 Mar 2021 18:29:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-empty-columns/m-p/50778#M5952</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2021-03-10T18:29:00Z</dc:date>
    </item>
    <item>
      <title>RE: Remove empty columns</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-empty-columns/m-p/50779#M5953</link>
      <description>Hi Dave,&lt;BR /&gt;first of all thanks for your support!&lt;BR /&gt;I think i wasn't clear to show my problem. I've an excel file where i need to remove the first 3 rows, because my column name are in the 4th row. And at this point, no problem. When i remove these rows and i've my column names at position 1, i've tried to use "Set first row as column name" but instead of some blank value i'm not able to do this operation.&amp;nbsp;&lt;BR /&gt;I want to say what's the best way to manage that situation even if with oledb, in order to avoid another loop (if it's possible).&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vrat Himbo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Mar 2021 09:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-empty-columns/m-p/50779#M5953</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2021-03-11T09:15:00Z</dc:date>
    </item>
    <item>
      <title>RE: Remove empty columns</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-empty-columns/m-p/50780#M5954</link>
      <description>Hi, Vrat,&lt;BR /&gt;&lt;BR /&gt;did you check the action in MS Excel VBO &lt;STRONG&gt;Get Worksheet as Collection Offset.&lt;/STRONG&gt; This gives you everything you need. You start with offset and specify that it contains header line.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Zdeněk Kabátek&lt;BR /&gt;Head of Professional Services&lt;BR /&gt;NEOOPS&lt;BR /&gt;&lt;A href="http://www.neoops.com/" target="test_blank"&gt;http://www.neoops.com/&lt;/A&gt;&lt;BR /&gt;Europe/Prague&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Mar 2021 16:05:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-empty-columns/m-p/50780#M5954</guid>
      <dc:creator>zdenek.kabatek</dc:creator>
      <dc:date>2021-03-11T16:05:00Z</dc:date>
    </item>
    <item>
      <title>RE: Remove empty columns</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-empty-columns/m-p/50781#M5955</link>
      <description>Hi &lt;A class="user-content-mention" data-sign="@" data-contactkey="f0d30523-0236-4fc5-94f7-499846aae05b" data-tag-text="@Zdeněk Kabátek" href="https://community.blueprism.com/network/profile?UserKey=f0d30523-0236-4fc5-94f7-499846aae05b" data-itemmentionkey="10db4e74-a13c-404d-a932-02ab1876c67a"&gt;@Zdeněk Kabátek&lt;/A&gt;,&lt;BR /&gt;thanks for the help.&lt;BR /&gt;Yes, now i'm closer to my objective, but i've 20 columns named Column6,Column11,Column22,Column23.&lt;BR /&gt;How can i remove that? Is a good practice to use a loop with "Remove column" action and in input put "Column"&amp;amp;"*"? Or there is another solution?&lt;BR /&gt;&lt;BR /&gt;Thanks​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vrat Himbo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Mar 2021 16:32:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-empty-columns/m-p/50781#M5955</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2021-03-11T16:32:00Z</dc:date>
    </item>
    <item>
      <title>RE: Remove empty columns</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-empty-columns/m-p/50782#M5956</link>
      <description>&lt;span class="lia-inline-image-display-wrapper" image-alt="25863.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/25996i540851A37CE45344/image-size/large?v=v2&amp;amp;px=999" role="button" title="25863.png" alt="25863.png" /&gt;&lt;/span&gt;This is the solution provided, there is a best approach to do that? I loop through the column collection to remove.&lt;BR /&gt;Now i need to remove some rows at the end of the collection starting from a particular string, how can i do that?&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vrat Himbo&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Mar 2021 10:50:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-empty-columns/m-p/50782#M5956</guid>
      <dc:creator>VratHimbo</dc:creator>
      <dc:date>2021-03-12T10:50:00Z</dc:date>
    </item>
    <item>
      <title>RE: Remove empty columns</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Remove-empty-columns/m-p/50783#M5957</link>
      <description>Hi, Vrat,&lt;BR /&gt;&lt;BR /&gt;well, there are several approaches how you can do that. To recommend the best one I would need to know more about the collection. One approach would be to use Filter Collection action which is part of Utility - Collection Manipulation. You build a filter the way that the particular column will not contain the strings which you need to remove. Then you get a new collection which contains all rows except the ones which you don't want.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Zdeněk Kabátek&lt;BR /&gt;Head of Professional Services&lt;BR /&gt;NEOOPS&lt;BR /&gt;&lt;A href="http://www.neoops.com/" target="test_blank"&gt;http://www.neoops.com/&lt;/A&gt;&lt;BR /&gt;Europe/Prague&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Mar 2021 11:04:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Remove-empty-columns/m-p/50783#M5957</guid>
      <dc:creator>zdenek.kabatek</dc:creator>
      <dc:date>2021-03-12T11:04:00Z</dc:date>
    </item>
  </channel>
</rss>

