Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when PublishedFile is not linked to a Task #50

Closed
blambright opened this issue Jun 7, 2023 · 3 comments · Fixed by #58
Closed

Error when PublishedFile is not linked to a Task #50

blambright opened this issue Jun 7, 2023 · 3 comments · Fixed by #58
Assignees
Labels
enhancement New feature or request

Comments

@blambright
Copy link

We have a couple PublishedFile entities that aren't linked to a Task (only an Asset or Shot). If any of those PublishedFile entities are loaded into a scene, the scene breakdown breaks (shows up empty).

This is due to the filter for task being ["task", "is", None]

Traceback (most recent call last):
  File ".../install/app_store/tk-framework-shotgunutils/v5.8.5/python/task_manager/worker_thread.py", line 82, in run
    result = task_to_process.run()
  File ".../install/app_store/tk-framework-shotgunutils/v5.8.5/python/task_manager/background_task.py", line 139, in run
    return self._cbl(*self._args, **self._kwargs)
  File ".../install/app_store/tk-framework-shotgunutils/v5.8.5/python/shotgun_data/shotgun_data_retriever.py", line 1108, in _task_execute_find
    sg_res = self._bundle.shotgun.find(*args, **kwargs)
  File ".../install/core/python/tank_vendor/shotgun_api3/shotgun.py", line 1000, in find
    result = self._call_rpc("read", params)
  File ".../install/core/python/tank/authentication/shotgun_wrapper.py", line 63, in _call_rpc
    return super(ShotgunWrapper, self)._call_rpc(*args, **kwargs)
  File ".../install/core/python/tank_vendor/shotgun_api3/shotgun.py", line 3360, in _call_rpc
    self._response_errors(response)
  File ".../install/core/python/tank_vendor/shotgun_api3/shotgun.py", line 3665, in _response_errors
    raise Fault(sg_response.get("message", "Unknown Error"))
tank_vendor.shotgun_api3.shotgun.Fault: API read() CRUD ERROR #10: Read failed for entity type [PublishedFile]
@rob-aitchison
Copy link
Contributor

Hello @blambright ,
Thanks for logging this. Can you please confirm the version of tk-multi-breakdown2 you are using in your config and which Engine generated this error?

@rob-aitchison rob-aitchison added the question Further information is requested label Jun 30, 2023
@blambright
Copy link
Author

Sorry for the delayed response. Just got back from vacation.

Versions:

  • tk-multi-breakdown v0.2.6
  • tk-maya v0.11.2

I was initially incorrect in the description.
The issue is coming from this line:

When the task is unset, the filter in the query looks like this:

["task", "in", [None]],

Can reproduce the error by running this code:

self.sgtk.shotgun.find_one("PublishedFile", [["task", "in", [None]]])

Raises the same error:

shotgun_api3.shotgun.Fault: API read() CRUD ERROR #10: Read failed for entity type [PublishedFile]

@rob-aitchison rob-aitchison added logged This issue has been logged in JIRA and removed question Further information is requested labels Jul 20, 2023
@rob-aitchison
Copy link
Contributor

Hello @blambright ,
Thanks for this follow-up, we have just logged this internally for investigation, cheers!

@staceyoue staceyoue added enhancement New feature or request and removed logged This issue has been logged in JIRA labels Nov 1, 2023
@staceyoue staceyoue self-assigned this Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants