You need to sign in to do that
Don't have an account?

Duplicate value found: unknown duplicates value on record with id
Dear all,
We have an integration of Eloqua with Salesforce and when pushing contacts from Eloqua to SalesForce as leads, following error messages are triggered"
Message 1: Duplicate value found: unknown duplicates value on record with id: ---------------------
Message 2: Too many retries of batch save in the presence of Apex triggers with failures: when triggers are present partial save requires that some subset of rows save without any errors in order to avoid inconsistent side effects from those triggers. Number of retries: 2
Any thoughts on how to resolve these errors ?
Individual contacts can be pushed from Eloqua and the external calls are successful (leads are created successfully). Above mentioned errors are triggered when I try to push more than 30 contact records.
A few forums suggested turning off the History tracking of Lead fields that I have already due, but the error is persistent.
https://success.salesforce.com/issues_view?id=a1p30000000T2URAA0
Thanks very in advance for any help,
Navin Krishnan
We have an integration of Eloqua with Salesforce and when pushing contacts from Eloqua to SalesForce as leads, following error messages are triggered"
Message 1: Duplicate value found: unknown duplicates value on record with id: ---------------------
Message 2: Too many retries of batch save in the presence of Apex triggers with failures: when triggers are present partial save requires that some subset of rows save without any errors in order to avoid inconsistent side effects from those triggers. Number of retries: 2
Any thoughts on how to resolve these errors ?
Individual contacts can be pushed from Eloqua and the external calls are successful (leads are created successfully). Above mentioned errors are triggered when I try to push more than 30 contact records.
A few forums suggested turning off the History tracking of Lead fields that I have already due, but the error is persistent.
https://success.salesforce.com/issues_view?id=a1p30000000T2URAA0
Thanks very in advance for any help,
Navin Krishnan
Please try to add them in a set first and then try to insert them.
Message 2 is an error which comes when you try to perform bulk DML using SOAP API and the runtime engine fails 2 times to insert your records.
Solving first error will resolve your problem.
Thanks,
Prem
It looks like the Lead ID field is set as Unique and that was causing the issue. Removed the unique flag and the contacts flow in SFDC and lead is created without any issues.
Best Regards,
Navin
You can mark this thread as solved if your issue is resolved :-)
Map<Id, Decimal> acctIdToAmount = new Map<Id, Decimal>();
List<Account> accountsToUpdate = new List<Account>();
Map<ID,RecordType> typeMap = New Map<ID,RecordType>([Select ID, DeveloperName From RecordType Where sObjectType = 'CONTACT']);
for (CONTACT CON : trigger.new) {
// If the Record Type = Intake Form
if (typeMap.get(CON.RecordTypeId).DeveloperName == 'C2B' || typeMap.get(CON.RecordTypeId).DeveloperName == 'D2B') {
// Get the Contact Amount into a temp variable
Decimal sum = CON.PAID_AMOUNT__c == null ? 0 : CON.PAID_AMOUNT__c;
// Sum it up with the already collected Amount
if(acctIdToAmount.containsKey(CON.AccountId))
sum += acctIdToAmount.get(CON.AccountId);
// Make a map with AccountId as Key and Amount as value
acctIdToAmount.put(CON.AccountId, sum);
}
else if(typeMap.get(CON.RecordTypeId).DeveloperName == 'E2B') {
Decimal sum = 0;
if(acctIdToAmount.containsKey(CON.AccountId))
sum = acctIdToAmount.get(CON.AccountId);
sum -= CON.PAID_AMOUNT__c == null ? 0 : CON.PAID_AMOUNT__c;
acctIdToAmount.put(CON.AccountId, sum);
}
}
for(Id accId : acctIdToAmount.keyset()) {
Account acc;
if(acctIdToAmount.get(accId) >= 0)
acc = new Account(Id = accId, TOTAL_AMOUNT__c = acctIdToAmount.get(accId));
else
acc = new Account(Id = accId, PENDING_AMOUNT__c = acctIdToAmount.get(accId));
accountsToUpdate.add(acc);
}
if(!accountsToUpdate.isEmpty())
update accountsToUpdate;
}
mactualu using the above code ....and the error is:duplicate value found: <unknown> duplicates value on record with id: <unknown>......can i get the code rectified ....to slove this issue
Quite understandable solutions mentioned on Stackexchange. How to debug the mysterious “duplicate value found: <unknown> duplicates value on record with (https://salesforce.stackexchange.com/questions/79799/how-to-debug-the-mysterious-duplicate-value-found-unknown-duplicates-value-o) blog solution (http://buyessays.cheap) <unknown>” error (https://stackoverflow.com/questions/24566904/error-unknown-duplicates-value-on-record-with-id)
Can you plz it's fine or not in your side (https://skytechblog.com)
THankFully NowFixed
Mobile Banking (https://site-5582965-3407-3216.mystrikingly.com/blog/50-cash-app-names-to-request-money-giveaway-money)