Populating user profile properties (Sharepoint 2019)

O yeah! It is much better.
But when script reads another property I receve new issue "Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'value')":

Both custom property and field are strings. They are of the same type. Like Job Title or Department from example on your website.