We've just released InDesign 17.2.1 version which fixes this issue.
Please update to this latest version using CCD.
InDesign teamCharlotte M supported this idea ·
An error occurred while saving the commentCharlotte M commented
Same issues here too. I tried the script, but it is a little clunky to use with my templates.