+ Start a Discussion
Ulas KutukUlas Kutuk 

Person Account DML Error ( bad field names ?)

Any body get this error before ? Any solution...I know it is about person account but ı do not figure out how Iam going to fix...

I ve already checked to profile setting for record types.

 

System.DmlException: Insert failed. First exception on row 0; first error: INVALID_FIELD_FOR_INSERT_UPDATE, Account: bad field names on insert update call: Name: [Name]
Best Answer chosen by Admin (Salesforce Developers) 
Saikishore Reddy AengareddySaikishore Reddy Aengareddy

This is little confusing here... For personAccounts you should not use "Name" instead use FirstName and LastName... PersonAccount is a blend of Account and contact. If it is a Business Account you should be using Name because on business Accounts you cannot Access firstName and LastName.

All Answers

Saikishore Reddy AengareddySaikishore Reddy Aengareddy

This is little confusing here... For personAccounts you should not use "Name" instead use FirstName and LastName... PersonAccount is a blend of Account and contact. If it is a Business Account you should be using Name because on business Accounts you cannot Access firstName and LastName.

This was selected as the best answer
Ulas KutukUlas Kutuk

Thanks all for the quick reply...ı ve also checked the links you provided...