0

This question already has an answer here:

I'm attempting to add a Lead using the SOAP API via .NET.

I receive this error:

Unable to create/update fields: Address. Please check the security settings of this field and verify that it is read/write for your profile or permission set.

However, everywhere I can think to check shows the field is visible and editable.

Editing field-level security for Address in Lead:

Field level security for the System Administrator profile

Editing field visibility for Address in Lead:

Field visibility for System Administrator profile

Editing field-level security for the System Administrator profile, from the Profiles management tool:

Field level security for the System Administrator profile in Profile editing tool

What am I missing?

marked as duplicate by sfdcfox, David Reed, battery.cord, Vigneshwaran G, Martin Lezer Apr 16 '18 at 15:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2

Address isn't a "real" field, it's a "compound field" (a set of fields that can be queried as one). Instead, you need to set Street, City, State (or StateCode), PostalCode, and Country (or CountryCode). Compound fields can be used to query all of the base components, but cannot be used to update data in the database.

  • Agreed. The "possible duplicate" question is for the Account object. This answer is what you need for the Lead object. – DavidSchach Apr 13 '18 at 23:45

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