Error creating leads in Salesforce

Error creating leads in Salesforce

book

Article ID: KB0077606

calendar_today

Updated On:

Products Versions
TIBCO Cloud Integration - Connect ( Scribe ) -

Description

When trying to create leads in Salesforce using TIBCO Cloud Integration Connect Scribe, the create operations fail and the error message visible in Execution History is: 
 
Operation failed. Label: Create Lead, Name: LeadCreate, Message: Status Code: REQUIRED_FIELD_MISSING || Error: Required fields are missing: [LastName] || Fields: LastName : Error in calling Operation Create

This error is from Salesforce and indicates that there is a value missing for a required field. In this specific situation, the block that had the error had the label "Create Lead" and the field that is missing a value is "LastName".

Issue/Introduction

Using TIBCO Cloud Integration Connect Scribe to create leads in Salesforce you receive error: Status Code: REQUIRED_FIELD_MISSING || Error: Required fields are missing: [LastName] || Fields: LastName : Error in calling Operation Create

Resolution

To fix this error, you will need to map a value to the LastName field in the Lead entity.

This type of error with a required field not having a value could happen with any number of objects in Salesforce. The error message would be similar, but could involve a different object and a different field. The resolution is the same; provide a value for the required field in your map.