hexagon logo

How to solve py_post.IndexError: Node scalar at 5 does not exist?

I have a python program to obtain contact_status from nodes (I use p.node_scalar(i,j)) in the surface of a .t16 model.
I am using version 2019.
Node scalar 5, is the contact status. However changing this number continues showing the error...
 
I keep obtaining the error mentionned above, can anyone help me fixing the error?
 
Thak you very much!