Configuration utilities > Teamcenter reporting
import_export_reports
Allows report definitions, their dependent data (for example, saved query definitions and property set definitions), and their associated style sheets to be exported from one Teamcenter server and imported to another Teamcenter server. Syntax import_export_reports {-import | -export | -execute} [-u=user-id -p=password | -pf=password-file -g=group] -stageDir=directory -reportId=report-identifier -overwrite [-reportFile=xml-output-file] [-f=xml-file] [-h] Arguments -import Specifies the report definitions are to be imported to the Teamcenter server. -export Specifies the report definitions are to be exported from the Teamcenter server. -execute Generates a report in the command line. This argument requires the -f argument. -u Specifies the user ID. This is generally a user with 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. -stageDir Specifies the fully qualified name of the directory that contains all of the report definitions and its associated data in predefined format. Note If you use -reportId to import a single report, you must place the report definition file and resource file in a folder with the same name as the report ID and place it in the directory and folder specified by the -stageDir argument. -reportId Specifies the ID of the report definition. -overwrite Overwrites the existing report definitions during import. If you want to modify the closure rule, change the transfer mode name and the closure rule name in the respective XML file. Note Use this argument with caution. If you have done any customizations to the commercial-off-the-shelf data (COTS) templates, that data is overwritten by this argument. -reportFile Specifies the name of the XML containing the list of report templates. Note If you provide both -reportId and -reportFile, -reportId is used to import a single report and -reportFile is ignored. -f Specifies the name of an XML file containing report parameters. This argument is used with the -execute arguments. -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 None. Examples The following command exports report definitions and associated data (style sheets) to the file system pointed by the -stageDir argument: Copy import_export_reports -export -u=
Source: https://docs.sw.siemens.com/documentation/external/PL20251212545240207/en-US/tc_help/utilities_reference/coz1737253683897/zdq1737253686716/import_export_reports.html · retrieved Fri Jul 31 2026 00:00:00 GMT+0000 (Coordinated Universal Time)