It either has a pop up that says recovering four of five missing links or says that there are 4 missing links and do something about recovering them. If I click OK InDesign just stops responding and I have to force quit it. This only happens with one document, and since I can't open it anymore I can't export it in another format. I tried running InDesign in safemode, but not really sure if it has one, but either way same problem occurs.
There is a script in the linked thread that will allow to to export an IDML without opening the file first. It's worth a try.
Thank you, but I can't get the script to run using InDesign or as an individual script.