When submitting data to Salesforce with S4S Experience Forms, it is possible that submissions will fail if Salesforce Duplicate Rules are implemented in Salesforce. Setting the following to S4SMapping.EnableDuplicateAllowSave value to ‘true’ in configuration in the \App_Config\Modules\S4S\S4S.config file will force the record to be saved by ignoring any Salesforce Duplicate Rules.
...
There are 3 courses of action to handle this in S4S Experience Forms:
Set the S4SMapping.EnableDuplicateAllowSave configuration value to ‘true’ in configuration in \App_Config\Modules\S4S\S4S.config:
Code Block language xml <!--Overide duplicate rules to create new object --> <setting name="S4SMapping.EnableDuplicateAllowSave" value="false"/>
Configure the S4S Experience Forms error handling to email form values to enter manually into Salesforce so the duplicate rules can be applied. See the following link for more information - Error Handling
Create a custom submit action and implement code to process the Salesforce record matches that are returned in the FailedSaveResults collection. See the following code sample for more information - Working with Salesforce Duplicate Rules Submit Action Code Sample
Next Step
Congratulations, you have finished installing this option.
...