You can use the PModelValidator utility to validate the modified .pmodel file format before importing it into a model database. It implements the XSD validation function and does not interact with the model database. It is recommended to use this tool as it validates the PModel file without actually performing the import. This tool identifies the errors when you make some modification as opposed to during the import.
You can validate a PModel file by performing the following:
Double-click the PModelValidator.exe.
The Public Model Validator window appears.
In the Files box, enter the location of the PModel file that you want to validate.
Click Validate.
If there are errors in the PModel file they are listed in the Validation Results box.
Click Save to save the results to a file.
Click Clear to clear the result displayed in the
You can also run the PModelValidator utility through the command line by running the following command:
PModelValidator.exe <Directory1>\<PModelFileName>.pmodel
Where, <Directory1> is the path where the PModel file is located on your system.
When you run this command, the Public Model Validator window appears with the file (for example, file1.pmodel) listed in the Files box and the validation starts automatically. You do not have to click the Validate button.
You can validate multiple PModel files at the same time by adding more than one PModel file (location of the PModel files), separated by a space, in the Files box.
For example, PModelValidator.exe <Directory1>\file1.pmodel <Directory2>\file2.pmodel