Windows Task Scheduler running a python script

Job ID: 35544831

Budget: $10 – $30 USD

Hi,
This python scripts writes a simple pickle file. It is working when running it alone, but I can't get windows task scheduler to run it.

error (0x1)
ResultCode 2147942401

I would be very thankful if someone could help me out.
Thanks

I am running windows 10 pro and python 3.7.0 and I have administrator privileges on the machine