Reply
Regular Contributor
UK1925
Posts: 66
0
Accepted Solution

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]
Software Engineer / Force.com Certified Developer
uLasKutuk
Trusted Contributor
NaiduPothini
Posts: 369
0

Re: Person Account DML Error ( bad field names ?)

[ Edited ]
Trusted Contributor
sai.sf
Posts: 179
0

Re: Person Account DML Error ( bad field names ?)

Trusted Contributor
Sam_SFDC15
Posts: 176
0

Re: Person Account DML Error ( bad field names ?)

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.

/* If answered Mark as solved it might help someone in need */

Thanks, Saikishore
Regular Contributor
UK1925
Posts: 66
0

Re: Person Account DML Error ( bad field names ?)

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

Software Engineer / Force.com Certified Developer
uLasKutuk