Adjust error message when exporting to a file open in another app
I needed to overwrite a file when exporting it. However, I spent approximately 20 minutes trying to figure out why I kept getting the error "There was a problem exporting your asset. We'd love to understand what went wrong so that we can fix this for you. Please tell us about the problem here."
I finally realized that this was because I was overwriting an opened file (I was viewing it in Adobe reader). As a software engineer to a team of software engineers, I highly recommend making the errors much more specific to the issue.
sendError("Please close the file.")
Vlad has an additional question in the comments.
And by the way, I recreated this error today on a much newer Windows machine. So I've experienced this issue on two separate Windows laptops over the course of more than a year.
Oh gosh, I created this ticket over a year ago! I have no idea what project this was. But I tried recreating the problem with all file types on XD, and I got the attached error. I got it after exporting an artboard as a single PDF file, opening it in Adobe Acrobat Pro DC (version 19.012.20040), then updating the artboard in XD and attempting to export it again as a PDF. I couldn't find the version for XD, but I made sure it was the most up-to-date one.
AdminVlad G. (Software Engineer, Adobe) commented
Can you please tell us what application are you using and what file type are you exporting?
When I was saying that this should display a different message I tested with .pdf and Acrobat.
Sorry, I never saw Vlad’s comment until Elaine’s response! It’s a Windows machine.
For the record, I only saw that I had a response because I got an email, saying Elaine responded. Had no idea about the comment (whoops).
Vlad G. commented
Thanks for your feedback!
We should be able to warn the user of not being able to write a file at export on Windows - otherwise it's a bug and we will investigate.
Are you using Windows or macOS?