<?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: How to use Field Info in Text to Columns Code stage in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/How-to-use-Field-Info-in-Text-to-Columns-Code-stage/m-p/75214#M27819</link>
    <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/24405"&gt;@SasikanthMachav&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;So you have a single column of data, correct? If so, change your array declaration to something like this:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-vbnet"&gt;&lt;CODE&gt;Dim arr1(,) As Integer = {{1, 4}}
​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 02 Mar 2022 20:58:00 GMT</pubDate>
    <dc:creator>ewilson</dc:creator>
    <dc:date>2022-03-02T20:58:00Z</dc:date>
    <item>
      <title>How to use Field Info in Text to Columns Code stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-use-Field-Info-in-Text-to-Columns-Code-stage/m-p/75213#M27818</link>
      <description>Hi Everyone,&lt;BR /&gt;&lt;BR /&gt;My issue : Field Info(Array)&lt;BR /&gt;I need to convert text or custom column to date column using text to columns code stage.&lt;BR /&gt;&lt;BR /&gt;I am unable to declare the array properly and use it because of which; it is throwing error.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Error : parameter incorrect(invalid_arg)&lt;BR /&gt;&lt;BR /&gt;I am Using the below Code :&lt;BR /&gt;&lt;BR /&gt;____________________________________________________________________________________&lt;BR /&gt;Dim wb, ws, sheet, excel, range As Object&lt;BR /&gt;Dim arr1 = New Object(0, 1) {{1, 4}}&lt;BR /&gt;&lt;BR /&gt;Try&lt;BR /&gt;&lt;BR /&gt;wb = GetWorkbook(Handle, Workbook)&lt;BR /&gt;ws = GetWorksheet(Handle, Workbook, Worksheet)&lt;BR /&gt;&lt;BR /&gt;wb.Activate()&amp;nbsp;&lt;BR /&gt;ws.Activate()&lt;BR /&gt;excel = ws.Application&lt;BR /&gt;sheet = excel.ActiveSheet&lt;BR /&gt;range = sheet.Range(Reference)&lt;BR /&gt;&lt;BR /&gt;excel.DisplayAlerts=false&lt;BR /&gt;&lt;BR /&gt;range.Select()&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;range.TextToColumns(Destination:=Range(DestinationCell), DataType:=1, _&lt;BR /&gt;&amp;nbsp;TextQualifier:=1,&amp;nbsp;ConsecutiveDelimiter:=False, Tab:=True, _&lt;BR /&gt;Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _&lt;BR /&gt;:=arr1, TrailingMinusNumbers:=True&lt;BR /&gt;&lt;BR /&gt;Success = True&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Catch e As Exception&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Success = False&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Message = e.Message&lt;BR /&gt;&lt;BR /&gt;Finally&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wb = Nothing&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ws = Nothing&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;excel = Nothing&lt;BR /&gt;&amp;nbsp;End Try&lt;BR /&gt;&lt;BR /&gt;__________________________________________________________________________________&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can anyone please help me fix it!!!!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sasikanth Machavarapu&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Mar 2022 15:32:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-use-Field-Info-in-Text-to-Columns-Code-stage/m-p/75213#M27818</guid>
      <dc:creator>SasikanthMachav</dc:creator>
      <dc:date>2022-03-02T15:32:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to use Field Info in Text to Columns Code stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-use-Field-Info-in-Text-to-Columns-Code-stage/m-p/75214#M27819</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/24405"&gt;@SasikanthMachav&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;So you have a single column of data, correct? If so, change your array declaration to something like this:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE class="language-vbnet"&gt;&lt;CODE&gt;Dim arr1(,) As Integer = {{1, 4}}
​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Mar 2022 20:58:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-use-Field-Info-in-Text-to-Columns-Code-stage/m-p/75214#M27819</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-03-02T20:58:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to use Field Info in Text to Columns Code stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-use-Field-Info-in-Text-to-Columns-Code-stage/m-p/75215#M27820</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I think Eric is correct, I built a similar action but I made teh declaration Dim arr1 = New Integer (3, 1) {{1, 1}, {2, 1}, {3, 1}, {4, 1}}&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michael ONeil&lt;BR /&gt;Technical Lead developer&lt;BR /&gt;NTTData&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Mar 2022 22:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-use-Field-Info-in-Text-to-Columns-Code-stage/m-p/75215#M27820</guid>
      <dc:creator>michaeloneil</dc:creator>
      <dc:date>2022-03-02T22:52:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to use Field Info in Text to Columns Code stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-use-Field-Info-in-Text-to-Columns-Code-stage/m-p/75216#M27821</link>
      <description>Hi Eric,&lt;BR /&gt;&lt;BR /&gt;I tried the way you suggested and declared the array, but seems its not working . Its throwing the same error :Parameter incorrect(INVALID_ARG)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can you think of anything else?????&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sasikanth Machavarapu&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Mar 2022 13:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-use-Field-Info-in-Text-to-Columns-Code-stage/m-p/75216#M27821</guid>
      <dc:creator>SasikanthMachav</dc:creator>
      <dc:date>2022-03-04T13:06:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to use Field Info in Text to Columns Code stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-use-Field-Info-in-Text-to-Columns-Code-stage/m-p/75217#M27822</link>
      <description>Hi Michael,&lt;BR /&gt;&lt;BR /&gt;Didn't get your array declaration actually.&lt;BR /&gt;&lt;BR /&gt;The array value that is needed is Array(1, 4), if you see the below macro recording of the manual &lt;BR /&gt;&lt;BR /&gt;operation.&lt;BR /&gt;&lt;BR /&gt;I am trying to put the below thing in BP editor , where the array declaration is going wrong or not sure what's going wrong, the code stage is throwing the &lt;BR /&gt;&lt;BR /&gt;error : Parameter incorrect(INVALID_ARG)&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="27914.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/28044i0F4642D48373133A/image-size/large?v=v2&amp;amp;px=999" role="button" title="27914.png" alt="27914.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Let me know if this is clear of my ask and could you help me on this&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Sasikanth Machavarapu&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Mar 2022 13:11:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-use-Field-Info-in-Text-to-Columns-Code-stage/m-p/75217#M27822</guid>
      <dc:creator>SasikanthMachav</dc:creator>
      <dc:date>2022-03-04T13:11:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to use Field Info in Text to Columns Code stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-use-Field-Info-in-Text-to-Columns-Code-stage/m-p/75218#M27823</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Sasikanth, below I've shared the code I used for my text to columns action. I built this a while ago and its been working fine on several developments so hopefully you find use of it. The set range sets the range if the endcell is not provided e.g. "A1" would then be set as "A1:A1"&lt;BR /&gt;&lt;BR /&gt;Inputs - handle, wb name, ws name, startcell (this is the first row of the values you want to split A1), endcell (last row of values to be split A1000), split char (the character you want to delimit with such as | )&lt;BR /&gt;Outputs - Success, Message&lt;BR /&gt;----------------------------------------------------------------------&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;Dim wb, ws As Object&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Dim excel, sheet, range As Object&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Dim matrix = New Integer (3, 1) {{1, 1}, {2, 1}, {3, 1}, {4, 1}}&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Try&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;wb = GetWorkbook(handle, Source_Workbook)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;ws = GetWorksheet(handle, Source_Workbook, Source_Worksheet)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;wb.Activate()&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;ws.Activate()&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;excel = ws.Application&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;sheet = excel.ActiveSheet&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;range = sheet.Range(CellRange)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;range.Select()&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; excel.Selection.TextToColumns (Destination:=sheet.Range(Startcell), DataType:=1, _&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TextQualifier:=-4142, ConsecutiveDelimiter:=False, Tab:=False, _&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Semicolon:=False, Comma:=False, Space:=False, Other:=True, OtherChar _&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; :=Split_Char, FieldInfo:=matrix, _&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TrailingMinusNumbers:=True)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Success = True&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Catch e As Exception&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Success = False&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; Message = e.Message&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Finally&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; wb = Nothing&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; ws = Nothing&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;End Try&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="27917.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/28054iF487B6CD71ED9888/image-size/large?v=v2&amp;amp;px=999" role="button" title="27917.png" alt="27917.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="27918.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/28049iA58D4CBE71C76E7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="27918.png" alt="27918.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="27919.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/28050i6010A407739D6CBC/image-size/large?v=v2&amp;amp;px=999" role="button" title="27919.png" alt="27919.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="27920.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/28052iE71F1269C513FAAF/image-size/large?v=v2&amp;amp;px=999" role="button" title="27920.png" alt="27920.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Michael ONeil&lt;BR /&gt;Technical Lead developer&lt;BR /&gt;NTTData&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Mar 2022 13:24:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-use-Field-Info-in-Text-to-Columns-Code-stage/m-p/75218#M27823</guid>
      <dc:creator>michaeloneil</dc:creator>
      <dc:date>2022-03-04T13:24:00Z</dc:date>
    </item>
    <item>
      <title>RE: How to use Field Info in Text to Columns Code stage</title>
      <link>https://community.blueprism.com/t5/Product-Forum/How-to-use-Field-Info-in-Text-to-Columns-Code-stage/m-p/75219#M27824</link>
      <description>&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/24405"&gt;@SasikanthMachav&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;That last example implies you're running this directly within your​ Excel worksheet as a macro. Is that the case, or are you running this in a Code stage within Blue Prism? There are subtle differences.&lt;BR /&gt;&lt;BR /&gt;As an example, if you're running this in a Code stage you need to enclose the parameters in parentheses.&lt;BR /&gt;&lt;BR /&gt;Ex:&lt;BR /&gt;
&lt;PRE class="language-vbnet"&gt;&lt;CODE&gt;range.TextToColumns(Destination:=Range(DestinationCell),DataType:=1, TextQualifier:=1,ConsecutiveDelimiter:=False,Tab:=True,Semicolon:=False,Comma:=False,Space:=False,Other:=False, FieldInfo:=arr1,TrailingMinusNumbers:=True)
​&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 04 Mar 2022 13:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/How-to-use-Field-Info-in-Text-to-Columns-Code-stage/m-p/75219#M27824</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-03-04T13:30:00Z</dc:date>
    </item>
  </channel>
</rss>

