29.1. Teamcenter - UG-NX: HandleError in TC_HookService

Operation:

  1. Start and login to Teamcenter

  2. Start NX from Teamcenter

  3. Start PARTdataManager from NX

  4. Select a part and CAD-export

After 4, the following error occurs

Error:Failed to set the release status for the Teamcenter Item (<TC_ItemID>=000464).
Failed to retrieve the Teamcenter objects.
Cancel document creation

(The Item is created in Teamcenter, however the item revision does not have "released" status.)

Solution:

The error.log gives a hint on line 1496.

2014-09-03 17:58:41,492 [HIGHCNT=107674087023] [PROC=wscripthost.exe]:[PID=0x00000d50]:
[thread=0x00000b38] ERROR cadenas.scripting.vbs.teamcenter.public TcDatamanagementServiceC::
getItemById \\WIN-J1RQ2BV2VSH\cadenas\setup\scripts\plm\autoexec\teamcenter_public_api.vbb
(2203) - GetItemById on DatamanagementService failed. Error: <prx_Teamcenter_Services_Query
_SavedqueryService::getSavedQuery> in <Couldn't find the saved query <CNS_get_Item> !> !

The CNS_get_Item is a nex xml query, which needs certain XML files. If these files are missing some HookServices cannot be used on the Teamcenter Server.

The xmls or better Query files are stored here:

C:\cadenas\partsolutions\software\iface\plm\teamcenter\saved_queries

You can import them with the Teamcenter Query Editor.