SAP Knowledge Base Article - Public

3118137 - Error : Party Prospect Party missing::Please enter a party with role Account.::Please enter an account

Symptom

You are getting an error, "Party Prospect Party missing::Please enter a party with role Account.::Please enter an account" While creating lead using Odata.

Environment

SAP Cloud for Customer

Reproducing the Issue

  • Go to Administrator -> Odata Service Explorer
  • Choose c4codataapi and then click Test
  • In the next screen, Choose Lead Collection from the Entity sets
  • Select the method as POST
  • In the tab Form, Provide value for Name and then execute the Odata Call
  • You will get the error, Party Prospect Party missing::Please enter a party with role Account.::Please enter an account

Cause

This is because, Company is a mandatory field for creating Lead.

Resolution

  • In the Form, Add value for the field Company and then execute the Odata Call
  • JSON Payload :

{
"Name": "XXXX",
"Company": "YYYY"
}

  • Where XXXX  and YYYY are values for the field.

Keywords

Lead Collection, Odata, Party, Company , KBA , LOD-CRM-INT-API , OData API (C4C Only) , Problem

Product

SAP Cloud for Customer add-ins all versions