Hi
As On-Premises Gateway does not support OAuth while OneDrive requires OAuth.
If we have a dataset that has both OneDrive and on-premise data sources, that dataset cannot be refreshed using an On-Premises Gateway. To work around the issue temporarily, we can use personal gateway. For more information, please refer to kevhav's post in this thread: Unable to schedule refresh with sharepoint and database.
Best Regards,
Qiuyun Yu