Skip to main content
Kofax

RL1 finders break on JSON when key contains period character

3024578

Question / Problem: 

When a key contains the period character we generate a finder for it that does not work.

Answer / Solution: 

The reason is that our use (in the finder representation) of . signifies a sub-key. So for a JSON variable like this { "bad.key" : "target value", "bad" : { "key" : "wrong target"} } when the user tries to find the property "bad.key", the generated finder will be @top:.bad.key, but such a finder will not find "target value". Instead that finder will find "wrong target" 

This is a Bug: Bug 1460612: RL1 finders break on JSON when key contains period character

It was reported in 10.6. 

Workaround:

Replace all instances of . in JSON keys with a safe token value e.g. _DOT_ and then finders generated will work.

Naturally the keys will have to be transformed back afterwards if they are of importance. 

 

Applies to:  

Product Version
Kofax RPA All

 

 

  • Was this article helpful?