Hi All,
I usually create new schema fields by using the Shotgun's Python API instead of the web user interface.
When I was trying to create new entity fields, sometimes a mystic exception occurred. It's an API problem, because I can create the entity field, which I want, on the web user interface after the creation is failed in "API style".
Here is a sample code:
properties = {
'name':'Delivery',
'description':'The tracked item comes from this delivery',
'valid_types':['Delivery'],
}
fname = sg.schema_field_create('CustomEntity02', 'entity', 'delivery', properties)
Of course, I've enabled the Delivery and CustomEntity02 entities in Site preferences before running the code printed above.
The exception is:
XMLRPC Fault 103:
API schema_field_create() invalid/missing 'type' string:
"Delivery"
Valid types: [......]
See the whole trace in the attachment!
Has somebody any idea?
Thanks in advance, Jana
sg_api_error_trace.txt