<?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 error in C# code in Global Code tab in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/error-in-C-code-in-Global-Code-tab/m-p/59118#M12837</link>
    <description>Hi Guys&lt;BR /&gt;&lt;BR /&gt;Trying a simple Code Snipp of C# in BP. Code is working fine in Visual Studio but throwing error in BP. Attaching my object. Please have a look your help is appriciated.&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30431.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30560iAF2E8F0DF4F494C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="30431.png" alt="30431.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Thanks in Advance&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Aqib iqbal khan&lt;BR /&gt;Associate Technical &lt;BR /&gt;SQS&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Sun, 22 Mar 2020 03:43:00 GMT</pubDate>
    <dc:creator>Aqibiqbal_khan</dc:creator>
    <dc:date>2020-03-22T03:43:00Z</dc:date>
    <item>
      <title>error in C# code in Global Code tab</title>
      <link>https://community.blueprism.com/t5/Product-Forum/error-in-C-code-in-Global-Code-tab/m-p/59118#M12837</link>
      <description>Hi Guys&lt;BR /&gt;&lt;BR /&gt;Trying a simple Code Snipp of C# in BP. Code is working fine in Visual Studio but throwing error in BP. Attaching my object. Please have a look your help is appriciated.&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30431.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/30560iAF2E8F0DF4F494C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="30431.png" alt="30431.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Thanks in Advance&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Aqib iqbal khan&lt;BR /&gt;Associate Technical &lt;BR /&gt;SQS&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 22 Mar 2020 03:43:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/error-in-C-code-in-Global-Code-tab/m-p/59118#M12837</guid>
      <dc:creator>Aqibiqbal_khan</dc:creator>
      <dc:date>2020-03-22T03:43:00Z</dc:date>
    </item>
    <item>
      <title>RE: error in C# code in Global Code tab</title>
      <link>https://community.blueprism.com/t5/Product-Forum/error-in-C-code-in-Global-Code-tab/m-p/59119#M12838</link>
      <description>I might be wrong but, when opening the attached XML, the "foreach: doesn't looked closed in the code that was supplied. Which matches the error message.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&lt;CODE&gt;foreach{var Word in scrammbledWord) { Content.Row.Add(Word) }&lt;/CODE&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Leon&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 22 Mar 2020 19:18:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/error-in-C-code-in-Global-Code-tab/m-p/59119#M12838</guid>
      <dc:creator>LeonStroschein</dc:creator>
      <dc:date>2020-03-22T19:18:00Z</dc:date>
    </item>
    <item>
      <title>RE: error in C# code in Global Code tab</title>
      <link>https://community.blueprism.com/t5/Product-Forum/error-in-C-code-in-Global-Code-tab/m-p/59120#M12839</link>
      <description>Good catch. I think the solution is the other way around because the error has it backwards. The opening curly brace { after the foreach should be an opening parenthesis (.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Dave Morris&lt;BR /&gt;3Ci @ Southern Company&lt;BR /&gt;Atlanta, GA&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 22 Mar 2020 19:22:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/error-in-C-code-in-Global-Code-tab/m-p/59120#M12839</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2020-03-22T19:22:00Z</dc:date>
    </item>
    <item>
      <title>RE: error in C# code in Global Code tab</title>
      <link>https://community.blueprism.com/t5/Product-Forum/error-in-C-code-in-Global-Code-tab/m-p/59121#M12840</link>
      <description>Hi Dave,&lt;BR /&gt;&lt;BR /&gt;I am facing a similar error in my code but by the good of me can't find where hte missing paranthesis is.Any ideas?&lt;BR /&gt;&lt;BR /&gt;class Credential&lt;BR /&gt;{&lt;BR /&gt;// accout region, use 'default' value unless being instructed otherwise&lt;BR /&gt;private const string d_region = "default";&lt;BR /&gt;// Once created each token will be valid only for the following specified period(in seconds).&lt;BR /&gt;// This value is ajustable on client side, but note that increasing this value too much &lt;BR /&gt;// might not suffice for security concerns, as well as too little value could lead to &lt;BR /&gt;// JWT token invalidation before it being received by the beap server due to network delays.&lt;BR /&gt;// You can adjust this value for your need or use default value unless you definitely know &lt;BR /&gt;// that you need to change this value.&lt;BR /&gt;private const int d_lifetime = 25;&lt;BR /&gt;/// &amp;lt;summary&amp;gt;&lt;BR /&gt;/// Provides access to client id parsed from credential.txt file.&lt;BR /&gt;/// &amp;lt;/summary&amp;gt;&lt;BR /&gt;[JsonProperty("client_id")]&lt;BR /&gt;public string ClientId { get; set; }&lt;BR /&gt;/// &amp;lt;summary&amp;gt;&lt;BR /&gt;/// Accepts client secret form json deserializer and decodes it to bytes.&lt;BR /&gt;/// &amp;lt;/summary&amp;gt;&lt;BR /&gt;[JsonProperty("client_secret")]&lt;BR /&gt;public string ClientSecret { set { DecodedSecret = FromHexString(value); } }&lt;BR /&gt;/// &amp;lt;summary&amp;gt;&lt;BR /&gt;/// Provides access to decoded client secret.&lt;BR /&gt;/// &amp;lt;/summary&amp;gt;&lt;BR /&gt;public byte[] DecodedSecret { get; private set; }&lt;BR /&gt;/// &amp;lt;summary&amp;gt;&lt;BR /&gt;/// Converts hexadecimal string to bytes.&lt;BR /&gt;/// &amp;lt;/summary&amp;gt;&lt;BR /&gt;/// &amp;lt;param name="s"&amp;gt;Input hexadecimal string.&amp;lt;/param&amp;gt;&lt;BR /&gt;/// &amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;&lt;BR /&gt;static private byte[] FromHexString(string input)&lt;BR /&gt;{&lt;BR /&gt;return Enumerable.Range(0, input.Length)&lt;BR /&gt;.Where(charIdx =&amp;gt; charIdx % 2 == 0)&lt;BR /&gt;.Select(charIdx =&amp;gt; Convert.ToByte(input.Substring(charIdx, 2), 16))&lt;BR /&gt;.ToArray();&lt;BR /&gt;}&lt;BR /&gt;/// &amp;lt;summary&amp;gt;&lt;BR /&gt;/// Loads credentials from credential.txt file.&lt;BR /&gt;/// &amp;lt;/summary&amp;gt;&lt;BR /&gt;/// &amp;lt;param name="d_credentialPath"&amp;gt;Path to credential.txt file.&amp;lt;/param&amp;gt;&lt;BR /&gt;/// &amp;lt;returns&amp;gt;&amp;lt;/returns&amp;gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Andrei Cozma&lt;BR /&gt;Data&lt;BR /&gt;Zurich&lt;BR /&gt;Europe/Madrid&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Oct 2020 10:07:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/error-in-C-code-in-Global-Code-tab/m-p/59121#M12840</guid>
      <dc:creator>AndreiCozma</dc:creator>
      <dc:date>2020-10-16T10:07:00Z</dc:date>
    </item>
    <item>
      <title>RE: error in C# code in Global Code tab</title>
      <link>https://community.blueprism.com/t5/Product-Forum/error-in-C-code-in-Global-Code-tab/m-p/59122#M12841</link>
      <description>Looks like you're missing one closing curly brace at the very end to close up the class.&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, 21 Oct 2020 14:36:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/error-in-C-code-in-Global-Code-tab/m-p/59122#M12841</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2020-10-21T14:36:00Z</dc:date>
    </item>
  </channel>
</rss>

