When republishing a dataset obtained from the SharePoint connector, the following error appears:
"Refreshing dataset failed. acquisition data.csv: Retrieving data from data connector failed. Error in importing files. Please check the file to import. Error type: Data Import Error. Fail to fetch data. Please check whether IServer machine can access the data source. [{"err"."Error happens when refresh the token"}]"

When you refresh a dataset, the access token and refresh token are used directly to obtain data form SharePoint. The error indicates that you cannot fetch the file because the tokens are expired.
Additionally, when your cube is created from an SDK connector, the OAuth 2.0 authorization flow is not planned temporarily.
To update the access token and the refresh token, you must manually edit the cube and republish or refresh it.





For more information about token lifetimes, see the SharePoint Online Documentation. For more information on the SharePoint connector, see the article SharePoint.