hope you can help me.
I use sfdx force:data:tree:import
to import data to my scratch org. I added a custom address field now on the account object and tried to import account records with an address (in the new custom field).
With the following tree file (which I exported right before with the tree export):
{
"records": [
{
"attributes": {
"type": "Account",
"referenceId": "AccountRef2"
},
"Name": "Test Account 2",
"Address__c": {
"city": "Mainz",
"country": "Germany",
"countryCode": "DE",
"geocodeAccuracy": null,
"latitude": null,
"longitude": null,
"postalCode": "55116",
"state": null,
"stateCode": null,
"street": "Test Straße"
}
}
]
}
I got the following error:
{
"hasErrors": true,
"results": [
{
"referenceId": "AccountRef2",
"errors": [
{
"statusCode": "INVALID_FIELD_FOR_INSERT_UPDATE",
"message": "Unable to create/update fields: Address__c. Please check the security settings of this field and verify that it is read/write for your profile or permission set.",
"fields":["Address__c"]
}
]
}
]
}
I am a System Administrator, have read/write on the Address__c
field and also the Modify All Data
permission. So I should not anyhow be restricted to not be able to import the data with the address (without the address it is working totally fine).
Do you think the import is just not yet supported for the new custom address fields from salesforce or is there something I do wrong?
Looking forward for any help! Thanks.