Showing results for 
Search instead for 
Do you mean 
Reply

Dispatcher error during dataset validation

I have configured a custom translation service with extended TaskPrep class. I get error "A named reference already exists" during source dataset validation in TaskPrep.preapareTask() method.

 

However, if the dataset validation preference (ETS.VALIDATE.<ProviderName>.<ServiceName>) is set to false, translation task is completed successfully. Any idea what the error implies here ?

 

Detailed stacktrace from DC log is given below.

 

2017-03-20 12:25:45,166 INFO  - Begin Extract of Request U3d71517ec58cfbc239fcx
2017-03-20 12:25:46,485 INFO  - Validating Request
2017-03-20 12:25:46,500 DEBUG - updateExistingVisData = false
2017-03-20 12:25:46,500 DEBUG - DataSetHelper updateExistingVisData = false
2017-03-20 12:25:46,500 DEBUG - DataSetHelper softFailureHandlingEnabled = false
2017-03-20 12:25:46,500 DEBUG - DataSetHelper DataSetOwner = DC
2017-03-20 12:25:46,501 INFO  - ------------------------------------------------------------
2017-03-20 12:25:46,501 INFO  - Entering custom TaskPrep class for: XPLM xplmsdemitrans com.teamcenter.xplmsdemitrans.TaskPrep@57fd4753
2017-03-20 12:25:46,501 INFO  - PrepareTask for XPLM SDE-DWG Export started...

2017-03-20 12:25:46,502 DEBUG -     prefName = XPLMxplmsdemitrans_ets_ds_types
2017-03-20 12:25:46,507 DEBUG -     srcDatasetType[0] = SD2Drawing
2017-03-20 12:25:46,512 DEBUG -       prefName = XPLMxplmsdemitrans_SD2Drawing_ets_nr_types
2017-03-20 12:25:46,517 DEBUG -     srcNmRefType[0] = SD2Drawing
2017-03-20 12:25:46,525 DEBUG -       prefName = XPLMxplmsdemitrans_SD2Drawing_ets_dst_ds_type
2017-03-20 12:25:46,530 DEBUG -     dstDatasetType[0] = SD2Drawing
2017-03-20 12:25:46,535 DEBUG -       prefName = XPLMxplmsdemitrans_SD2Drawing_ets_dst_nr_type
2017-03-20 12:25:46,539 DEBUG -     dstNmRefType[0] = SD2Drawing
2017-03-20 12:25:46,545 DEBUG -       prefName = XPLMxplmsdemitrans_SD2Drawing_ets_dst_relation_type
2017-03-20 12:25:46,549 DEBUG -     dstRelationType[0] = IMAN_specification
2017-03-20 12:25:46,549 DEBUG -       prefName = XPLMxplmsdemitrans_SD2Drawing_ets_dst_relation_to_src
2017-03-20 12:25:46,554 DEBUG -     dstRelationOvr[0] = false
2017-03-20 12:25:46,554 DEBUG -     setDatasetType begin... (SD2Drawing)
2017-03-20 12:25:46,555 DEBUG -       srcDatasetType[0] = SD2Drawing
2017-03-20 12:25:46,555 DEBUG -       cfgIndex = 0
2017-03-20 12:25:46,555 DEBUG -     setDatasetType complete
2017-03-20 12:25:46,577 DEBUG -     comps[0] is an SD2Drawing
2017-03-20 12:25:46,578 DEBUG -     comps[1] is an SD2PNG
2017-03-20 12:25:46,578 DEBUG -     comps[0] is an ImanFile
2017-03-20 12:25:46,579 DEBUG - A named reference already exists (SD2Drawing, 003406_A.1)
2017-03-20 12:25:46,579 ERROR - A named reference already exists (SD2Drawing, 003406_A.1)

2017-03-20 12:25:46,579 ERROR - A named reference already exists (SD2Drawing, 003406_A.1)
java.lang.Exception: A named reference already exists (SD2Drawing, 003406_A.1)
    at com.teamcenter.ets.translator.ugs.basic.TaskPrep.validateDatasetForTranslation(TaskPrep.java:212)
    at com.teamcenter.ets.translator.ugs.basic.TaskPrep.prepareTask(TaskPrep.java:109)
    at com.teamcenter.xplmsdemitrans.TaskPrep.prepareTask(TaskPrep.java:32)
    at com.teamcenter.ets.extract.Extractor.processRequest(Extractor.java:412)
    at com.teamcenter.ets.extract.Extractor.start(Extractor.java:318)
    at com.teamcenter.ets.extract.Extractor.<init>(Extractor.java:266)
    at com.teamcenter.ets.ServiceMode.startService(ServiceMode.java:67)
    at com.teamcenter.ets.ServiceMode.main(ServiceMode.java:256)
2017-03-20 12:25:46,621 DEBUG - Task U3d71517ec58cfbc239fcx updated from PREPARING to TERMINAL
2017-03-20 12:25:46,635 ERROR - A named reference already exists (SD2Drawing, 003406_A.1)
java.lang.Exception: A named reference already exists (SD2Drawing, 003406_A.1)
    at com.teamcenter.ets.translator.ugs.basic.TaskPrep.validateDatasetForTranslation(TaskPrep.java:212)
    at com.teamcenter.ets.translator.ugs.basic.TaskPrep.prepareTask(TaskPrep.java:109)
    at com.teamcenter.xplmsdemitrans.TaskPrep.prepareTask(TaskPrep.java:32)
    at com.teamcenter.ets.extract.Extractor.processRequest(Extractor.java:412)
    at com.teamcenter.ets.extract.Extractor.start(Extractor.java:318)
    at com.teamcenter.ets.extract.Extractor.<init>(Extractor.java:266)
    at com.teamcenter.ets.ServiceMode.startService(ServiceMode.java:67)
    at com.teamcenter.ets.ServiceMode.main(ServiceMode.java:256)

2 REPLIES

Re: Dispatcher error during dataset validation

Looks like SD2Drawing (003406_A.1) already exists and translator doesn't have access to overwrite. Might be permissions? Check %DISP_ROOT%\DispatcherClient\conf\Service.properties: Service.DataSetOwner - default is DC but maybe it should be CAD?

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11.0.1.mp01 | SW 2016 | TcUA 11.2.3
Evaluating:AW 3.2

Re: Dispatcher error during dataset validation

But the error is occuring during PrepareTask i.e. translation has not yet started.