KB: "Unable to Save File .PrjPcb.CstrSchDoc" Error Caused by Invalid Characters in Net Names

Altium Designer Altium Designer
Users may encounter an "Unable to save file .PrjPcb.CstrSchDoc" error when saving Constraint Manager changes from a schematic document in Altium Designer. This typically occurs after refreshing the Constraint Manager and is most commonly caused by hidden or unsupported characters within net names or other schematic text fields. These invalid characters are often introduced when copying or importing text from external sources and are not visible within Altium Designer, leading to failures when the constraint data is processed and saved. Identifying and removing these characters using an ASCII-to-hex conversion tool, followed by retyping the affected text, resolves the issue and ensures that constraint data can be saved successfully.

Solution Details

Error appears when saving schematic constraint data

When users refresh Constraint Manager and attempt to save constraint data from the Schematic document, the following error appears: Unable to save file <ProjectName>.PrjPcb.CstrSchDoc. This prevents changes from being stored in the Constraint Manager document associated with the project.

Altium PCB Rules and Constraints Editor showing a clearance rule set to 0.254mm, with an error dialog stating “Unable to save file _PrjPcb.CstrSchDoc”.

Invalid or hidden characters disrupt data processing

This issue is typically caused by hidden or unsupported characters within schematic text fields, most commonly in the Net Name, but potentially also in designators or other text-based objects. These characters are often introduced when copying or importing text from external sources. Since the Constraint Manager relies on consistent and valid design data originating from the schematic, any malformed or unsupported text can cause parsing or save failures. These characters are not visible within Altium Designer, making them difficult to detect without external tools.

Identify affected text and clean invalid characters

  • Use an ASCII-to-hex conversion tool to detect hidden or unsupported characters.
  • Review and correct affected net names and other schematic text fields.
  • Manually retype text in Altium Designer to ensure valid character encoding.
  • Avoid copying net names or identifiers directly from external tools without verification.

Steps to detect and fix invalid net names

  1. In Altium Designer, go to Panels » SCH List.
  2. Filter for the Net Label.
  3. Copy the Net Name text.
    SCH List panel listing net labels with columns Orientation, Color, Text, Font; entries show “0 Degrees”, red color value 128, and names like VBUS_T_UP.  
  4. Paste the copied text into an ASCII-to-hex conversion tool, such as ASCII to Hex Converter.
  5. Review the output to identify any hidden or special characters.
     Text String to Hex Code Converter page with input “VBUS□_T_UP,” highlighting a non‑printable character in the string, and output showing ASCII hex values (e.g., 56 42 55 53 5F 54 5F 55 50 …). 
  6. Return to Altium Designer, delete the Net Name, and manually retype it to remove unwanted characters.
  7. Repeat this process for any other suspect text fields if the issue persists.

References

만약 문제가 있으시다면, 텍스트/이미지를 선택하신 상태에서 Ctrl + Enter를 누르셔서 저희에게 피드백을 보내주세요.