I have a JDBC Direct Connector that I am trying to reconfigure up Attribute Sync on and am getting an error when I try to enable the Attribute Sync for the first name:
{"messages":[{"localeOrigin":"DEFAULT","text":"A target account attribute \"firstName\" is missing from the sources account schema.","locale":"en-US"},{"localeOrigin":"REQUEST","text":"A target account attribute \"firstName\" is missing from the sources account schema.","locale":"en-US"}],"detailCode":"400.1 Bad request content","trackingId":"<REMOVED>"}
Backgroud:
The connector was originally configured with a direct SQL statement, but was recently swpped over to use an View. This changed the names of the fields we were bringing back in, so firstName became FIRST_NAME and lastName became LAST_NAME, etc.
Investigating:
The first thing I realized is that it was referencing the old name of the Account Attribute.
My first thought was to just delete the Attribute Sync values and create new ones. When I looked in the UI, there is no method to remove/delete the existing reference.
My second thought was that I would use the API and either remove or update the Attribute Sync Configuation from the Beta API.
I used the GET to return the correct configuration then I copied it to the body of the Update and set the new values for the Target, and removed one unnecessary Attribute Config value. I then submitted it. However, the response I got had the original, existing values still. I went back to review the API documentation and found this note in the Description of it:
Replaces the attribute synchronization configuration for the source specified by the given ID with the configuration provided in the request body. Only the “enabled” field of the values in the “attributes” array is mutable. Attempting to change other attributes or add new values to the “attributes” array will result in an error.
So it looks like this method will not work. Looking further at the APIs and the UP, I do not see a method to update/remove from the Attribute Sync Config.
Has anyone successfully updated this? Or am I stuck deleting and rebuilding my source connector from scratch?