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

Error: Cannot save the document while using the javascript

Participant ,
Jun 12, 2024 Jun 12, 2024

Copy link to clipboard

Copied

Hi Team, 

The InDesign server throws the below randomly, sometimes it is working fine, and sometimes it tells an error message.

Source: document.save(document.fullName); 

Error: Cannot save the document. It may be opened by other applications. Close applications and try again. You may also use Save As to save it into a new document.

TOPICS
Scripting

Views

77

Translate

Translate

Report

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 Beginner ,
Jun 17, 2024 Jun 17, 2024

Copy link to clipboard

Copied

LATEST
quote

Hi Team, 

The InDesign server throws the below randomly, sometimes it is working fine, and sometimes it tells an error message.

Source: document.save(document.fullName); 

Error: Cannot save the document. It may be opened by other applications. Close applications and try again. You may also use Save As to save it into a new document.


By @Balaji Murugesanmydestinycard

Hello, @Balaji Murugesanmydestinycard 

 

The error you’re encountering in InDesign Server when using JavaScript to save a document can be caused by several factors. Here are some steps you can take to troubleshoot and resolve the issue:

Check for Open Instances: Ensure that the document is not open in another instance of InDesign or any other application.
Save As: Try using the ‘Save As’ command to save the document with a different name or location, which can sometimes bypass the issue.
Network Issues: If you’re working on a network, there might be network-related issues causing the file to be locked. Try saving the file locally to see if that resolves the problem.
Scripting Workaround: Modify your script to check if the document is already open and, if so, to not attempt a save operation.

 

I hope this step is helpful to you.

 

Best Regard,
gregory109

Votes

Translate

Translate

Report

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