Symptom
When executing an update via Integration Center on Job Requisitions, the system returns an error with the message: "templateid invalid, with index 0"
Environment
SAP SuccessFactors Recruiting Management
Cause
Possible Cause 1: This error can be caused due to the fact that the template of the Job Requisition that is being updated is currently inactive on the system.
Possible Cause 2: The same error can also occur if the .csv file contains a trailing empty line at the end of the document consisting only of commas (e.g., ,,,), with no actual data values.
Resolution
Possible Solution 1: As the template has been deactivated on the system, when attempting to execute an update, the system tries to validate the fields and metadata against the template that the Job Requisition is using. Since it is inactive, the system cannot find the template, and returns the message saying that it is invalid. There isn't a way to work around this limitation, since the template is how the system know the fields and structure from the Job Requisition metadata. The only way to make this work would be by reactivating the template running the updates and then inactivating it back.
Possible Solution 2: Open the .csv file and remove the trailing empty line at the end of the document. Ensure the last row contains valid data and that no comma-only lines remain before saving and re-uploading the file.
Keywords
template, invalid, job, requisition, update, upsert, integration, center, error, failed , KBA , LOD-SF-RCM-INT , Integration Center & Intelligent Services , Problem
SAP Knowledge Base Article - Public