So I have an odd issue and I am not quite sure how it is working.
We have a Form field that is a dropdown. It is a big list of full vendor names that the user picks. When they submit the form, we have a workflow and one of the steps is a Query Data by the Vendor Name to get the Vendor ID. I know we obviously want to lookup by ID instead of name but the users will not know the ID. They just want to pick the Name. However the Query is failing on a value (not finding the vendor). I found out why but do not understand.
The Vendor is being picked from a list. The list is a Lookup to a SQL table. We are doing the Query Data to the SAME table. So we are referencing the same list that the user is picking.
Here is the vendor in question:
In SQL, copying the vendor shows the following:
20 20 OPTICAL INC - 615 MILL ST S #2 FERGUS FALLS MN 56537
Note there are 2 spaces between S and #2. However when workflow pulls the information from the Form we get this:
This is from the Track Tokens. Copying this shows:
20 20 OPTICAL INC - 615 MILL ST S #2 FERGUS FALLS MN 56537
Note that there is only 1 space between S and #2 so the Query failes because Laserfiche is passing it with one space and SQL holds the value with 2 spaces.
Any idea as to why Workflow seems to remove the extra space? Again the value is being picked from a list on the Form so it is not being keyed in.
Thanks,
Chris