<?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 MID Function throwing Syntax error in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/MID-Function-throwing-Syntax-error/m-p/102627#M49321</link>
    <description>Hi, just installed vresion 6.10 and the MID function for text is not working.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Input&lt;/STRONG&gt;&lt;BR /&gt;Mid("Stephanie", 1, 2)&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;BR /&gt;BluePrism.AutomateProcessCore.InvalidExpressionException: Syntax error. The token '2' is invalid. Please check the case of your operators (eg 'or' versus 'OR') and check that your functions use brackets after the function name eg Now(), eg Len("abc").&lt;BR /&gt;at AutomateUI.ctlProcessExpressionBuilder.TestExpression(String localExpr)</description>
    <pubDate>Thu, 09 Jun 2022 10:42:37 GMT</pubDate>
    <dc:creator>StephanieStrydom</dc:creator>
    <dc:date>2022-06-09T10:42:37Z</dc:date>
    <item>
      <title>MID Function throwing Syntax error</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MID-Function-throwing-Syntax-error/m-p/102627#M49321</link>
      <description>Hi, just installed vresion 6.10 and the MID function for text is not working.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Input&lt;/STRONG&gt;&lt;BR /&gt;Mid("Stephanie", 1, 2)&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;BR /&gt;BluePrism.AutomateProcessCore.InvalidExpressionException: Syntax error. The token '2' is invalid. Please check the case of your operators (eg 'or' versus 'OR') and check that your functions use brackets after the function name eg Now(), eg Len("abc").&lt;BR /&gt;at AutomateUI.ctlProcessExpressionBuilder.TestExpression(String localExpr)</description>
      <pubDate>Thu, 09 Jun 2022 10:42:37 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MID-Function-throwing-Syntax-error/m-p/102627#M49321</guid>
      <dc:creator>StephanieStrydom</dc:creator>
      <dc:date>2022-06-09T10:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: MID Function throwing Syntax error</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MID-Function-throwing-Syntax-error/m-p/102628#M49322</link>
      <description>Hi Stephanie - I had this issue and found a (not very nice) workaround is to add spaces on both sides of the commas, like this:&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;Mid("Stephanie" , 1 , 2)&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;I think problem this due to langue/locale settings where the expression validator gets confused by the commas, and I have raised a bug fix with our product team. In my case I eventually realised that on the BP log in screen I had my language set to &lt;EM&gt;English (Europe&lt;/EM&gt;), and when I set it back to &lt;EM&gt;English (United Kingdom)&lt;/EM&gt; the problem was gone.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="37108.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/37119i8839CA2A91A35667/image-size/large?v=v2&amp;amp;px=999" role="button" title="37108.png" alt="37108.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 09 Jun 2022 12:48:46 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MID-Function-throwing-Syntax-error/m-p/102628#M49322</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2022-06-09T12:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: MID Function throwing Syntax error</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MID-Function-throwing-Syntax-error/m-p/102629#M49323</link>
      <description>Thank John, agree it must be the regional settings, all my full stops (for timeout times) changed to commas in my actions when I imported the process to the new VM. My work around was less nice, I stored the number values in number Data Items, which fixed the issue. Will see if I can change the regional settings.</description>
      <pubDate>Fri, 10 Jun 2022 07:54:33 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MID-Function-throwing-Syntax-error/m-p/102629#M49323</guid>
      <dc:creator>StephanieStrydom</dc:creator>
      <dc:date>2022-06-10T07:54:33Z</dc:date>
    </item>
  </channel>
</rss>

