FAQs
Common Errors & Troubleshootin...
Invalid Refresh Token” Error in Flow
overview this error commonly appears when users run flows with cloudfiles actions like create folder, copy file, or attach file on standard objects such as account, contact, or opportunity, and occurs when cloudfiles cannot access the storage provider due to an expired or invalid authentication token (refresh token) what is the error and why does this happen? this error is usually received as part of a flow failure email or debug log when a cloudfiles action step is triggered apex error cldfs cloudfilesexception {"message" "invalid refresh token","statuscode" 400} or cldfs cloudfilesexception {"error" "invalid refresh token","code" "invalid refresh token"} cloudfiles uses oauth to securely integrate with external storage providers (sharepoint, google drive, dropbox, etc ), relying on a refresh token to maintain the connection without repeatedly asking for credentials this error occurs when the connected storage account’s refresh token has expired or been revoked, when someone manually disconnects or reconnects the storage user incorrectly, or when the wrong user account is used during reconnection (such as a user from a different salesforce org) how to fix this issue? you’ll need to reconnect the system (integration) user open the cloudfiles app from app launcher in salesforce navigate to the document management tab (top navigation bar) in the left sidebar, click on libraries select the affected storage library (e g , sharepoint) and click disconnect reconnect the integration user by clicking connect and log in using the correct account's credentials once connected, re run the flow to confirm the issue is resolved