SAP Knowledge Base Article - Public

2815850 - Lead can be created from webservice even with erroneous data

Symptom

You are able to create a lead using webservice even when you pass random or erroneous values for the fields.

Environment

SAP Cloud for Customer

Reproducing the Issue

Let's assume you are trying to create a new Lead from SOAP UI.

  1. Enter some random value for one of the field in the XML payload. Say Sales unit 123 (where 123 is some random value)
  2. Execute the payload to create a Lead 111 (where 111 is the Lead ID)
  3. Open C4C , Navigate to Sales Tab Leads View
  4. Open the Lead 111
  5. You will see that the Lead has been created and the  Sales Unit field has the random value.

 

Cause

This is an expected behavior of the system. It is the concept to be able to store  erroneous data as well during lead creation from Webservice . In that case the Lead gets inconsistent,When you open an inconsistent Lead, the error message is shown and the user can correct it. This behavior is same for other objects, e.g. Opportunity as well.

Resolution

If the you want to forbid saving of inconsistent Leads, the you have the following possibilities:

1.Using first CheckMaintainBundle to simulate the modify. If there is no error, perform MaintainBundle
2.You can implement via PDI a check is save to forbid saving of inconsistent Leads.

Keywords

Lead , Webservice , Erroneous data , KBA , LOD-CRM-LM , Lead Management , Problem

Product

SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions