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.
- Enter some random value for one of the field in the XML payload. Say Sales unit 123 (where 123 is some random value)
- Execute the payload to create a Lead 111 (where 111 is the Lead ID)
- Open C4C , Navigate to Sales Tab Leads View
- Open the Lead 111
- 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