{"id":43819,"date":"2020-02-21T09:24:30","date_gmt":"2020-02-21T16:24:30","guid":{"rendered":"https:\/\/ephesoft.com\/docs\/?p=43819"},"modified":"2020-08-26T14:53:44","modified_gmt":"2020-08-26T21:53:44","slug":"kb00010723-date-regex-expression-validation-error","status":"publish","type":"post","link":"https:\/\/ephesoft.com\/docs\/kb00010723-date-regex-expression-validation-error\/","title":{"rendered":"KB00010723: Date Regex Expression Validation Error"},"content":{"rendered":"

Issue: <\/strong><\/p>\n

The error “Date could not satisfy the validation pattern” (Figure 1) may occur when a date regex expression has been defined in Validation Rules<\/strong> (Figure 2) but is already functioning in Regex Builder <\/strong>(Figure 3). This issue applies only to 2019.2.<\/p>\n

<\/p>\n

Figure 1: Validation Pattern Error<\/em><\/p>\n

<\/p>\n

Figure 2: Date Regex Expression in Validation Rules<\/strong><\/em><\/p>\n

<\/p>\n

Figure 3: Regex Builder<\/strong> Screen<\/em><\/p>\n

Solution: <\/strong><\/p>\n

To resolve this issue, implement the following script to set the field value to lower case.<\/p>\n

if (currentFieldName.equals(\"Document Date\")){\r\n\r\ndlfValueDoc.setText(currentFieldValue.toLowerCase());<\/pre>\n

This will verify the date format of manual user entry without using the Date regex expression in Validation Rules<\/strong>.<\/p>\n

Important<\/strong>: You will need to click Validate<\/strong> twice.<\/p>\n","protected":false},"excerpt":{"rendered":"

Issue: The error “Date could not satisfy the validation pattern” (Figure 1) may occur when a date regex expression has […]<\/p>\n","protected":false},"author":62,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12365],"tags":[1430],"yoast_head":"\nKB00010723: Date Regex Expression Validation Error | Ephesoft Docs<\/title>\n<meta name=\"description\" content=\"The error "Date could not satisfy the validation pattern" may occur when a date regex expression has been defined in Validation Rules but is already functioning in Regex Builder. This issue applies only to 2019.2.\" \/>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"KB00010723: Date Regex Expression Validation Error\" \/>\n<meta property=\"og:description\" content=\"The error "Date could not satisfy the validation pattern" may occur when a date regex expression has been defined in Validation Rules but is already functioning in Regex Builder. This issue applies only to 2019.2.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ephesoft.com\/docs\/kb00010723-date-regex-expression-validation-error\/\" \/>\n<meta property=\"og:site_name\" content=\"Ephesoft Docs\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-21T16:24:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-26T21:53:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ephesoft.com\/docs\/wp-content\/uploads\/2020\/02\/word-image-24.png\" \/>\n<meta name=\"author\" content=\"Breanna Fitzgerald\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Breanna Fitzgerald\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ephesoft.com\/docs\/kb00010723-date-regex-expression-validation-error\/\",\"url\":\"https:\/\/ephesoft.com\/docs\/kb00010723-date-regex-expression-validation-error\/\",\"name\":\"KB00010723: Date Regex Expression Validation Error | Ephesoft Docs\",\"isPartOf\":{\"@id\":\"https:\/\/ephesoft.com\/docs\/#website\"},\"datePublished\":\"2020-02-21T16:24:30+00:00\",\"dateModified\":\"2020-08-26T21:53:44+00:00\",\"author\":{\"@id\":\"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/d74c698404588430489bf05dfdf4bedd\"},\"description\":\"The error \\\"Date could not satisfy the validation pattern\\\" may occur when a date regex expression has been defined in Validation Rules but is already functioning in Regex Builder. This issue applies only to 2019.2.\",\"breadcrumb\":{\"@id\":\"https:\/\/ephesoft.com\/docs\/kb00010723-date-regex-expression-validation-error\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ephesoft.com\/docs\/kb00010723-date-regex-expression-validation-error\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ephesoft.com\/docs\/kb00010723-date-regex-expression-validation-error\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ephesoft.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"KB00010723: Date Regex Expression Validation Error\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ephesoft.com\/docs\/#website\",\"url\":\"https:\/\/ephesoft.com\/docs\/\",\"name\":\"Ephesoft Docs\",\"description\":\"Intelligent Document Processing Made Easy\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ephesoft.com\/docs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/d74c698404588430489bf05dfdf4bedd\",\"name\":\"Breanna Fitzgerald\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e0624b0af4f5f3caa370053f6eef54c8?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e0624b0af4f5f3caa370053f6eef54c8?s=96&r=g\",\"caption\":\"Breanna Fitzgerald\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"KB00010723: Date Regex Expression Validation Error | Ephesoft Docs","description":"The error \"Date could not satisfy the validation pattern\" may occur when a date regex expression has been defined in Validation Rules but is already functioning in Regex Builder. This issue applies only to 2019.2.","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"KB00010723: Date Regex Expression Validation Error","og_description":"The error \"Date could not satisfy the validation pattern\" may occur when a date regex expression has been defined in Validation Rules but is already functioning in Regex Builder. This issue applies only to 2019.2.","og_url":"https:\/\/ephesoft.com\/docs\/kb00010723-date-regex-expression-validation-error\/","og_site_name":"Ephesoft Docs","article_published_time":"2020-02-21T16:24:30+00:00","article_modified_time":"2020-08-26T21:53:44+00:00","og_image":[{"url":"https:\/\/ephesoft.com\/docs\/wp-content\/uploads\/2020\/02\/word-image-24.png"}],"author":"Breanna Fitzgerald","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Breanna Fitzgerald","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ephesoft.com\/docs\/kb00010723-date-regex-expression-validation-error\/","url":"https:\/\/ephesoft.com\/docs\/kb00010723-date-regex-expression-validation-error\/","name":"KB00010723: Date Regex Expression Validation Error | Ephesoft Docs","isPartOf":{"@id":"https:\/\/ephesoft.com\/docs\/#website"},"datePublished":"2020-02-21T16:24:30+00:00","dateModified":"2020-08-26T21:53:44+00:00","author":{"@id":"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/d74c698404588430489bf05dfdf4bedd"},"description":"The error \"Date could not satisfy the validation pattern\" may occur when a date regex expression has been defined in Validation Rules but is already functioning in Regex Builder. This issue applies only to 2019.2.","breadcrumb":{"@id":"https:\/\/ephesoft.com\/docs\/kb00010723-date-regex-expression-validation-error\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ephesoft.com\/docs\/kb00010723-date-regex-expression-validation-error\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ephesoft.com\/docs\/kb00010723-date-regex-expression-validation-error\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ephesoft.com\/docs\/"},{"@type":"ListItem","position":2,"name":"KB00010723: Date Regex Expression Validation Error"}]},{"@type":"WebSite","@id":"https:\/\/ephesoft.com\/docs\/#website","url":"https:\/\/ephesoft.com\/docs\/","name":"Ephesoft Docs","description":"Intelligent Document Processing Made Easy","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ephesoft.com\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/d74c698404588430489bf05dfdf4bedd","name":"Breanna Fitzgerald","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e0624b0af4f5f3caa370053f6eef54c8?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e0624b0af4f5f3caa370053f6eef54c8?s=96&r=g","caption":"Breanna Fitzgerald"}}]}},"_links":{"self":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/posts\/43819"}],"collection":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/users\/62"}],"replies":[{"embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/comments?post=43819"}],"version-history":[{"count":0,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/posts\/43819\/revisions"}],"wp:attachment":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/media?parent=43819"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/categories?post=43819"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/tags?post=43819"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}