<?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: Validation of Value in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Validation-of-Value/m-p/69631#M22236</link>
    <description>Hi Andre,&lt;BR /&gt;&lt;BR /&gt;It's not best practice to use a field for a calculation and assignable field. When the assigned value in the document doesn't match the formula outcome, you will get a validation error.&lt;BR /&gt;&lt;BR /&gt;It's best to separate these into different fields and if needed, you can mark the one you don't want in BP as non-exportable.&lt;BR /&gt;&lt;BR /&gt;You have 2 options as follows:&lt;BR /&gt;&lt;BR /&gt;Option A - Have assignable regions for value 1 and value 2, then an auto-calculated field for the formulas result.&lt;BR /&gt;&lt;BR /&gt;The formula in the 3rd field would be &lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;EQ&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;STRRIGHT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;value1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;6&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;value2&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"TRUE"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"FALSE"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;Option B - Add a validation formula to value 2.&lt;BR /&gt;&lt;BR /&gt;The validation should simply be STRRIGHT(value1,6),.&lt;BR /&gt;&lt;BR /&gt;Do either of those options work for you?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ben Lyons&lt;BR /&gt;Senior Product Specialist - Decipher&lt;BR /&gt;Blue Prism&lt;BR /&gt;UK based&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Wed, 20 Apr 2022 07:47:00 GMT</pubDate>
    <dc:creator>Ben.Lyons1</dc:creator>
    <dc:date>2022-04-20T07:47:00Z</dc:date>
    <item>
      <title>Validation of Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Validation-of-Value/m-p/69630#M22235</link>
      <description>Hello All&lt;BR /&gt;&lt;BR /&gt;Decipher get two values from a Document e.g. Value 1: P234567 and Value 2: 2234567. I have to validate, if in Value 2 are the last 6-digits "234567" of Value 1 are included, if yes, the Document is OK, if not it have to be an exception.&lt;BR /&gt;&lt;BR /&gt;​I setup below checks/validation in the DFD:&lt;BR /&gt;&lt;BR /&gt;1. Get last 6-digits from Value 1&lt;BR /&gt;- Flags: Required. SoftValidation, NonExportable, AutoCalculate&lt;BR /&gt;- Dependent Items: Value 2&lt;BR /&gt;- Formula: &lt;SPAN&gt;STRRIGHT&lt;/SPAN&gt;&lt;SPAN&gt;(Value1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;6&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;2. Check Values&lt;BR /&gt;- Flags: Required, SoftValidation, AutoCalculate&lt;BR /&gt;Dependent Items: Value 1 and Value 3&lt;BR /&gt;Formula: &lt;SPAN&gt;STRCONTAINS&lt;/SPAN&gt;&lt;SPAN&gt;(Value from STRRIGHT(Value1,6),Value 2&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;3. True/False&lt;BR /&gt;- Flags: SoftValidation, AutoCalculate&lt;BR /&gt;- Options: TRUE, FALSE&lt;BR /&gt;- Default Value: TRUE&lt;BR /&gt;- Formula: &lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;EQ&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Value from STRRIGHT(Value1,6)&lt;/SPAN&gt;&lt;SPAN&gt;"1"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"TRUE"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;SELF&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;The True/False field isn't change, if the &lt;SPAN&gt;Value from STRRIGHT(Value1,6)is "0" = FALSE&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Any Idea or good pracise, how I can get it working?&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;Andre​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Andre Köpplin&lt;BR /&gt;RPA Project Manager&lt;BR /&gt;Europe/Wroclaw&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Apr 2022 05:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Validation-of-Value/m-p/69630#M22235</guid>
      <dc:creator>AndreKöpplin</dc:creator>
      <dc:date>2022-04-20T05:27:00Z</dc:date>
    </item>
    <item>
      <title>RE: Validation of Value</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Validation-of-Value/m-p/69631#M22236</link>
      <description>Hi Andre,&lt;BR /&gt;&lt;BR /&gt;It's not best practice to use a field for a calculation and assignable field. When the assigned value in the document doesn't match the formula outcome, you will get a validation error.&lt;BR /&gt;&lt;BR /&gt;It's best to separate these into different fields and if needed, you can mark the one you don't want in BP as non-exportable.&lt;BR /&gt;&lt;BR /&gt;You have 2 options as follows:&lt;BR /&gt;&lt;BR /&gt;Option A - Have assignable regions for value 1 and value 2, then an auto-calculated field for the formulas result.&lt;BR /&gt;&lt;BR /&gt;The formula in the 3rd field would be &lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;EQ&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;STRRIGHT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;value1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;6&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;value2&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"TRUE"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"FALSE"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;Option B - Add a validation formula to value 2.&lt;BR /&gt;&lt;BR /&gt;The validation should simply be STRRIGHT(value1,6),.&lt;BR /&gt;&lt;BR /&gt;Do either of those options work for you?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ben Lyons&lt;BR /&gt;Senior Product Specialist - Decipher&lt;BR /&gt;Blue Prism&lt;BR /&gt;UK based&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Apr 2022 07:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Validation-of-Value/m-p/69631#M22236</guid>
      <dc:creator>Ben.Lyons1</dc:creator>
      <dc:date>2022-04-20T07:47:00Z</dc:date>
    </item>
  </channel>
</rss>

