Resolving the "Object is Not Valid and Cannot be Saved" Error

Overview

You may get this error when you try to save or upload a document with a name that contains any of these special non-alphanumeric characters.

Error: Csla.Validation.ValidationException: Object is not valid and cannot be saved
The value 'Name' does not allow the following characters: \ / * ? : " < > | % +

This error occurs because a file name with one of the non-supported characters is being saved to SmartVault.

Resolving This Error

Special characters can often cause problems with file handling systems, either when you cross from one type of operating system to another (e.g., Mac to PC), or when you use various protocols (e.g., WebDav, HTML). It is generally best to avoid their use if possible. Even though the file may save fine in one place, it's file name may cause an issue when transferred elsewhere.
While some characters like "-" are almost always acceptable, it's a good practice to consider if your special characters are causing your issues whenever you run into a problem opening or moving files.

 

...