Hi community,
On my side there is an error at synchronizing SG ‘Date’ fields to Ayon,
in particular the Task start/due dates from SG to Ayon and viceversa.
Is it working on your side?
Of course the attributes have been correctly mapped.
Does maybe Ayon need to support 2 types of attributes: date and datetime, just like SG?
This is an error from SG to Ayon:
Description
An error occurred while processing. Shotgrid Event ID: 7511961.
Message
Traceback (most recent call last):
File “/service/processor/processor.py”, line 251, in start_processing
handler.process_event(
File “/service/processor/handlers/shotgrid_event.py”, line 37, in process_event
hub.react_to_shotgrid_event(sg_payload[“meta”])
File “/service/ayon_shotgrid_hub/init.py”, line 355, in react_to_shotgrid_event
update_ayon_entity_from_sg_event(
File “/service/ayon_shotgrid_hub/update_from_shotgrid.py”, line 426, in update_ayon_entity_from_sg_event
ayon_entity_hub.commit_changes()
File “/usr/local/lib/python3.11/site-packages/ayon_api/entity_hub.py”, line 1201, in commit_changes
self._connection.send_batch_operations(
File “/usr/local/lib/python3.11/site-packages/ayon_api/server_api.py”, line 8597, in send_batch_operations
return self._send_batch_operations(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/ayon_api/server_api.py”, line 8699, in _send_batch_operations
raise FailedOperations((
ayon_api.exceptions.FailedOperations: Operation “7f6e4ee6041411f0a7170242ac120007” failed with data:
{
“type”: “update”,
“entityType”: “task”,
“entityId”: “10ced126fe8911efaa780242ac120007”,
“data”: {
“attrib”: {
“startDate”: “2025-03-18”
}
},
“id”: “7f6e4ee6041411f0a7170242ac120007”
}
Detail: 1 validation error for TaskPatchModel
attrib → startDate
invalid datetime format (type=value_error.datetime).