Article - CS235728

Loading data fails with "java.lang.StringIndexOutOfBoundsException: String index out of range: -1" in Windchill Bulk Migrator

Modified: 10-Oct-2022   


Applies To

  • Windchill Bulk Migrator 4.0 M020 to 12.0

Description

  • Loading data fails with "java.lang.StringIndexOutOfBoundsException: String index out of range: -1"
  • Error in cirouter.log
ERROR postprocess.WbmMigratedInfoPostprocessor          - Error reported for com.ptc.windchill.migration.wbm.transaction.MasterStagingRecord@120f5b61, objectType:WTPart, stgId:10 => String index out of range:-1 java.lang.StringIndexOutOfBoundsException: String index out of range: -1    at java.lang.String.substring(String.java:1911)   at com.ptc.core.meta.common.DataTypesExternalizer.fromExternalFloatingPointForm(DataTypesExternalizer.java:479)   at com.ptc.windchill.migration.wbm.WBMLoadAttribute2.convertAttributeValue(WBMLoadAttribute2.java:379)
 at com.ptc.windchill.migration.wbm.WBMLoadAttribute2.createAttributeInfo2(WBMLoadAttribute2.java:344)

 
For URL IBAs the stack shows:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1 com.ptc.core.meta.common.DataTypesExternalizer.fromExternalHyperlinkForm(DataTypesExternalizer.java:515
  • MethodServer log reports following error:
ERROR [RMI TCP Connection(53748)-10.236.130.185] com.ptc.windchill.migration.wbm.WBMLoadAttribute2 wcadmin - Cannot parse FloatingPointWithUnits value 0|9
2022-10-07 01:40:00,411 INFO  [RMI TCP Connection(53748)-10.236.130.185] wt.system.err wcadmin - wt.util.WTException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
2022-10-07 01:40:00,411 INFO  [RMI TCP Connection(53748)-10.236.130.185] wt.system.err wcadmin - Nested exception is: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
2022-10-07 01:40:00,411 INFO  [RMI TCP Connection(53748)-10.236.130.185] wt.system.err wcadmin -     at java.lang.String.substring(String.java:1967)
2022-10-07 01:40:00,411 INFO  [RMI TCP Connection(53748)-10.236.130.185] wt.system.err wcadmin -     at com.ptc.core.meta.common.DataTypesExternalizer.fromExternalFloatingPointWithUnitsForm(DataTypesExternalizer.java:462)
2022-10-07 01:40:00,411 INFO  [RMI TCP Connection(53748)-10.236.130.185] wt.system.err wcadmin -     at com.ptc.windchill.migration.wbm.WBMLoadAttribute2.convertAttributeValue(WBMLoadAttribute2.java:369)
2022-10-07 01:40:00,411 INFO  [RMI TCP Connection(53748)-10.236.130.185] wt.system.err wcadmin -     at com.ptc.windchill.migration.wbm.WBMLoadAttribute2.createAttributeInfo2(WBMLoadAttribute2.java:331)
2022-10-07 01:40:00,411 INFO  [RMI TCP Connection(53748)-10.236.130.185] wt.system.err wcadmin -     at com.ptc.windchill.migration.wbm.WBMLoadAttribute2.createAttribute(WBMLoadAttribute2.java:111)
2022-10-07 01:40:00,411 INFO  [RMI TCP Connection(53748)-10.236.130.185] wt.system.err wcadmin -     at com.ptc.windchill.migration.wbm.genericloader.GenericLoader.importIBAs(GenericLoader.java:536)
2022-10-07 01:40:00,411 INFO  [RMI TCP Connection(53748)-10.236.130.185] wt.system.err wcadmin -     at com.ptc.windchill.migration.wbm.genericloader.GenericLoader.loadObject(GenericLoader.java:201)
2022-10-07 01:40:00,411 INFO  [RMI TCP Connection(53748)-10.236.130.185] wt.system.err wcadmin -     at com.ptc.windchill.migration.wbm.genericloader.GenericVersionedLoader.loadIterations(GenericVersionedLoader.java:361)
This is a printer-friendly version of Article 235728 and may be out of date. For the latest version click CS235728