Illegal group index / group index is missing

J_Hering
J_Hering New Altair Community Member
edited November 2024 in Community Q&A
Hi,

I want to to work on several thousand text files (.txt) using the operator "Process Documents from Files".

I use lets say 300 different operators "Replace Tokens" (regex) and I want to write the results in an excel file.

After an hour or so the massage "Illegal group index - group index is missing" appears on the screen.

Do you know a solution for this problem ? Because when I process only lets say 1000 files at a time it is working.

Thank you !

Jörg
Tagged:

Answers

  • JEdward
    JEdward New Altair Community Member
    Try adding the log operator into your process.  This will help identify if any of the files are causing one of your RegEx expressions to go haywire. 
    Then to bypass the error when it occurs use the operator Handle Exception. 

    With these two you can process all the files (except for the ones that cause errors) and then have a list of files that caused issues for you to return to later.