Article - CS328942

Importing Preference via command line in Windchill PDMLink

Modified: 01-May-2025   


Applies To

  • Windchill PDMLink 11.1 to 13.1

Description

  • Using the following command line to import Preference fails :
    • windchill wt.preference.ImportPreferences -importfile=SitePreferences.xml -user=u -password=xxxx

  • Wanting to get a Preference via API PreferenceHelper.service.getValue but did not find the Preference, how to load a Preference from an XML file
  • Importing Preference via Import file  fails with the following Error :

(wt.preference.PreferenceExpImpRB/0) wt.ixb.util.IXBConflictException: Preference instance "/com/ptc/tml/ExternalImportFolder" already exists at the "SITE " level. The following values differ : PrefEmpImpattribute "value" : existing value: "d:\translation\translated", new value: "/sftp/valmsftptst1/inbound/SIM-Translations/Argos_Multilingual".
at wt.ixb.publicforhandlers.imp.IXBImpConflictSet.addConflictImpl(IXBImpConflictSet.java:605)
at wt.ixb.publicforhandlers.imp.IXBImpConflictSet.addConflict(IXBImpConflictSet.java:283)

This is a printer-friendly version of Article 328942 and may be out of date. For the latest version click CS328942