Nuke Default Status Error

Hi all,

i am keep getting this error from nuke.
may i know what status is this refering to ? i have all the task status changed and still having this

Nuke log
Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Ynput\AYON\addons\core_1.1.8\ayon_core\tools\workfiles\control.py", line 563, in save_as_workfile
    self._save_as_workfile(
  File "C:\Users\User\AppData\Local\Ynput\AYON\addons\core_1.1.8\ayon_core\tools\workfiles\control.py", line 758, in _save_as_workfile
    self.save_workfile_info(
  File "C:\Users\User\AppData\Local\Ynput\AYON\addons\core_1.1.8\ayon_core\tools\workfiles\control.py", line 471, in save_workfile_info
    self._workfiles_model.save_workfile_info(
  File "C:\Users\User\AppData\Local\Ynput\AYON\addons\core_1.1.8\ayon_core\tools\workfiles\models\workfiles.py", line 756, in save_workfile_info
    self._entities_model.save_workfile_info(
  File "C:\Users\User\AppData\Local\Ynput\AYON\addons\core_1.1.8\ayon_core\tools\workfiles\models\workfiles.py", line 542, in save_workfile_info
    self._cache[identifier] = self._create_workfile_info_entity(
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Ynput\AYON\addons\core_1.1.8\ayon_core\tools\workfiles\models\workfiles.py", line 607, in _create_workfile_info_entity
    session.commit()
  File "C:\Program Files\Ynput\AYON\dependencies\ayon_api\operations.py", line 726, in commit
    self._con.send_batch_operations(
  File "C:\Program Files\Ynput\AYON\dependencies\ayon_api\server_api.py", line 8795, in send_batch_operations
    return self._send_batch_operations(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Ynput\AYON\dependencies\ayon_api\server_api.py", line 8900, in _send_batch_operations
    raise FailedOperations((
ayon_api.exceptions.FailedOperations: Operation "81b765f2-a00d-4df5-a78b-4384ee2749b9" failed with data:
{
    "id": "81b765f2-a00d-4df5-a78b-4384ee2749b9",
    "type": "create",
    "entityType": "workfile",
    "entityId": "033355f9bc234ae0a8f6d7827504d8db",
    "data": {
        "id": "033355f9bc234ae0a8f6d7827504d8db",
        "path": "{root[work]}/AyonFinaleCheck/sh/sh0004/work/compositing/P0200_sh0004_compositing_v007.nk",
        "taskId": "09e431d31c1b11f0998fc5d13f33892f",
        "attrib": {
            "extension": ".nk",
            "description": ""
        },
        "createdBy": "dennis",
        "updatedBy": "dennis"
    }
}
Detail: No default status available.

When checking your project anatomy on server, do you have any statuses?

2 Likes

It could also be that you have Statuses, but that none of them are ‘scoped’ to the Workfile entity type.

So right hand side also make sure to assign the scope accordingly.

Each entity type should have at least one status type associated with it, otherwise a “default status” would be lacking for them.

1 Like

For completeness sake - it seems that with this change on the server this “strictness” is new and before it did allow e.g. workfile to have no scope set at all (which is actually the default anatomy template too!) so we’ll be working towards removing the new strict behavior for something more backwards compatible.

Thanks! its working perfectly right now,
i need to ‘scoped’ them to the workfiles.
but for maya and houdini, it seems like working fine even without having to scope them. never had this error in other dcc.

In the upcoming server release 1.8.2 this hard requirement is resolved again, and even without the scope changes it should still continue to work as prior to 1.7.6.

Edit: 1.8.2 with the hotfix has been released today.

1 Like