Unable to set Primary Billing contact - duplicate email error

I’m trying to set a contact as primary billing on a customer contact, but Epicor errored out with “Duplicate WebUser/E-mail Address combination found”. That same email is used on another shipto contact for the same customer. When I delete that email, I get the same error, but this time hundreds of contacts are in the error message (all of our old contacts without emails).

I guess Epicor at some point started requiring an email address on a contact.

I tried to change the shipto contact percon to the main one, but same error. Epicor seems to be tied up in knots when the same email has been used, and isn’t letting me fix it. We’re seeing this a lot with 2024.2, it wasn’t an issue before.

Suggestions? I guess I can enter unique dummy emails every time, but that’s bad data in the system, and I’d like to avoid it.

Business Layer Exception

Duplicate WebUser/E-mail Address combination found: Customer ID: 4857907, Name: JOHN CARLBERGCustomer ID: 4857907, Name: ASPHALT PLANT

Exception caught in: Epicor.ServiceModel

Error Detail 
============
Correlation ID:  f26b2bf5-39ab-4538-a8b0-2e2bb510dd9d
Description:  Duplicate WebUser/E-mail Address combination found: Customer ID: 4857907, Name: <snip> Customer ID: 4857907, Name: <snip> 
Program:  Erp.Services.BO.CustCnt.dll
Method:  CustCntBeforeUpdate
Line Number:  619
Column Number:  17
Table:  CustCnt
Field:  EmailAddress

Client Stack Trace 
==================
   at Epicor.ServiceModel.Channels.ImplBase.CallWithCommunicationFailureRetry(String methodName, ProxyValuesIn valuesIn, ProxyValuesOut valuesOut, RestRpcValueSerializer serializer)
   at Epicor.ServiceModel.Channels.ImplBase.CallWithMultistepBpmHandling(String methodName, ProxyValuesIn valuesIn, ProxyValuesOut valuesOut, Boolean useSparseCopy)
   at Epicor.ServiceModel.Channels.ImplBase.Call(String methodName, ProxyValuesIn valuesIn, ProxyValuesOut valuesOut, Boolean useSparseCopy)
   at Erp.Proxy.BO.CustCntImpl.Update(CustCntDataSet ds)
   at Erp.Adapters.CustCntAdapter.OnUpdate()
   at Ice.Lib.Framework.EpiBaseAdapter.Update()
   at Erp.UI.App.CustomerEntry.Transaction.UpdateContacts()
1 Like

Did you create a new contact or use the contact number from the other contact that has the same email?

1 Like

This was using the existing contact. For SnG, I tried adding a new contact - Once you OK past the phone and email duplicate pop-up, Epicor said it’s a duplicate name, and I couldn’t add it (guessing same name / email combo was not allowed). I then tried adding myself as a new contact ‘Andris’ with the same email, and it allowed it.

When I try setting the original contact as Primary Billing, I expected to see my new contact ‘Andris’ also in the duplicate pop-up warning, but it’s not.

The error is ‘Duplicate WebUser/E-mail Address combination found’.

I found ‘Web User’ in the Kinetic Customer Contacts Details tab, but can’t uncheck it. There’s nothing in Person/Contact maintenance.

Did you try DMT’ing it off?

1 Like

Great idea! This worked for clearing Web User (aka CustCnt.SFUser) on the main contact. I could then set it as Primary Billing! Not sure what logic Epicor was using that means a sales force user (e.g. web user) needs to have a unique email before I can set it as Primary Billing. I’m sure support would just say ‘Working as designed’.

2 Likes

Nice. This one made me nervous, we have a ton of BPMs around preventing duplicate contact emails, etc. and I was worried Epicor added a bunch of new logic I’d have to contend with… Glad to see it was just that 3rd party field (is it for Sales Force or Commerce Connect though lol?)