Hi Sigrid - this didn't seem to work. Also, when I promoted the field to a solution field it is not showing the proper value when I view in Documents in the Solution. Is there another action I need to take in order for the correct value from the form field to pass into the solution field? See below for Request 10, Error Count reads zero.

But the completed document the value is 2. Why would the correct value not show in the Solution Promoted Field?

------------------------------
Krista Zinna | Master Data Specialist
Timken Company | 234-262-2008
------------------------------
Original Message:
Sent: 08-02-2021 14:23
From: Sigrid Kok
Subject: Using "Match" to Identify Errors in Workflow
Hi Krista
Congrats on the progress!
Two things:
- set a default value of the counts to 0
- use the ToNumber function, in case it is resolving to text instead of numeric. it would look something like this, with ErrorRows a promoted count field: ToNumber([ErrorRows]) >= 0

HTH
Sigrid
------------------------------
Sigrid Kok
PSE | Winshuttle NA
Original Message:
Sent: 08-02-2021 14:12
From: Krista Zinna
Subject: Using "Match" to Identify Errors in Workflow
Hi Sigrid - I was able to get the Count function to work for my solution to get a field outside of my table that counts the error rows. Now I am stuck on how to incorporate this into the workflow. Here is what I have below. After the update runs with the Process Form plug in, there is a decision with an otherwise transition and a transition that is [/my:myFields/my:Log_Field_Error_Count] >= 1. This would lead the workflow to an error notification. I've tried promoting the field to a Solution field and that doesn't seem to work. I've also tried putting a Wait Plug In between the Process Form and Decision node, thinking maybe some time was needed to update the Error Count, however this is still not working. Is my formula wrong ? The Error Count field is calculating correctly but my condition/transition does not seem to be recognizing that it is met.
Thanks
Krista

------------------------------
Krista Zinna | Master Data Specialist
Timken Company | 234-262-2008
Original Message:
Sent: 07-20-2021 12:27
From: Sigrid Kok
Subject: Using "Match" to Identify Errors in Workflow
Hi Krista
I believe James's recommendation was for excel workflows. For form workflows, I usually add 2 whole integer fields outside of the table and use rules like below.
- You'll have to swap in what is a valid success - it basically counts the log field where it contains whatever string you have. the pipe "|" is a separator, so it says count if it contains 'Condition records saved' OR ' Success': count('/my:myFields/my:VK11/my:VK11_Input/my:Repeating_Content/my:LogField_CM',"Condition records saved|Success");
- and for errors. It's looking for the string 'Err:' in the logfield and counts them count('/my:myFields/my:VK11/my:VK11_Input/my:Repeating_Content/my:LogField_CM',"Err:");
Then you can promote and use the counts to direct the workflow.
HTH
Sigrid
------------------------------
Sigrid Kok
PSE | Winshuttle NA
Original Message:
Sent: 07-19-2021 09:45
From: Krista Zinna
Subject: Using "Match" to Identify Errors in Workflow
Hi Friends,
We have a simple MM02 web form solution to update material master fields. We have created the form with a repeating data section as the user will most likely submit several materials at once. The form routes for approval and then a plug in runs the Winshuttle script. If there are no errors we would like the process to complete. If there are errors for one or more of the materials we would like the workflow to send a notification to the originator notifying them of the errors. We have tried to do this using the "Match" function on the Logfield and if the Logfield contains "Err" then send the notification. However this only works for the first material. If the first material runs without errors, yet the remaining materials are errors, the Match function does not recognize it as an error. Here is my workflow below at the decision node. Is there a better way to do this rather than using Match?
As always; Thank you!
Krista

------------------------------
Krista Zinna | Master Data Specialist
Timken Company | 234-262-2008
------------------------------