Hello all delegates Help me out i am having this error in my account object ..

Upsert failed. First exception on row 0 with id 0019000001AUlnEAAT; first error: INVALID_FIELD_FOR_INSERT_UPDATE, Account: bad field names on insert/update call: Name: [Name]

  • What are you trying to do? where are you getting the error? Provide some details and if it involves code, provide it as well. – Mahmood Dec 3 '14 at 11:11
  • @MahmoodButt actually i am trying to updating the last name in account and its showing an error. – Anurag Pareek Dec 3 '14 at 11:20
  • 3
    Ok. From the error it appears you're using apex code/controller. Please share the code as well. – Mahmood Dec 3 '14 at 11:27
  • Do you have Person Accounts turned on? (See e.g. developer.salesforce.com/forums/… or pervasive.com/solutions/DataSynchforQuickBooksSalesforce/…). – Keith C Dec 3 '14 at 11:38
  • 1
    Posting your code will help other developers help solve your problem. – BarCotter Dec 3 '14 at 12:14

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.


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.