Error code automation?

image

Hi if I delete “automation” I have error @ data 0

What is wrong?

Where are you putting this code?

Please paste code as text not screenshots. See here.