Tasks works fine when started manually, but not automatically?

Have the same problem but using the sum function instead