Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

The tragedy happened, the file was damaged, and the great people were turned for

Guide ,
Feb 27, 2019 Feb 27, 2019

The tragedy happened, the file was damaged, and the great people were turned for

Finally, long-term memory: must be manually backed up~

Thank you for your help~

-----------------------------------------------------

Damaged file is here Download

1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 28, 2019 Feb 28, 2019

Hi,

finally I did the following to rescue your document:

1. Did a new document with my German InDesign CC 2018.1 on Windows 10.

Just one page sized like the one that is damaged.

2. Unlocked all page items in the damaged document by scripting.

3. Duplicated the 3 master spreads to the new document by scripting. One master after the other.

( All together in one go crashed InDesign )

4. Duplicated spread 1 of the damaged document to the new document.

5. Removed the empty page one of the new document, remov

...
Translate
Enthusiast ,
Feb 27, 2019 Feb 27, 2019

I tried opening in a variety of ways, and get "file damaged" errors. What version of INDD was this created in and on what operating system?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Feb 27, 2019 Feb 27, 2019

I was actually able to get it open in CC2018 but it continually crashed my InDesign app when trying to save. The file is quite large and I'm not sure why (all images are linked...at least the ones I looked at). I think the file is damaged beyond repair.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 28, 2019 Feb 28, 2019

Hi 喜狼_edny ,

my German InDesign CC 2019 on Windows 10 refused to open your document.

However, with CC 2018.1 I could open your document without crashing InDesign.

The file is quite large, about 1.5 GByte, so something is really wrong.

I assume pixel data that was copy/pasted to the document instead of placed and linked.

What now?

Oops. I had a look into the Links panel. Scrolled down, InDesign had trouble to update data for the Links panel to show what image is placed where when I scrolled down. And then, finally, InDesign CC 2018.1 crashed.

Ok. I removed the *.idlk file and my InDesign cache folder, opened the document again and tried to export to IDML.

InDesign CC 2018.1 crashed.

Another attempt: Opened the document again and tried a Save As.

That did not work: "Database error. File is damaged ( Error Code: 3 )".

After that InDesign CC 2018.1 crashed again.

CC-2018-TryingToSaveAs-1.PNG

Since I do not have the Japanese version of InDesign installed it would make no sense trying to move pages from the damaged document to a new document…

But you could try this with your machine.

Regards,
Uwe

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 28, 2019 Feb 28, 2019

What I also tried by scripting:

Unlock all page items in the document: That worked ok.

Remove all page items in the documents. Did not work. InDesign crashed.

What I could do successfully was moving the first spread to a different document by scripting.

So maybe one could move some pages to a new document?

However when I tried to duplicate all master spreads to a new document, InDesign CC 2018.1 crashed.

Regards,
Uwe

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 28, 2019 Feb 28, 2019

Still trying to duplicate spread by spread to a new document by scripting.

So far everything goes well. Already transferred 65 pages to a new document.

The new document is already 650 MByte.

So I will stop this and check if anything can be done about the size.

EDIT: Just saved the new document to IDML.

The IDML file size is 58 MByte which is still quite large.

Opened the IDML as document and saved.

The new document saved from the IDML file is 250 MByte.

So compared with the 650 MByte of its original it means that image preview in all 65 pages is responsible for about 400 MBytes.

Regards,
Uwe

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 28, 2019 Feb 28, 2019

Hi,

finally I did the following to rescue your document:

1. Did a new document with my German InDesign CC 2018.1 on Windows 10.

Just one page sized like the one that is damaged.

2. Unlocked all page items in the damaged document by scripting.

3. Duplicated the 3 master spreads to the new document by scripting. One master after the other.

( All together in one go crashed InDesign )

4. Duplicated spread 1 of the damaged document to the new document.

5. Removed the empty page one of the new document, removed the orginal empty master spread of the new document.

6. Selected all pages of the damaged document in the Pages panel, but page 1 and moved them to the new document.

7. Saved the new document and exported to IDML.

The new document together with the IDML file can be downloaded from my Dropbox account:

Dropbox - MovedPages-0-CC-2018.zip

MovedPages-0-CC-2018.indd > 328 MB file size vs 1.5 GB of the damaged file.

MovedPages-0-CC-2018.idml > 58 MB file size

I was able to open MovedPages-0-CC-2018.indd with InDesign CC 2019.

Regards,
Uwe

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 28, 2019 Feb 28, 2019

Hi 喜狼_edny ,

some things left to say:

Since you are working with the Japanese version of InDesign, open my rescued document with InDesign CC 2018.1 and duplicate first all masters to one of your documents, also all pages. There are some features in Japanase documents that are not available with my German version, also see if all contents travels over as expected. I did not update my set of Japanese fonts and have no access to the linked images. Also note that my color management settings are different to yours.

How to prevent this mess in the future?

1. Often do backups.

2. Always work with Save As and not with Save.

3. Avoid documents of file sizes larger than 1 GB.

Better split one document into two or more if it becomes that large.

Regards,
Uwe

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Feb 28, 2019 Feb 28, 2019

Laubender, hello~

Thank you very much for your help, you are so great~

Can these two scripts be shared? My email [email removed by moderator]

2. Unlocked all page items in the damaged document by scripting.

3. Duplicated the 3 master spreads to the new document by scripting. One master after the other.

Thanks again~

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 04, 2019 Mar 04, 2019
LATEST

Hi 喜狼_edny ,

to unlock all page items of the active document:

app.activeDocument.pageItems.everyItem().locked = false;

I was very careful moving master spreads from one document ( the damaged one ) to the new document.

Did not do it with everyItem() because of the crash after I tried this. I also did no loop to move them, because I feared one of the masters is damaged and a crash will also damage the new document.

Instead I did it one by one changing the index number that starts with 0, meaning the first master spread and also saved the new document every time after successfully moving a master spread.

To begin with this the new document must be saved first.

The damaged document must be the active document.

No other document must be open but the damaged document and the new document.

Change the number of the first line of the code below after executing the script the first time.

Use 1 for the second master spread and 2 for the third one.

var indexOfMaster = 0; // Use 0 for the first master spread, 1 for the second and 2 for the third one.

app.documents[0].masterSpreads[indexOfMaster].duplicate( LocationOptions.AFTER ,app.documents[1].masterSpreads[-1]);

app.documents[1].save();

Duplicating the first spread of the damaged document to the new document:

var indexOfSpread = 0;

app.documents[0].spreads[indexOfMaster].duplicate( LocationOptions.BEFORE ,app.documents[1].spreads[0] );

app.documents[1].save();

Be very careful.

Do not have the Pages panel open when the damaged document is the active one!

This alone could crash InDesign.

More important details on this: Do not have the second master spread visible in the Pages panel when the damaged document is the active one.

I suspect that the second master spread of the damaged document contains elements that will crash InDesign when made visible in the Pages panel of this document. I see no crash in the new document after I duplicated master spread two and that master is visible in the new document! Could be that some elements are missing.

In case InDesign is crashing always remove the two *.idlk files of the two documents and trash your InDesign caches folder before starting InDesign again.

After a crash use the damaged document you provided in the rar-file container. Not the one that was opened when InDesign crashed.

Plus: You have to use InDesign CC 2018.1.

And: No guarantee this all would work on your system.

The damaged document is very unstable. If you are executing the scripts with the ExtendToolkit app (ESTK) and the ESTK becomes unresponsive after InDesign crashed or cannot connect again with InDesign CC 2018.1 best restart the ESTK and InDesign as well.

All code above written in ExtendScript ( JavaScript ).

Regards,
Uwe

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines