SAP Knowledge Base Article - Public

2483605 - 500 Error when launching forms via OData API

Symptom

The following error is generated when launching a form using OData API

<?xml version="1.0" encoding="utf-8"?>
<d:CreatePerformanceReviewFormResponse m:type="SFOData.CreatePerformanceReviewFormResponse" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservicesxmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
   <d:formDataId m:type="Edm.Int64">-1</d:formDataId>
   <d:status>FAILURE</d:status>
   <d:statusCode m:type="Edm.Int64">500</d:statusCode>
</d:CreatePerformanceReviewFormResponse>

Environment

SAP SuccessFactors HCM Core

Reproducing the Issue

  1. enter the following OData URI in your browser:
    https://<hostname>/odata/v2/createPerformanceReviewForm?formSubjectId='<username>'&formTemplateId=<template_ID>L&sendEmail=false&enRouteCopy=false
    • where <hostname> is the API URL for your datacenter
    • where <username> is the username of the form's subject
    • where <template_ID> is the form template ID as defined in provisioning.
  2. log in with the following the following credentials:
    • username@company_ID (example: ADMIN@acerx4 -- ADMIN would be the username, acerx4 would be the company ID)
    • password

Cause

This happens when the form template does not have any hardcoded dates.

Resolution

  1. Go to Admin Center
  2. Select Form Template Settings in Performance Management
  3. Select the form template you want to launch via API
  4. Set the Start, Due, and End Dates to Fixed
  5. Specify dates for all three
    screenshot OData API form launch.png
  6. Save

Keywords

KBA , LOD-SF-PM-API , Webservices & API's , LOD-SF-INT-API , SF API & Adhoc API Framework , Problem

Product

SAP SuccessFactors HCM Core 1608 ; SAP SuccessFactors HCM Core 1611 ; SAP SuccessFactors HCM Core 1702 ; SAP SuccessFactors HCM Core 1705 ; SAP SuccessFactors HCM Core 1708