Shreeharsh Basa
Tera Expert

for reference fields you have to pass the SysID not the value if you are updating or inserting values through script.