SOLIDWORKS PDM Error: “Could not create folder. Cause: The file/key name was invalid.”

Article by Joe Medeiros, CSWE updated January 26, 2021


This article is part of a series for troubleshooting common, and perhaps not so common, SOLIDWORKS PDM error messages.

SOLIDWORKS PDM ERROR: “Could not create folder. Cause: The file/key name was invalid.”

This reported error can occur when executing a SOLIDWORKS PDM Template. The error is caused when a folder/file name being defined in the SOLIDWORKS PDM Template contains an invalid character. Later versions of SOLIDWORKS PDM will capture the invalid character, and prevent it from being used in the folder/file name

SOLIDWORKS PDM Invalid Character

Invalid Character

If the Template was created in an earlier version of SOLIDWORKS PDM, an invalid character may exist in the folder/file name defined in the PDM Template. In this situation, a user will receive the message “Could not create folder. Cause: The file/key name was invalid.”  when executing the PDM Template. Editing the PDM Template and removing the invalid character will resolve this issue.

Invalid characters for folder/file names include:

" (Double quote)
/ \ (Forward / Back slash)
: (Colon)
? (Question mark)
* (Asterisk)
< > (Smaller / Bigger than)
| (Pipe)
and any character created when pressing the CTRL key

This error message can also occur if the folder/file name is empty.

Related Links

Want to do more with SOLIDWORKS PDM?

Our Certified SOLIDWORKS PDM Experts can help you to:

Joe Medeiros, CSWE

Joe Medeiros is a SOLIDWORKS and PDM Certified Expert. He has been helping SOLIDWORKS users with training, mentoring and implementations since 1998. He combines industry experience with a thorough understanding of SOLIDWORKS products to assist customers in being successful. He shares his experience and expertise through blogs; one of which has been incorporated into the SOLIDWORKS Essentials training manual.