When I Export as a JPEG in InDesign.it shows some error message (failed to export the jpeg file: File cannot be written.disk may be locked or full )
What I can do with this?
Which version of InDesign and OS?
Does this happen always or just one file?
Can you be more specific as to the content of the InDesign file that you are trying to export as a jpeg? If you had any imported images in the file, did you place them (File>Place) which is the correct way to do it or did you possibly copy and paste image(s) which should never be done? What resolution are any images that might be in the file. What happens if you export as a pdf?
What disk are you trying to save it to? I have gotten this when I try to save or copy to a closed CD/DVD...
I'd do a test to make sure that it's not an issue with the volume (i.e. server or other drive). Also, sometimes people make the mistake of opening a file that they've exported and then try to export the file again, but InDesign is unable to overwrite the file because it's open by another program. Windows is notorious for this as sometimes just having a file visible in an Explorer window will produce this error.
For anyone encountering this issue on Mac - go to the folder location, right click "Get Info" - and add yourself to the Sharing and Permissions user list - with "Read & Write" access. I had this problem shortly after creating a new system user account and had to unlock all my folders. If the above issue isn't the problem, try exporting the file to IDML, opening that new file and save as a different INDD.
I've had reports of this in my office. It happens when saving to a SMB share. Occurence is intermittent and can occur when user is the only person on the network (i.e. before anyone else gets into the office). Only in InDesign, only when exporting as JPEG.
Attempt to export as JPEG over an existing file results in the error above. Existing file is deleted! With no file to overwrite attempting to export a second time succeeds.