A recent blog contained an article discussing a bug in Compact where it does not correctly process file names or directories that have spaces in them.
Two immediate solutions come to mind:.
1 - If it is something you do infrequently or want to do it on a manual basis, just use DBMT. It will process .ind files correctly.
2 - If you want an automatic solution, that updates ODS levels, DAOS enables database based on template name, and can do any number of other admin tasks, take a look at Defrag.NSF+ Just set and forget.
Many other Cool feaures -> http://ab1osborne.blogspot.com/2021/03/perform-16-nsf-performance.html
Domino 12 Updating ODS -> http://ab1osborne.blogspot.com/2021/02/domino-12-updating-ods.html
Automatic DAOS and ODS upgrade on large database at customer site -> http://ab1osborne.blogspot.com/2020/06/another-customer-sees-benefits-of-our.html
For more information on Defrag.NSF+ click here