BPM Set Field function not working

I added that line to the end of my code and I get these errors.