Hi @ytzhang,
I had a similar issue a few years back. The properties names read from files are parsed so capital letters are changed to lower case inside Ovito. I think this is why your script returns an error.
See @stukowski’s answer’s here for how to check for particles properties names as referenced by Ovito using the GUI.