Symptom
When opening the job history of a given employee the following error appears in a pop up window "An application error occurred. Please try again later, or notify support if the issue keeps occurring."
Alternatively you may recieve the following error:
errorId=null, timestamp=null, errorMessage=Cannot read property '0' of undefined, errorName=TypeError,
Environment
Employee Central - Job History
Reproducing the Issue
-
Go to an employee's record
- Navigate to Job information
- Click the History icon
Error occurs. (No fingerprint or error ID is displayed)
Cause
RBP - Role Based permissions
- You need to permission jobInfo_seq-number field under Job Information
- If you have the Alternative Cost Center feature enabled, you will also require permissions to cost-center field.
Resolution
-
open Admin Center
- Click Set User Permissions
- Manage Permission Role
- Select the permission role of the person trying to view the history of the employee
- Click Permission... under Permission settings
- Click on employee Central effective dated Entities
- scroll down on your right to Job Information section
- Check for RBP for Edit Link, Job Information Actions
- Provide permissions to jobInfo_seq-number and/or cost-center
Make sure you permission jobInfo_seq-number to be able to see the sequence of Job History records
Keywords
error, job history, application error, sequence number, seq-number, cost center, permissions, cost-center, alternative cost center, alternative cost distribution, permissions, missing permissions, errorId=null, timestamp=null, errorMessage=Cannot read property '0' of undefined, errorId=null, timestamp=null, errorMessage=Cannot read property '0' of undefined, Cannot read property '0' of undefined, errorName=TypeError , KBA , LOD-SF-EC-RBP , Roles & Permissions (EC Core only) , Problem