Skip to content

InsertOne doesn't populate result error #132

@derekperkins

Description

@derekperkins

When I get an error back from InsertOne, I'm hoping to have the result include the structured error response, but it doesn't. All I get is an error string with the json packed into it. Is that expected behavior? Should I be unmarshaling the error string myself to see if it successfully goes into []SalesforceErrorMessage?

[
  {
    "message": "duplicate value found: MyAccountId__c duplicates value on record with id: 001Vr012300m4eGCIAY",
    "errorCode": "DUPLICATE_VALUE",
    "fields": []
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions