When attempting to load a flat file as a data source which is hosted on OneDrive and synced on your desktop through TIBCO Spotfire Analyst, sometimes you will get error like below:
Spotfire.Dxp.Data.Exceptions.ImportException: The process cannot access the file 'C:\Users\abc\OneDrive - company\time-data.xlsx' because it is being used by another process. ---> System.IO.IOException: The process cannot access the file 'C:\Users\abc\OneDrive - company\time-data.xlsx' because it is being used by another process.