function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Laurie DrewLaurie Drew 

Pardot Sync error "This prospect has a sync error: field integrity exception:unknown(Cannot insert a converted lead)

I have the requirement to write a trigger to auto convert leads and create just a contact record from prospects that are loaded in Pardot.  My trigger works as intended when simply inserting a lead record in Salesforce.  But when prospects are Imported via Pardot and attempt to sync into Salesforce, the record sync errors out  "This prospect has a sync error: field integrity exception: unknown (Cannot insert a converted lead)". 
I watched the debug log while the sync was running and did not see that my trigger logic even fires before the Pardot sync errors out.

Can anyone help me figure out how to make this work?

 
SwethaSwetha (Salesforce Developers) 
HI Laurie,
You can reach out to Pardot support by logging a case with salesforce support for inputs on this.

More info on how to create a case:
https://help.salesforce.com/articleView?id=workcom_contact_support.htm&type=5
 
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful.
 
Thank you