Data sharing utilities
tcxml_validate
Validates the contents of a low-level TC XML formatted file. This file may be an a file exported from a Teamcenter site or constructed by a custom solution that maps legacy system data to the Teamcenter unified data model. You can use this to validate the file information prior to importing it into a Teamcenter site or to compare the Teamcenter data created by importing the file to the contents of the imported file. This utility requires a license key. For information about obtaining and setting the license key, see Support Center. Syntax tcxml_validate [-u=user-id {-p=password | -pf=password-file} -g=group] {-file=input-xml-file -action={pre | post}} [-h] Arguments -u Specifies the user ID. This is a user with Teamcenter administration privileges. Note If Security Services single sign-on (SSO) is enabled for your server, the -u and -p arguments are authenticated externally through SSO rather than being authenticated against the Teamcenter database. If you do not supply these arguments, the utility attempts to join an existing SSO session. If no session is found, you are prompted to enter a user ID and password. -p Specifies the password. This argument is mutually exclusive with the -pf argument. -pf Specifies the password file. For more information about managing password files, see Manage password files. This argument is mutually exclusive with the -p argument. -g Specifies the group associated with the user. If used without a value, the user's default group is assumed. -file Specifies the input TC XML file name. The value can be either an absolute path (full path name) or a relative path name. -action When set to pre, checks the named file for conformance to the importing sites schema, logical data model, and business constraints. The output of the utility is written to a log file that uses the naming convention input-xml-file-name_validator.log. This file uses a pipe (|) character as a field delimiter and can be imported into Microsoft Excel for easy reading. This file contains any errors and discrepancies found by the utility. Note The post action is not available at this time. Use the pre action. When set to post compares the named file contents to the data created when the file was imported to verify the objects where imported properly. -h Displays help for this utility. Environment As specified in Setting up a Teamcenter command-line environment. Files As specified in Log files produced by Teamcenter. Restrictions You must acquire a license key from Siemens Support and set the SITCONS_AUTH_KEY environment variable to this value to use this utility. Examples The following command validates a file (0001.xml) and creates a log file (0001_validator.log) containing the results of the validation. Copy tcxml_validate -u=Tc-admin-user -p=password -g=group -file=D:\temp\0001.xml -action=pre Related Topics TC XML and PLM XML Configuration for Data Import and Export Multi-Site Collaboration
Source: https://docs.sw.siemens.com/documentation/external/PL20251212545240207/en-US/tc_help/utilities_reference/avt1737253695886/tcxml_validate.html · retrieved Fri Jul 31 2026 00:00:00 GMT+0000 (Coordinated Universal Time)