• Appelt
  • NEWBIE
  • 5 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 1
    Likes Given
  • 1
    Questions
  • 2
    Replies
I am trying to create a new lead from inside an Apex Controller. For test purposes, I am simply running the following code:

insert new Lead(LastName='Smite', Company='Acme');

This works fine when run from an execure anonymous window, but when it runs in my controller I always get:

System.DmlException: Insert failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, invalid parameter value: []
Error is in expression '{!createLead}' in component <apex:commandButton> in page prospects

Why would this be happending? I have no triggers or workflows defined. 

Any help is greatly appreciated.
I am trying to create a new lead from inside an Apex Controller. For test purposes, I am simply running the following code:

insert new Lead(LastName='Smite', Company='Acme');

This works fine when run from an execure anonymous window, but when it runs in my controller I always get:

System.DmlException: Insert failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, invalid parameter value: []
Error is in expression '{!createLead}' in component <apex:commandButton> in page prospects

Why would this be happending? I have no triggers or workflows defined. 

Any help is greatly appreciated.
I am trying to create a new lead from inside an Apex Controller. For test purposes, I am simply running the following code:

insert new Lead(LastName='Smite', Company='Acme');

This works fine when run from an execure anonymous window, but when it runs in my controller I always get:

System.DmlException: Insert failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, invalid parameter value: []
Error is in expression '{!createLead}' in component <apex:commandButton> in page prospects

Why would this be happending? I have no triggers or workflows defined. 

Any help is greatly appreciated.

Hi,

 

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 = 'test@prova.it', Company = 'Test Company');

 insert newLead;

 

I've seen the post http://boards.developerforce.com/t5/Visualforce-Development/BUG-Summer-08-Large-controller-leads-to-quot-UNKNOWN-EXCEPTION/m-p/75538. The problem looks like the same but I'm working on salesforce site.

 

some one can help me?

Hi,

 

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 = 'test@prova.it', Company = 'Test Company');

 insert newLead;

 

I've seen the post http://boards.developerforce.com/t5/Visualforce-Development/BUG-Summer-08-Large-controller-leads-to-quot-UNKNOWN-EXCEPTION/m-p/75538. The problem looks like the same but I'm working on salesforce site.

 

some one can help me?