We have a situation in Workflow 10.0.0.249 where we are using the table option to retrieve the information from a pdf. The pdf has 66 places for name and address information (i.e. 66 possible names) and we need to know how many of these names have been filled in.
The field appears to be identified correctly:
And then we try to iterate through the contents in a script:
Dim sTokenName As String = "RetrievePDFFormContent_Last_" Dim sTempTokenName As String = "" Dim nIndex as Integer = 0 For nIndex = 1 to 66 'Use the Last Name as a marker sTempTokenName = sTokenName & nIndex sTempValue = GetTokenValue(sTempTokenName) sTempValue = sTempValue.Trim 'Look for the first empty field If sTempValue.Trim.Length = 0 Then 'Remove one value nIndex = (nIndex - 1) 'And bolt Exit For End If Next
This will create the token, "RetrievePDFFormContent_Last_1, "RetrievePDFFormContent_Last_2, etc, with the ending number being the index.
In the script editor, the Tokens show up without issue:
When we run this, we get the error, "The token "RetrievePDFormContent_Last_1" was not found. [051-SF1]
Even though the values show up fine in the Token list:
Are we missing something obvious?