OSError: [WinError 1296] The requested file operation failed because the storage policy blocks that type of file. For more information, contact your system administrator

Hi all, we are getting this error when trying to run robot test in the Visual Studio Code terminal on Windows OS. But if we run the same test using same command in MAC it works fine.

Below is the command that we are using to run robot test on Windows

“py -3 -m robot -d Results Tests/XyzTest.robot”

Below is the error that we are getting:

“OSError: [WinError 1296] The requested file operation failed because the storage policy blocks that type of file. For more information, contact your system administrator”.

Could someone please help? Am I missing anything here?

Your Windows does not allow the operation you try to execute. That’s why it “works” on Mac. Your Mac configuration allows the operation.

It’s an OS problem, not Robot. However: what is the keyword that is failing?

it’s not even firing the browser even before firing the browser it failed. Is my command correct for Windows?

“py -3 -m robot -d Results Tests/XyzTest.robot”