Cancel
Showing results for 
Search instead for 
Did you mean: 

SWIM integration issues when building part to TC

Experimenter
Experimenter

Hi Everyone,


We are trying to load a part from the solidworks integration into Teamcenter and we recieve the following error when doing so:

 

"Creation of the new model and Item ID failed. A marshalling error occurred while processing XML for Core-2006-03-DataManagement.getProperties. Failed to parse the XML document

An invalid XML character (Unicode:0x1a) was found in the value of the attribute "value" and element is "ns0:values".

 

Here is the log error:

DEBUG (   94.638): SOAExceptionHandler handling exception: A marshalling error occurred while processing XML for Core-2006-03-DataManagement.getProperties.
Failed to parse the XML document.
An invalid XML character (Unicode: 0x1a) was found in the value of attribute "value" and element is "ns0:values".
DEBUG (   94.639): com.teamcenter.schemas.soa._2006_03.exceptions.ProtocolException: A marshalling error occurred while processing XML for Core-2006-03-DataManagement.getProperties.
Failed to parse the XML document.
An invalid XML character (Unicode: 0x1a) was found in the value of attribute "value" and element is "ns0:values".
	at com.teamcenter.soa.internal.client.XmlRestSender.invoke2(Unknown Source)
	at com.teamcenter.services.strong.core.DataManagementRestBindingStub.getProperties(Unknown Source)
	at com.transcendata.cadpdm.soa.SOAModelManagerHelper.loadLovs(SOAModelManagerHelper.java:468)
	at com.transcendata.cadpdm.soa.PropertyDescriptorHelper.loadLovs(PropertyDescriptorHelper.java:1033)
	at com.transcendata.cadpdm.soa.gui.SOAPropertiesPanel$RequiredPropertiesPanel.getSystemPropertyComponent(SOAPropertiesPanel.java:4156)
	at com.transcendata.cadpdm.soa.gui.SOAPropertiesPanel$RequiredPropertiesPanel.buildRequiredPanel(SOAPropertiesPanel.java:3410)
	at com.transcendata.cadpdm.soa.gui.SOAPropertiesPanel$RequiredPropertiesPanel.<init>(SOAPropertiesPanel.java:2954)
	at com.transcendata.cadpdm.soa.gui.SOAPropertiesPanel.buildPanel(SOAPropertiesPanel.java:640)
	at com.transcendata.cadpdm.soa.gui.SOAPropertiesPanel.<init>(SOAPropertiesPanel.java:613)
	at com.transcendata.swimsoa.gui.RegisterNewDialog.createDialog(RegisterNewDialog.java:401)
	at com.transcendata.swimsoa.gui.RegisterNewDialog.<init>(RegisterNewDialog.java:356)
	at com.transcendata.swimsoa.gui.RegisterNewDialog.createDialog(RegisterNewDialog.java:644)
	at com.transcendata.swimsoa.gui.RegisterNewDialog.display(RegisterNewDialog.java:609)
	at com.transcendata.swimsoa.Operations.registerNew(Operations.java:8952)
	at com.transcendata.swimsoa.Operations.registerNew(Operations.java:8739)
	at com.transcendata.swimsoa.MainSwim$28.execute(MainSwim.java:438)
	at com.transcendata.cadpdm.cs.CSOperations.processCIC(CSOperations.java:87)
	at com.transcendata.cadpdm.cs.CSHelper.processEvents(CSHelper.java:294)
	at com.transcendata.swimsoa.MainSwim.main(MainSwim.java:571)
DEBUG (   94.639): OperationMonitor disabled
DEBUG (   94.641): OperationMonitor disabled
ERROR (   94.641): Creation of new model and Item ID failed  A marshalling error occurred while processing XML for Core-2006-03-DataManagement.getProperties.
Failed to parse the XML document.
An invalid XML character (Unicode: 0x1a) was found in the value of attribute "value" and element is "ns0:values".
ERROR (   94.641): Creation of new model and Item ID failed  A marshalling error occurred while processing XML for Core-2006-03-DataManagement.getProperties.
Failed to parse the XML document.
An invalid XML character (Unicode: 0x1a) was found in the value of attribute "value" and element is "ns0:values".

ADDITIONAL ERRORS
A marshalling error occurred while processing XML for Core-2006-03-DataManagement.getProperties.
Failed to parse the XML document.
An invalid XML character (Unicode: 0x1a) was found in the value of attribute "value" and element is "ns0:values".

ORIGINAL EXCEPTION DETAILS
com.teamcenter.schemas.soa._2006_03.exceptions.ProtocolException: A marshalling error occurred while processing XML for Core-2006-03-DataManagement.getProperties.
Failed to parse the XML document.
An invalid XML character (Unicode: 0x1a) was found in the value of attribute "value" and element is "ns0:values".
	at com.teamcenter.soa.internal.client.XmlRestSender.invoke2(Unknown Source)
	at com.teamcenter.services.strong.core.DataManagementRestBindingStub.getProperties(Unknown Source)
	at com.transcendata.cadpdm.soa.SOAModelManagerHelper.loadLovs(SOAModelManagerHelper.java:468)
	at com.transcendata.cadpdm.soa.PropertyDescriptorHelper.loadLovs(PropertyDescriptorHelper.java:1033)
	at com.transcendata.cadpdm.soa.gui.SOAPropertiesPanel$RequiredPropertiesPanel.getSystemPropertyComponent(SOAPropertiesPanel.java:4156)
	at com.transcendata.cadpdm.soa.gui.SOAPropertiesPanel$RequiredPropertiesPanel.buildRequiredPanel(SOAPropertiesPanel.java:3410)
	at com.transcendata.cadpdm.soa.gui.SOAPropertiesPanel$RequiredPropertiesPanel.<init>(SOAPropertiesPanel.java:2954)
	at com.transcendata.cadpdm.soa.gui.SOAPropertiesPanel.buildPanel(SOAPropertiesPanel.java:640)
	at com.transcendata.cadpdm.soa.gui.SOAPropertiesPanel.<init>(SOAPropertiesPanel.java:613)
	at com.transcendata.swimsoa.gui.RegisterNewDialog.createDialog(RegisterNewDialog.java:401)
	at com.transcendata.swimsoa.gui.RegisterNewDialog.<init>(RegisterNewDialog.java:356)
	at com.transcendata.swimsoa.gui.RegisterNewDialog.createDialog(RegisterNewDialog.java:644)
	at com.transcendata.swimsoa.gui.RegisterNewDialog.display(RegisterNewDialog.java:609)
	at com.transcendata.swimsoa.Operations.registerNew(Operations.java:8952)
	at com.transcendata.swimsoa.Operations.registerNew(Operations.java:8739)
	at com.transcendata.swimsoa.MainSwim$28.execute(MainSwim.java:438)
	at com.transcendata.cadpdm.cs.CSOperations.processCIC(CSOperations.java:87)
	at com.transcendata.cadpdm.cs.CSHelper.processEvents(CSHelper.java:294)
	at com.transcendata.swimsoa.MainSwim.main(MainSwim.java:571)

FINAL EXCEPTION DETAILS
com.transcendata.cadpdm.soa.SOARuntimeException: A marshalling error occurred while processing XML for Core-2006-03-DataManagement.getProperties.
Failed to parse the XML document.
An invalid XML character (Unicode: 0x1a) was found in the value of attribute "value" and element is "ns0:values".
	at com.transcendata.cadpdm.soa.SOAExceptionHandler.handleException(SOAExceptionHandler.java:46)
	at com.teamcenter.soa.internal.client.XmlRestSender.invoke2(Unknown Source)
	at com.teamcenter.services.strong.core.DataManagementRestBindingStub.getProperties(Unknown Source)
	at com.transcendata.cadpdm.soa.SOAModelManagerHelper.loadLovs(SOAModelManagerHelper.java:468)
	at com.transcendata.cadpdm.soa.PropertyDescriptorHelper.loadLovs(PropertyDescriptorHelper.java:1033)
	at com.transcendata.cadpdm.soa.gui.SOAPropertiesPanel$RequiredPropertiesPanel.getSystemPropertyComponent(SOAPropertiesPanel.java:4156)
	at com.transcendata.cadpdm.soa.gui.SOAPropertiesPanel$RequiredPropertiesPanel.buildRequiredPanel(SOAPropertiesPanel.java:3410)
	at com.transcendata.cadpdm.soa.gui.SOAPropertiesPanel$RequiredPropertiesPanel.<init>(SOAPropertiesPanel.java:2954)
	at com.transcendata.cadpdm.soa.gui.SOAPropertiesPanel.buildPanel(SOAPropertiesPanel.java:640)
	at com.transcendata.cadpdm.soa.gui.SOAPropertiesPanel.<init>(SOAPropertiesPanel.java:613)
	at com.transcendata.swimsoa.gui.RegisterNewDialog.createDialog(RegisterNewDialog.java:401)
	at com.transcendata.swimsoa.gui.RegisterNewDialog.<init>(RegisterNewDialog.java:356)
	at com.transcendata.swimsoa.gui.RegisterNewDialog.createDialog(RegisterNewDialog.java:644)
	at com.transcendata.swimsoa.gui.RegisterNewDialog.display(RegisterNewDialog.java:609)
	at com.transcendata.swimsoa.Operations.registerNew(Operations.java:8952)
	at com.transcendata.swimsoa.Operations.registerNew(Operations.java:8739)
	at com.transcendata.swimsoa.MainSwim$28.execute(MainSwim.java:438)
	at com.transcendata.cadpdm.cs.CSOperations.processCIC(CSOperations.java:87)
	at com.transcendata.cadpdm.cs.CSHelper.processEvents(CSHelper.java:294)
	at com.transcendata.swimsoa.MainSwim.main(MainSwim.java:571)


Has anyone gone through this problem?
Thanks in advance!

KK

2 REPLIES

Re: SWIM integration issues when building part to TC

Experimenter
Experimenter

This page may have some clues:

https://stackoverflow.com/questions/17024436/what-is-the-unicode-u001a-character-aka-0x1a

 

[The Unicode U+001A Character? Aka 0x1A]... "That's the Ctrl+Z control code. It's kinda special in Windows, which inherited it from DOS which inherited it from CP/M. Its legacy use was as an end-of-text marker, similar to how Ctrl+D is used in Unix."

Re: SWIM integration issues when building part to TC

Solution Partner Honored Contributor Solution Partner Honored Contributor
Solution Partner Honored Contributor
Some ASCII control codes are not compliant with XML requirements. A substitute character can be established by setting the environment variable "POM_STRIP_CTRL_CHARS" to a number of the ASCII code for the replacement. Default is 32 (space). Add this to tc_profilevars.bat and try again:
set POM_STRIP_CTRL_CHARS=32

Or fix the name/description so that it doesn't use the control code being interpreted by XML.

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11 | SW 2016 | Creo 4 | TcUA 11.4
Evaluating: AW 3.4