I just converted a lead to a contact in Salesforce, and then the record triggered a score update:
This is despite having a criteria on our score triggers (which are global, not campaign specific) to exclude the "Lead merge" reason.
Funny enough as I write this I've noticed that the Reason value in this latest "Merge" has a different string to the existing exclude criteria, although I was sure that the exclude string I had in place was the correct one to exclude Merges.
Can anyone confirm that this new reason value "Merge (leaddb)" is the value for a conversion, rather than a merge?
I feel we're deep in the Marketo dark arts here, so please shed some light!!
Thanks to all in advance.
Sean
Solved! Go to Solution.
Hi Matt,
I've been holding off bothering to reply to this thread. Yes, I found a solution. After my ticket spent months in Marketo's top tier support channels, they didn't have a solution. Well, not entirely true. They did, but it was not the actual solution. Here was there response.
-----------------------------------------------------
Hi Sean,
Thank you for your patience with this one. Our Engineering team looked into this case and found logs for the affected records. One such is below:
Logs show operations of data pull:
Lead Pull conversion SOQL:
Mar 28 17:42:31
Contact Record created in sfdc at:
sfdc_created_date: 2019-03-28 17:42:32
Contact pull-updates SOQL:
Mar 28 17:42:46
During a Lead to Contact conversion. When the standard conversion process is performed in SFDC, a new contact is created in SFDC and the data mapped between lead and contact is used to populate the fields of the contact in SFDC. The lead in turn becomes a "shell" of a lead. This conversion is pulled during the Pull Conversion operation in the sync. New contact records or contact updates are both pulled in the Contact Pull-Updates operation in the sync.
The lead was converted to a contact during the short window of time between the conversions were pulled and the start of the updates being pulled. The new contact was pulled over to Marketo by the pull-updates operation rather than the pull-conversions. Hence the creation of the new contact in Marketo - a duplicate. During the coming sync cycle after that, the pull-conversions operation merged the duplicates to complete the conversion.
Our engineers have confirmed that when this scenario occurs (a conversion happened in that small time gap), this behavior is expected to occur.
-----------------------------------------------------
See, I already knew this. That the API calls run in a specific order (there is a post on this somewhere) and that these got out of sync. But why? There is no answer to that, nor why my records caused this to occur dozens of times.
Well. I can now report that in our case, this was not due to RingLead. It was actually caused through the combination of having a lead validation rule in SF, plus a small setting enabled in SF.
In SF, navigate to Setup then search for "Lead Settings". Locate the "Require Validation for Converted Leads" checkbox and Disable this setting. This setting was causing field validation and workflows to execute on conversion, and this was the cause for breaking the sync API execution timing.
Prior to figuring this out, we also setup a great Marketo program that "captured" these irregular merge records. I highly recommend creating this as an operational program so that you stamp these errors as they occur so that you can clean them up.
Basically, the activity log registers two "Person is Created" records when this bug occurs. So you can capture that and add the record to a static list. My list currently has 18 people in it.
I wanted to let support try and come up with this solution or at least tell us to check that setting in SF, but unfortunately they didn't have many cases of this error occurring and never once pointed to this SF setting as a possible cause of the issue.
I feel pretty confident that if you disable that setting in SF, you two will see these issues cease to occur.
Funny thing that having that program to stamp them in place, one person (like 1 week ago) triggered the issue to reoccur. But I guess that's acceptable and is what you would consider "regular" occurrence of this de-sync timing issue.
I hope that this information helps others now and in the future. I lost maybe 40 hours to this issue.
Finally, shout out to Veronica Holmes, it was an issue in Salesforce Nice work haha.
Cheers,
Sean
@Pamela_Hudadof2 I have been working with the Marketo Product team on this for the last year almost on this issue. I believe a fix for this went out on the 14th across all Marketo instances. I have been eager to see if this issue persists for any other customers. I have seen this issue fixed in our instance of Marketo. Let me know if you see any changes on your side!
Sean,
This is amazing! Thanks for sharing. How did you figure out that the "Require Validation for Converted Leads" setting had to be disabled to fix the issue?
I think I just spent a lot of time testing different things. Veronica kept pointing out that it must be a "non standard conversion", but I had no specific Apex or Workflows hooked on to conversions. But when I found this setting which related specifically to conversion and what is executed on it, I just tested disabling it and found it to solve the issue.
The big question is though..... Did this solution work for you?
Hi Sean,
I can't help you with the "reason" but I can shed some insight on the activity log screenshot you provided. Sometimes when you convert a lead to a contact in SFDC, Marketo sees the contact before it sees the conversion and, as a result, it creates a new person (the contact). Then later it realizes it wasn't a new contact but a conversion, so it merges the records and adds a "convert person" event. This is super frustrating, I know from painful experience. Marketo has told me that their engineering is aware of this and working on coming up with a way to fix it. Depending upon how your sync is configured, Marketo may be able to make some adjustments for you to lessen the probability that it will occur. There's a post somewhere in which I participated and gave lots of detail on this. I'm going to look for it and add a link for you here.
Denise
This sounds exactly like what happened!!!! Thanks so much for taking the time to respond. I'll look into it more.
Grégoire Michel you might be my only hope to answer this?
Actually Denise Greenberg is also deep inside such things.
Try updating the Reason to Merge (leaddb) and then repeat the process.
Hi Sant Singh Rathaur, Thanks for taking the time to respond. Yes, I agree that is an obvious test to conduct, however I am looking for expert community knowledge of these "reason" values and what exact situation they occur in.
E.g. the reason "Merge lead" occurs when two people are merged. But questions remain.
Are there any other scenarios that "Merge lead" occurs?
Under what exact scenarios does the reason "Merge (leaddb)" occur?
What other reason values exist for other scenarios?
Is this documented ANYWHERE!
Like always, self implementation of Marketo is near impossible (despite our achievements) due to these kinds of challenges.
If anyone can help add to this thread, any and all knowledge related to this please chime in!!
Thanks again in advance.
Sean