<?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: Code Stage Output Parameter not working in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Code-Stage-Output-Parameter-not-working/m-p/83064#M34395</link>
    <description>&lt;SPAN&gt;You can probably omit the leading "DataTable" from this line, as dtReportData is already defined for you by virtue of adding it as an Output parameter.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: line-through;"&gt;DataTable&lt;/SPAN&gt; dtReportData = FilterHeadCountSheet(dtFormatedSummary, dtFunctionalTitle);&lt;BR /&gt;&lt;BR /&gt;James Man, Professional Services APAC&lt;/SPAN&gt;</description>
    <pubDate>Mon, 02 Sep 2019 09:35:00 GMT</pubDate>
    <dc:creator>PSSupport</dc:creator>
    <dc:date>2019-09-02T09:35:00Z</dc:date>
    <item>
      <title>Code Stage Output Parameter not working</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Code-Stage-Output-Parameter-not-working/m-p/83063#M34394</link>
      <description>Hello All,&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;I am using code stage using and&amp;nbsp; I have written some code for filter.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;This will return data into DataTable variable.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;But when I am defining it in Output parameter it throwing some error.&lt;BR /&gt;Below is the part of code :&lt;BR /&gt;&lt;BR /&gt;string strSummaryFileName = "C:\\BankOfSingapore\\HongKong\\Input\\Headcount Summary\\v2 Headcount Summary (LnD)_with Staff Movement.XLSX";&lt;BR /&gt;strSummaryFileName = "C:\\BankOfSingapore\\HongKong\\Input\\Headcount Summary\\v2 Headcount Summary (LnD)_with Staff Movement.XLSX";/&amp;nbsp;&lt;BR /&gt;string strFunctionalTitleFileNm = "C:\\BankOfSingapore\\HongKong\\Input\\Functional title\\Functional Title.xlsx";&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt; string strTitleSheetName = "M2 Only";&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;BR /&gt;string strFileExtension = ".xlsx";&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;BR /&gt;DataTable dtHeadCountSummary = ReadHeadCountSheet(strSummaryFileName, strFileExtension);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt; DataTable dtFormatedSummary = ChangeTheHeaderNm(dtHeadCountSummary);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt; DataTable dtFunctionalTitle = ReadFunctionalTitle(strFunctionalTitleFileNm, strTitleSheetName, strFileExtension);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt; DataTable dtReportData = FilterHeadCountSheet(dtFormatedSummary, dtFunctionalTitle); }&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;STRONG&gt;dtReportData --&amp;gt;This is the DataTable that i want as collection out from Code stage into BluePrism.&lt;BR /&gt;&lt;BR /&gt;This is the is Output Varaiable:&lt;/STRONG&gt;&lt;/STRONG&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="23616.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/23749i832387F5879C9E03/image-size/large?v=v2&amp;amp;px=999" role="button" title="23616.png" alt="23616.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;This is the ereor message:&lt;BR /&gt;&lt;BR /&gt;Description:&lt;BR /&gt; &lt;/STRONG&gt;1.Compiler error at line 8: A local variable named 'dtReportData' cannot be declared in this scope because it would give a different meaning to 'dtReportData', which is already used in a 'parent or current' scope to denote something else&lt;BR /&gt;&lt;BR /&gt;2.Description: Compiler warning at line 35: The variable 'ex' is declared but never used&lt;BR /&gt;Repairable:&lt;STRONG&gt; No&lt;BR /&gt;&lt;BR /&gt;Can anyone knows what is the issue here?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Mohini Shelke&lt;BR /&gt;RPA Developer&lt;BR /&gt;vElement It&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Aug 2019 08:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Code-Stage-Output-Parameter-not-working/m-p/83063#M34394</guid>
      <dc:creator>MohiniShelke</dc:creator>
      <dc:date>2019-08-29T08:25:00Z</dc:date>
    </item>
    <item>
      <title>RE: Code Stage Output Parameter not working</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Code-Stage-Output-Parameter-not-working/m-p/83064#M34395</link>
      <description>&lt;SPAN&gt;You can probably omit the leading "DataTable" from this line, as dtReportData is already defined for you by virtue of adding it as an Output parameter.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration: line-through;"&gt;DataTable&lt;/SPAN&gt; dtReportData = FilterHeadCountSheet(dtFormatedSummary, dtFunctionalTitle);&lt;BR /&gt;&lt;BR /&gt;James Man, Professional Services APAC&lt;/SPAN&gt;</description>
      <pubDate>Mon, 02 Sep 2019 09:35:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Code-Stage-Output-Parameter-not-working/m-p/83064#M34395</guid>
      <dc:creator>PSSupport</dc:creator>
      <dc:date>2019-09-02T09:35:00Z</dc:date>
    </item>
  </channel>
</rss>

