<?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: Can't compare/add/multiply to unknown when using get screen bounds in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Can-t-compare-add-multiply-to-unknown-when-using-get-screen/m-p/63740#M16631</link>
    <description>Resolution found!&lt;BR /&gt;&lt;BR /&gt;Using the ToNumber() function on all of the field references in expressions has resolved it:&lt;BR /&gt;&lt;BR /&gt;X&amp;amp;Y = ToNumber(&lt;B&gt;&lt;SPAN style="color: #ff00ff; font-size: small;"&gt;[&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="color: #ff00ff; font-size: small;"&gt;Active Screen Bounds.Left&lt;B&gt;])&lt;/B&gt;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color: #ff0000; font-size: small;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="color: #0000ff; font-size: small;"&gt;0 &lt;/SPAN&gt;AND ToNumber(&lt;SPAN style="color: #ff00ff; font-size: small;"&gt;&lt;B&gt;[&lt;/B&gt;Active Screen Bounds.Top&lt;B&gt;])&lt;/B&gt;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color: #ff0000; font-size: small;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="color: #0000ff; font-size: small;"&gt;0&lt;BR /&gt;&lt;BR /&gt;etc...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Andrzej Silarow&lt;BR /&gt;Blue Prism Mentor&lt;BR /&gt;Smart Automation Services LTD&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 09 Oct 2020 22:34:00 GMT</pubDate>
    <dc:creator>asilarow</dc:creator>
    <dc:date>2020-10-09T22:34:00Z</dc:date>
    <item>
      <title>Can't compare/add/multiply to unknown when using get screen bounds</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Can-t-compare-add-multiply-to-unknown-when-using-get-screen/m-p/63739#M16630</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I have the following design:&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV class="media" style="width: 970px; height: 397px; overflow: hidden; -ms-zoom: 1;"&gt;
&lt;DIV class="media" style="width: 970px; height: 420px; overflow: hidden; -ms-zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="14010.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/14173i85A3AE3B59539387/image-size/large?v=v2&amp;amp;px=999" role="button" title="14010.png" alt="14010.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;SPAN style="color: #000000;"&gt;The "Get Screen Offset" reader uses the "Get Screen Bounds" action on the currently active IEFrame element, and returns the collection [Active Screen Bounds]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;The Choice stage has the following expressions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;X&amp;amp;Y = &lt;B&gt;&lt;SPAN style="color: #ff00ff; font-size: small;"&gt;[&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="color: #ff00ff; font-size: small;"&gt;Active Screen Bounds.Left&lt;B&gt;]&lt;/B&gt;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color: #ff0000; font-size: small;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="color: #0000ff; font-size: small;"&gt;0 &lt;/SPAN&gt;AND&amp;nbsp;&lt;SPAN style="color: #ff00ff; font-size: small;"&gt;&lt;B&gt;[&lt;/B&gt;Active Screen Bounds.Top&lt;B&gt;]&lt;/B&gt;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color: #ff0000; font-size: small;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="color: #0000ff; font-size: small;"&gt;0&lt;BR /&gt;X = &lt;B&gt;&lt;SPAN style="color: #ff00ff; font-size: small;"&gt;[&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="color: #ff00ff; font-size: small;"&gt;Active Screen Bounds.Left&lt;B&gt;]&lt;/B&gt;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color: #ff0000; font-size: small;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;/B&gt;0&lt;BR /&gt;Y = &lt;SPAN style="color: #ff00ff; font-size: small;"&gt;&lt;B&gt;[&lt;/B&gt;Active Screen Bounds.Top&lt;B&gt;]&lt;/B&gt;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color: #ff0000; font-size: small;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;/B&gt;0&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;The purpose of the above being to determine if the window coordinates are extending beyond the visible desktop area.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;When ran, it works fine... however the validation tool highlights it as an error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Stage: Choice1&lt;BR /&gt;Type: Error&lt;BR /&gt;Action: Validate&lt;BR /&gt;Description: Invalid expression for node 1 of stage 'Choice1' - Can't compare Unknown&lt;BR /&gt;Repairable: No&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #000000;"&gt;This is obviously because the collection &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small;"&gt;&lt;SPAN style="color: #ff00ff; font-size: small;"&gt;&lt;B&gt;[&lt;/B&gt;Active Screen Bounds&lt;B&gt;] &lt;/B&gt;&lt;SPAN style="color: #000000;"&gt;is undefined, and therefore the expression is not possible to evaluate the data type.&lt;BR /&gt;&lt;BR /&gt;So... in order to attempt to remove the error, I tried to define the collection, but this results in yet another error:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Row 1 has an invalid store in location - the collection stage Active Screen Bounds has some fields defined, whereas an empty (dynamic) collection is required&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Which makes it impossible to not have any error when getting screen bounds efficiently.&lt;BR /&gt;&lt;BR /&gt;The only way I can see to fix this is to have yet another, separate defined collection to which all the data would have to be cast after reading the screen bounds... but this would be effectively duplicating the data without&amp;nbsp; good reason, just to resolve an error that should not exist in the first place.&lt;BR /&gt;&lt;BR /&gt;Any alternative suggestions how to get around this?&lt;BR /&gt;&lt;BR /&gt;This is on Blue Prism version 6.4.4 on a Corporate network.&lt;BR /&gt;&lt;BR /&gt;Changing system settings for error validation is out of the question, as they are managed by corporate policy.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;Kind regards,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Andrzej Silarow&lt;BR /&gt;Blue Prism Mentor&lt;BR /&gt;Smart Automation Services LTD&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Oct 2020 11:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Can-t-compare-add-multiply-to-unknown-when-using-get-screen/m-p/63739#M16630</guid>
      <dc:creator>asilarow</dc:creator>
      <dc:date>2020-10-09T11:30:00Z</dc:date>
    </item>
    <item>
      <title>RE: Can't compare/add/multiply to unknown when using get screen bounds</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Can-t-compare-add-multiply-to-unknown-when-using-get-screen/m-p/63740#M16631</link>
      <description>Resolution found!&lt;BR /&gt;&lt;BR /&gt;Using the ToNumber() function on all of the field references in expressions has resolved it:&lt;BR /&gt;&lt;BR /&gt;X&amp;amp;Y = ToNumber(&lt;B&gt;&lt;SPAN style="color: #ff00ff; font-size: small;"&gt;[&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="color: #ff00ff; font-size: small;"&gt;Active Screen Bounds.Left&lt;B&gt;])&lt;/B&gt;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color: #ff0000; font-size: small;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="color: #0000ff; font-size: small;"&gt;0 &lt;/SPAN&gt;AND ToNumber(&lt;SPAN style="color: #ff00ff; font-size: small;"&gt;&lt;B&gt;[&lt;/B&gt;Active Screen Bounds.Top&lt;B&gt;])&lt;/B&gt;&lt;/SPAN&gt;&lt;B&gt;&lt;SPAN style="color: #ff0000; font-size: small;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;/B&gt;&lt;SPAN style="color: #0000ff; font-size: small;"&gt;0&lt;BR /&gt;&lt;BR /&gt;etc...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Andrzej Silarow&lt;BR /&gt;Blue Prism Mentor&lt;BR /&gt;Smart Automation Services LTD&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Oct 2020 22:34:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Can-t-compare-add-multiply-to-unknown-when-using-get-screen/m-p/63740#M16631</guid>
      <dc:creator>asilarow</dc:creator>
      <dc:date>2020-10-09T22:34:00Z</dc:date>
    </item>
  </channel>
</rss>

