You are viewing limited content. For full access, please sign in.

Question

Question

Token Calculator Adding Extra Decimal Places

asked on October 5, 2016 Show version history

Hello!

We have a Workflow that runs a calculation (Token Calculator) and compares it to another token (Pattern Matched Text).  

When I look at the Tokens gathered (gettotal & totalverify), it shows me that the two tokens are identical.  

 

However, when I look at the conditions tab, I can see that the token from the Token Calculator has 11 extra digits.

 

After reviewing the Token Calculator, I see that it is doing simple addition with numbers that have only two decimal places.  It's also tagged with the Number tag.

 

We're currently testing with it being a "String" tag even though I would have thought a "Number" tag would be more fitting.  Can anyone shed light as to why the Token Calculator is adding 11 extra decimals?  Thanks for any help!

0 0

Replies

replied on October 7, 2016

A case has been opened with Laserfiche Support. The thread will be updated when a resolution is found.

1 0
replied on October 10, 2016

While the root of the issue has still yet to be determined, for anyone else who may encounter this behavior, it seems that reversing the order of the arguments in the equality condition (which should in theory be symmetric) does not encounter this behavior; that is, check to see whether TOKEN_CALCULATION = OTHER_TOKEN rather than if OTHER_TOKEN = TOKEN_CALCULATION.

0 0
replied on October 5, 2016 Show version history

Where does the getTotal value come from?

Which token is on the left and which one is on the right on the condition?

0 0
replied on October 5, 2016

Thanks Miruna for the quick reply!

The getTotal value comes from a Pattern Match activity.  It takes the Document Text and retrieves text after the words "Total EFT".  There's some confidential information within the Document Text so I won't be able to provide the full text.

The token on the left is "getTotal" and the token on the right is "totalVerify".

0 0
replied on October 7, 2016

Is there any other information that I can provide?  Thanks!

0 0
replied on October 7, 2016

I can't reproduce the issue. Could you open a support case, please, and attach a sample document and workflow? You can remove any confidential information from the text of the document if it's not relevant to this issue (or Tech Support can sign an NDA if necessary).

0 0
replied on October 7, 2016

Will do, thanks Miruna!

0 0
replied on October 5, 2016

Thanks Miruna for the quick reply!

The getTotal value comes from a Pattern Match activity.  It takes the Document Text and retrieves text after the words "Total EFT".  There's some confidential information within the Document Text so I won't be able to provide the full text.

The token on the left is "getTotal" and the token on the right is "totalVerify".

You are not allowed to follow up in this post.

Sign in to reply to this post.