Please see why there is an error.
#1 You have !PNAME! as one of the parameters and you are trying to calculate the PNAME field.. You can't use the PNAME field to calculate itself
#2 Assuming that you have to calculate values into the PNAME field and you need values from 2 fields, you didn't pass in two arguments to the script in the Pname section the expression line
# 3 AND you need to remove the
in the Code block section. Those lines are not supposed to be included in the code block.
I think you just copied and pasted an example and put some of the wrong things in the wrong place
I haven't figured out where the right place is yet.I'll do a little more research.
It's a little difficult.
Thank you for your reply.
Hoping that wasn't you downvoting
Retrieving data ...