SAP Knowledge Base Article - Public

3678367 - Unable to post goal comments via API due to error: No data to save or validate

Symptom

  • Unable to post comments via API in the othersRatingComment entity within the objective section of a Performance Management form.
  • Error message encountered: "No data to save or validate for formDataId: ## for Key FormPMReviewContentDetail/formContentId=##, FormPMReviewContentDetail/formDataId=## with the index #".

Environment

  • SAP SuccessFactors Goal Management
  • SAP SuccessFactors Performance Management

Reproducing the Issue

  1. Use the API endpoint: `https://api4.successfactors.com/odata/v2/FormHeader?$format=json&$filter=formSubjectId` to fetch form data.
  2. Attempt to post comments via API in the othersRatingComment entity within the objective section.
  3. Observe the error message indicating no data to save or validate for the mentioned FormID.

Cause

  • The issue was caused by using the incorrect entity in the payload file. The entity `othersRatingComment` was used instead of `selfRatingComment`.
  • Attempting to post comment/rating to a completed form

Resolution

Users who have "Admin access to OData API" permission can access all the forms which are not in their folders, but they cannot edit it. Edit action is permitted only for the forms which are in users inbox. 

You can use the entity: selfRatingComment to update the rating and comment. 

Note: Comments and ratings cannot be posted to already completed forms. Please check the form is not in a Completed status.

See Also

Keywords

API, othersRatingComment, selfRatingComment, Performance Management, SAP SuccessFactors, OData API, payload, error message, formDataId, comment posting, admin access, No data, save, validate , KBA , LOD-SF-PM-API , Webservices, OData APIs , LOD-SF-PM-GM , Goals in PM Form , LOD-SF-GM-API , Webservices, OData APIs , Problem

Product

SAP SuccessFactors Performance & Goals all versions