Hello Team I have setup Rudderstack to Salesforce ...
# support
p
Hello Team I have setup Rudderstack to Salesforce integration in my account, however facing below error on all the identify call and all the identify call are getting failed: { "response": "Authorisation failed: Salesforce Request Failed: \"400\" due to \"{\"error\":\"invalid_grant\",\"error_description\":\"authentication failure\"}\", (Aborted) :- authentication failed during fetching access token.", "firstAttemptedAt": "2024-01-11T095834.960Z", "content-type": "" } Can someone please assist what needs to be done? I have checked the request token which is fresh and correct from Salesforce. Any help would be highly appreciated. Thanks
m
Hi Vrajesh can you provide the workspace where you are seeing this?
Also I see that you are getting the Authentication failure error, so can you check the credentials.
Finally if you are a paying customer you can message on the dedicated slack channel
p
Hi @shy-kite-21035 Thank you for your response on this. Our workspace name is Thriveworks-QA I have checked my user credentials as well, still observing the same behavior. And, Yes, we are a paying customer, we're on the enterprise plan. Because we don't use Slack internally, we do not have a dedicated channel with them Let me know. Thanks
m
Hi Vrajesh, thanks for providing the workspace details. I will pass this ticket onto your dedicated Technical Account Manager.
Hey Vrajesh, Can you take a screenshot of your User Details in Salesforce? I suspect some permission is missing. Thanks!
p
Hi @narrow-optician-93684 Here is the screenshot attached:
Can we do a Screenshare? @narrow-optician-93684 @shy-kite-21035
m
Hey Vrajesh, Sorry for the delay in response (I'm currently OOO). Someone from my team will get back to you today.
Hi there Vrajesh, As David mentioned earlier, this is likely due to an issue with the authentication Can you check some of the salesforce links in our docs here for troubleshooting. Some of the things to confirm is that 2fa is not set up for this user, the api permissions are enabled, and maybe you can reset your security token. What we do see with most of our customers using Salesforce (and us internally) is they create a dedicate api user strictly for using with RudderStack and other developer use cases.
p
Hi David, After a couple of times disconnecting and re-connecting, it seems the authentication issue is no longer showing up. However, a new error is appearing:
Copy code
{
  "response": "{\"status\":400,\"message\":\"Salesforce Request Failed: \\\"400\\\" due to \\\"No such column 'internal__c' on sobject of type Lead\\\", (Aborted) during Salesforce Response Handling\",\"destinationResponse\":{\"response\":[{\"message\":\"No such column 'internal__c' on sobject of type Lead\",\"errorCode\":\"INVALID_FIELD\"}],\"status\":400,\"rudderJobMetadata\":{\"jobId\":16216388,\"attemptNum\":0,\"userId\":\"\",\"sourceId\":\"1u43FE8YchNR9RJeHXRyhztd0HI\",\"destinationId\":\"2b7kbj9IUgFtGrA0szSKhUHfaqt\",\"workspaceId\":\"1tyuYXlOwHPMrm9e0KFtq9vYa9t\",\"secret\":null,\"destInfo\":{\"authKey\":\"2b7kbj9IUgFtGrA0szSKhUHfaqt\"},\"dontBatch\":false}},\"statTags\":{\"errorCategory\":\"network\",\"errorType\":\"aborted\",\"destType\":\"SALESFORCE\",\"module\":\"destination\",\"implementation\":\"native\",\"feature\":\"dataDelivery\",\"destinationId\":\"2b7kbj9IUgFtGrA0szSKhUHfaqt\",\"workspaceId\":\"1tyuYXlOwHPMrm9e0KFtq9vYa9t\"}}",
  "firstAttemptedAt": "2024-01-18T14:41:32.632Z",
  "content-type": "application/json"
}
If I understand this correctly, this is because my destination is missing the field? So I will have to get a list of all the fields that is being passed in our identify calls and create them in our Salesforce Lead object, is that correct? Appreciate you help on this.
m
Yes correct! Salesforce unfortunately cannot dynamically create fields as new ones show up, therefore they need to be created ahead of time.
Hey Vrajesh, Wanted to check-in to see if you were able to resolve this. Let me know if you have any additional questions.
p
This is resolved @narrow-optician-93684
m
Great! Thanks for the update, Vrajesh! Let us know if any other questions come up.