SAP Knowledge Base Article - Public

2383225 - PQE- java.lang.ArrayIndexOutOfBoundsException (legacy question export)

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

  1. System admin > system mgmt. tools > Export data
  2. Select Record type Question (legacy)
  3. 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()

external question.jpg

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.

PQE_external.png

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

Product

SAP SuccessFactors Learning 1608 ; SAP SuccessFactors Learning 1902 ; SAP SuccessFactors Learning 1905 ; SAP SuccessFactors Learning 1908 ; SAP SuccessFactors Learning 1911 ; SAP SuccessFactors Learning 2005 ; SAP SuccessFactors Learning 2011 ; SAP SuccessFactors Learning 2105