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/dataservices" xmlns: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
- 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.
- 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
- Go to Admin Center
- Select Form Template Settings in Performance Management
- Select the form template you want to launch via API
- Set the Start, Due, and End Dates to Fixed
- Specify dates for all three
- Save
Keywords
KBA , LOD-SF-PM-API , Webservices, OData APIs , LOD-SF-INT-API , API & Adhoc API Framework , Problem