Article - CS341086

Save and check-in of BOM throws String index out of range: -1 exception in FlexPLM

Modified: 01-Apr-2021   


Applies To

  • FlexPLM 12.0.0.0

Description

  • Save and check-in of BOM throws String index out of range: -1 exception.
  • Steps to Reproduce:
  1. Create a new Product from Library
  2. Navigate to Specification--> Material--> BOM--> Initiate BOM
  3. Save and check in BOM
  4. Error observed in LCSError logs
  • StackTrace:=java.lang.StringIndexOutOfBoundsException: String index out of range: -1
            at java.lang.String.substring(String.java:1967)
            at wt.fc.ObjectIdentifier.initialize(ObjectIdentifier.java:400)
            at wt.fc.ObjectIdentifier.<init>(ObjectIdentifier.java:538)
            at wt.fc.ReferenceFactory.getReference(ReferenceFactory.java:251)
            at com.lcs.wc.foundation.LCSQuery.referenceToObject(LCSQuery.java:449)
            at com.lcs.wc.foundation.LCSQuery.findObjectById_onMethodServer(LCSQuery.java:366)
            at com.lcs.wc.foundation.LCSQuery.findObjectById(LCSQuery.java:355)
            at com.lcs.wc.foundation.LCSQuery.findObjectById(LCSQuery.java:346)
This is a printer-friendly version of Article 341086 and may be out of date. For the latest version click CS341086