I am receiving this error continually when using OAuth to connect to my Salesforce Sales Cloud Sandbox:
[invalid_grant] expired access/refresh token
Not sure what is causing this but I am trying to find a way to either:
Keep the OAuth connection alive indefinitely
Refresh the OAuth connection when this error occurs
There is an "Advanced Connection Options" checkbox in the the "Manage OAuth" object that links to this document (https://matillion-docs.s3.eu-west-1.amazonaws.com/datamodels/Salesforce.html#Connection) but still struggling to find what exact values I need to input:
UPDATE: Working with my Salesforce Admin and there was a configuration "Force Log-out" when the token expires in the sandbox environment. We have disabled that configuration and upon revalidation of the "Salesforce Output" component can connect again.
Would still like to use a better option from my above points if possible for more secure keep-alive connection methods.
UPDATE: Matillion support pointed me to this URL (https://support.matillion.com/s/article/ErrorinvalidgrantExpiredAccessRefreshTokeninSalesforceOAuth) which i will try next once this issue occurs again: