You need to sign in to do that
Don't have an account?
Adam Daniel
Lead conversion error - custom button
Hi, Salesforce support directed me here... I have a custom Convert button built by a firm I'm no longer in touch with. It's designed to take users to a custom de-duplicating page, then to create a few different records at once in the system: an opportunity, a client, and a property (that's a custom object the firm also built).
The button is suddenly giving users a couple different errors.
Here's one:
List has no rows for assignment to SObject
Error is in expression '{!Init_Save_Lead_Convert}' in component <apex:commandButton> in page leadconvert: Class.LeadController.Init_Save_Lead_Convert: line 118, column 1
And here's another:
List index out of bounds: 0 Error is in expression '{!Init_Save_Lead_Convert}' in component in page leadconvert: Class.LeadController.Init_Save_Lead_Convert: line 139, column 1 An unexpected error has occurred. Your development organization has been notified.
Hoping someone can help here?
Thanks,
AD
The button is suddenly giving users a couple different errors.
Here's one:
List has no rows for assignment to SObject
Error is in expression '{!Init_Save_Lead_Convert}' in component <apex:commandButton> in page leadconvert: Class.LeadController.Init_Save_Lead_Convert: line 118, column 1
And here's another:
List index out of bounds: 0 Error is in expression '{!Init_Save_Lead_Convert}' in component in page leadconvert: Class.LeadController.Init_Save_Lead_Convert: line 139, column 1 An unexpected error has occurred. Your development organization has been notified.
Hoping someone can help here?
Thanks,
AD
There you can find this class
Init_Save_Lead_Convert
RecordType rType = [SELECT Id FROM RecordType WHERE Name = :type AND sObjectType= 'Account' Limit 1];