function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Salvatore MignognaSalvatore Mignogna 

UNKNOWN_EXCEPTION Inserting a new lead in a site VF page



I have a VF page in a site that inserts a new lead (among other things). 

When trying to create a Lead, I get this error:


EXCEPTION_THROWN|[432]|System.DmlException: Insert failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, invalid parameter value: []


It works fine inserting a contact.


In my code simply insert a new lead user:


 Lead newLead = new Lead(LastName = 'TestLead',Email = '', Company = 'Test Company');

 insert newLead;


I've seen the post The problem looks like the same but I'm working on salesforce site.


some one can help me?

Salvatore MignognaSalvatore Mignogna

Nobody can help me?


I have the same problem. I found that it was a problem with a workflow that I had just activated. I haven't found a solution yet except to deactivate the workflow. 

I am having exactly the same problem. Any help would be greatly appreciated.