Unknown cause of lead merge (leaddb) - Expert knowledge required! | Community
Skip to main content
Sean_Richards
Level 4
March 26, 2019
Solved

Unknown cause of lead merge (leaddb) - Expert knowledge required!

  • March 26, 2019
  • 4 replies
  • 10532 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sean_Richards

Sean, were you able to find the solution to this? I'm seeing the same leaddb issues happening on my end. We're using Leandata to run our conversion, but are transitioning to Ringlead soon. I thought Ringlead would be the fix, but am distressed that you're having issues with Ringlead conversions as well. 


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

4 replies

Sant_Singh_Rath
Adobe Champion
Adobe Champion
March 26, 2019

Try updating the Reason to Merge (leaddb) and then repeat the process.

~ Sant Singh Rathaur
Sean_Richards
Level 4
March 26, 2019

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

Sean Richards
Steven_Vanderb3
Adobe Employee
Adobe Employee
March 26, 2019

Did the record's activity log record a Merge activity? When two records are merged in Salesforce Marketo will sum their scores together so this really looks like a merge rather than a conversion...

Sean_Richards
Level 4
March 26, 2019

Hi Steven,

That's what I'm trying to say. The activity logged a "Convert Person", AND through that conversion, it appears that it also Merged a two records. So you, this makes sense that it then added the scores together, and also re-triggered the score campaigns, as the exclude reason didn't match the string we had in place.

However, I am unsure as to why the Convert person, triggered a merge. The two records had different emails (even though they were the same person), so surely Marketo would not have auto-merged them. The Lead should simply have become a Contact under the Account and no merge should have been triggered.

Here is the detail from the Activity from the Convert:

Assign To:

Sean Richards

SFDC Type:

Contact

Person ID:

1167198

Here is the detail from the Activity from the merge (I've remove some of the details):

Merge IDs:

1117921

Merge Fields:

Account Owner Email Address: sean.richards@alaress.com.au
Account Owner First Name: Sean
Account Owner Last Name: Richards
Accounts: 1
Billing Country: Australia
Billing Country Code: AU
Billing State: Queensland
Billing State/Province Code: QLD
Global Region (A): Australia and New Zealand
Main Phone: (07) 5508 2929
Open New Business Opportunities: 0
Organisation Type: Organisation
Record Type ID: 01290000001IbuEAAS
SFDC Account Type: Partner
SFDC Campaigns: Lead Lifecycle Processing; WE - [18.09] Schoolbox + Digistorm - An Integrated Mobile Experience; NSE:MU [19.02] [Meetup]: SBMu19
Anonymous IP: 61.69.104.170
Behavior Score: 122
Unsubscribed Cause: System flow action for 'Change Data Value' triggered Mon, 27 Aug 2018 17:28:33 -0500
Lead Score: 268
Id: 1167198

Master Updated:

true

Merged in Sales:

false

Merge Source:

leaddb

Person ID:

1167198

OK, so as I understand it, the scoring campaigns didn't get triggered, and that the score's were added together through the merge.

But why would a merge have occurred through the convert?

Sean Richards
Veronica_Holme4
Level 9
March 26, 2019

You're 100% sure that when you converted the lead in Salesforce you didn't convert INTO an existing Contact in the Account? That's a merge.

Jay_Jiang
Level 10
March 27, 2019

Quite possibly Marketo changed the default reasons at one point in time. But yes, some in deep dive documentation into lead merge would have been nice.

Sean_Richards
Level 4
March 27, 2019

There is more information @Justin Norris added here, which also confirms the issue: https://nation.marketo.com/message/200295-re-converting-lead-to-a-contact#comment-200295

Disabling the sync is not a solution however, as I tested the conversion being done from RingLead in batch, Ringlead, single records one by one, and Manual conversion within SF and was able to trigger the issue in all three scenarios.

Sean Richards