SAP Knowledge Base Article - Public

3538587 - Job Profile Error: Cannot Read Properties of Undefined (reading 'forEach')

Symptom

  • An error occurs in the Manage Job Profiles page when attempting to change a job role for an existing job profile.
  • The error message displayed is "Cannot read properties of undefined (reading 'forEach')".

Environment

Job Profile Builder

Reproducing the Issue

  1. Log into the instance.
  2. Open Manage Job Profiles.
  3. Select any profile.
  4. Change Job Role to the one with the exclamation mark.

5. Change again to the one without the exclamation mark.

6. Click Next.

7. The error "Cannot read properties of undefined (reading 'forEach')" appears.

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.

Cause

Current behaviour due to JPB framework.
If a job profile has already been associated to a role it should not be modified as it might cause issue with other modules. 

Resolution

Customer can use manage data to verify or troubleshoot the data 
Modifying the association is not recommended as the job profile can be used in other modules

 

See Also

[WSM-28209]

Keywords

Job Profile Builder, Manage Job Profiles, Error, Cannot read properties of undefined, reading 'forEach', Reproducible, Change Job Role, TIH  , KBA , LOD-SF-TIH-JPB , Job Profile Builder , Problem

Product

SAP SuccessFactors Employee Central all versions