Does anyone have a script that will delete an instance (row) of a repeating group (not table) from a stage script?
In the invoice project, recognition will sometimes find too many Order Numbers. 99% of the time the first one is correct. For this project there will only be one. My plan is to put a script in that will delete all but the first instance. I will put the script between Recognition and Verification.
I have tried a few things but it either throws an error or doesn't actually delete the row.
Thank you!
Comments
2 comments
Did you ever resolve? If so, what did you do? We're having a similar issue on a new FCI project. There's only one Purchase Order per invoice, but FCI finds multiple incorrectly due to the behavior of the Neural Network and how it finds Purchase Orders.
I did figure this out. The trick is to loop thru the group backwards, from last row to first in your script. I used a list, but you could just loop backward. Something like this, althought I didn't test this exact code.
Please sign in to leave a comment.