2

I am able to do PATCH to developername by /services/data/v30.0/tooling/sobjects/CustomField/{FieldID}

with body: { "developername":"abc" }

however, it's failed when I tried to update any metadata like

{ "Metadata" : { "trackHistory" : true } }

message: An unexpected error occurred. Please include this ErrorId if you contact support:

1

1 Answer 1

3

This bug has been fixed by salesforce in summer release but can you post the Gack or the stack trace id, which is the error id.

I am sure you are using the json format perfectly fine.Please ensure that you are using the full name too in the body.

{ "DeveloperName": "Address", "FullName": "House__c.Address__c", "Metadata": { "label": "Address", "type": "Text", "length": 120 } }

4
  • Tried { "DeveloperName": "abc", "FullName": "01Io00000005LHN.abc", "Metadata": { "label": "testabc" }} got INVALID_FIELD_FOR_INSERT_UPDATE message: Metadata API exception errorCode: INVALID_FIELD_FOR_INSERT_UPDATE Tried { "DeveloperName": "abc", "Metadata": { "label": "testabc" }} message: An unexpected error occurred. Please include this ErrorId if you contact support: 671499041-2789 (-1657627855)
    – David
    Jun 29, 2014 at 17:58
  • { "DeveloperName": "abc", "FullName": "01Io00000005LHN.abc__c", "Metadata": { "label": "testabc" }} same error
    – David
    Jun 29, 2014 at 18:06
  • David, Are you doing this in a summer release sandbox or your production, which is on Spring release. Jun 29, 2014 at 19:25
  • I am doing it in the Partner Developer Edition created from partnerforce. Thanks!
    – David
    Jun 30, 2014 at 17:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .