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
- Log into the instance.
- Open Manage Job Profiles.
- Select any profile.
- 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
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