I have a document in the repository I am trying to perform pattern matching on. This document is 200 pages. I have limited the Retrieve Document Text Activity to Pages 1-60. The workflow hangs on Pattern Matching and doesn't move any further. And I can't just terminate the workflow, it times out. I have to stop Workflow services first. I have other documents that are anywhere from 2-100 pages and these go through just fine. Which is why I thought I'd be OK with 1-60 pages. Any ideas of what I can do?
Question
Question
Workflow hangs on pattern matching
Replies
It's probably best you contact your reseller to open a case with Tech Support so we can take a closer look.
Regular expression has a timeout on how much time it will spend attempting to detect the pattern in the provided text, but without seeing the pattern and a sample doc, it is hard to guess what might be going wrong.
Hi Margo,
That amount of data evaluated by regex may be unreliable. Have you tried running tests on this regex? Is it possible to shrink the amount of data being regexed?
In the past I have regexed a section, then regexed my captured section. Sometimes you can get a more efficient result that way.
I would try testing it with either regex101.com (if it lets you paste that much data). Or an app like Espresso. They will tell you how efficient the regex is.
A token is limited to the amount of data that can be loaded into a single field. Sometimes it is best to load the retrieve text as a Multi-value token (There is a checkbox for that) and then loop through the pages using the Index to change pages. This limits the Pattern to just that pages data