I am trying to convert lead to contact and I get this error:
ORA-20025 common.exception.SfdcSqlException`
ORA-06512: at "SNEEZY.CACCESS", line 2399`
ORA-06512: at "SNEEZY.CACCESS", line 585`
ORA-06512: at "SNEEZY.CACCESS", line 656
ORA-06512: at "SNEEZY.CTASK", line 552
ORA-06512: at line 1
{call cTask.insert_tasks(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}
{call cTask.insert_tasks(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}`
I posted to SF community, spoke to a support member at SF. She said that if the community will not answer, one of their support specialists will pick it up. (which they did not thus far)
I have read through most of the material about this error but no one seems to have resolved this.
My code is executed after insert:
Trigger AutoConvertLead2Contact on Lead (after insert) {
for (Lead lead: Trigger.new) {
if (!lead.isConverted && lead.LeadSource == 'אינטרנט') {
Database.LeadConvert lc = new Database.LeadConvert();
lc.setLeadId(lead.id);
lc.setDoNotCreateOpportunity(true);
LeadStatus convertStatus = [SELECT Id, MasterLabel FROM LeadStatus WHERE IsConverted=true LIMIT 1];
lc.setConvertedStatus(convertStatus.MasterLabel);
Database.LeadConvertResult lcr = Database.convertLead(lc);
System.assert(lcr.isSuccess());
}
}
}
I read somewhere that since its executed after insert it is somewhat too fast to convert right away and that it should be triggered a little but later...mmm
Has anyone encountered this ORA?
Anyone managed to solve the matter?
Thanx
^RG. – crmprogdev Dec 31 '15 at 18:32We support our standard customers and partners through the developer support boards at https://developer.salesforce.com/. If you have a developer support question, are looking for technical documentation, best practices, "
– Jadeye Dec 31 '15 at 19:01