Symptom
Customer may be migrating their legacy question data and noticed that some questions are exported from LMS with the following error in the locale id column:
java.lang.ArrayIndexOutOfBoundsException: while trying to load from index 0 of an object array with length 0, returned from com.successfactors.lms.eqb.service.question.impl.export.legacy.ChoiceXMLObject.getResource()
"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."
Environment
SAP SuccessFactors Learning
Reproducing the Issue
- System admin > system mgmt. tools > Export data
- Select Record type Question (legacy)
- In the exported file check the Locale ID columm and instead of the locale you will see the error message:
java.lang.ArrayIndexOutOfBoundsException: while trying to load from index 0 of an object array with length 0, returned from com.successfactors.lms.eqb.service.question.impl.export.legacy.ChoiceXMLObject.getResource()
Cause
The question is of type external.
You can verify that a question is external in the legacy PQE UI, there will be a URL populated.
Resolution
- External questions are not supported with Assessments.
- Please remove them from the legacy question export file before you import question data back into the Question Library.
Keywords
SAP, SF, Learning, PQE, plateau question editor, migration, assessment, locale, external java.lang.ArrayIndexOutOfBoundsException: while trying to load from index 0 of an object array with length 0, returned from com.successfactors.lms.eqb.service.question.impl.export.legacy.ChoiceXMLObject.getResource() , KBA , LOD-SF-LMS-LEG , Legacy Learning Issues , LOD-SF-LMS-IMP , Import Data Tool , Problem