SAP Knowledge Base Article - Public

2721897 - Time Records Tab Error '[COE0022]Property(ies) EmployeeTime/createdByNav not included in the context.'

Symptom

Error message below is received when trying to access and view Time Records in Time Administration Workbench:

"Retrieving absence data was not successful. One of the following reasons might apply: Please review the permission settings (Manage Permission Roles, Metadata Framework) and make sure that Metadata Framework Read/Write Permission is set. Refreshing the odata cache could also help via Refresh Metadata Cache. Open Configure Object Definition and check Visibility of following property on Object Definition. It should be set at least to Read Only: [COE0022]Property(ies) EmployeeTime/createdByNav not included in the context."

Environment

  • SAP SuccessFactors Employee Central
  • SAP SuccessFactors Employee Central Time Off
  • People Profile (PP3)

Reproducing the Issue

1. Go to People Profile page of an employee then navigate to Time Management/Time Off section.

2. Click on Administer Time link to go to access Time Administration Workbench page. Time Records tab displays an error message and does not display the existing absences.

Cause

createdBy field is not visible on the Employee Time object definition.

In 1808 release, enhancement has been introduced in Time Administration Workbench to display Requester Name and not just Requester Id. Since the visibility of the createdBy field (from which the Requester column data is being read) in the Employee Time is not visible, absence details could not be displayed properly.

Resolution

Visibility of the createdBy field must be set to at least Read Only in the Employee Time object definition.

1. Go to Admin Center > Configure Object Definitions.

2. Search and select Object Definition then EmployeeTime on the search options then click on Take Action > Make Correction.

3. Click on Details link for the createdByNav field then change Visibility from 'Not Visible' to at least 'Read Only' then click Done.

4. Click Save Changes to apply the changes to the Employee Time object definition.

5. Go to Admin Center > OData API Metadata Refresh and Export.

6. Click on Refresh button then wait until the refresh has completed.

After visibility for the createdBy field has been updated and metadata has been refreshed, absences should now be properly displayed on Time Administration Workbench.

Keywords

Time Records, Workbench, Time Administration Workbench, Absence not displayed, Error, Object Definition, Employee Time, createdByNav, OData API Refresh, EmployeeTime/createdByNav not included in the context, TIM-1342 , KBA , LOD-SF-EC-TIM , Time Off , Problem

Product

SAP SuccessFactors Employee Central 1808 ; SAP SuccessFactors Employee Central 1811 ; SAP SuccessFactors Employee Central 1902