# Workfiles app stuck "Retrieving Tasks..."

**URL:** <https://community.shotgridsoftware.com/t/workfiles-app-stuck-retrieving-tasks/9800>\
**Category:** Pipeline Integrations\
**Tags:** bug\
**Created:** [August 25, 2020, 1:19pm UTC](https://community.shotgridsoftware.com/t/workfiles-app-stuck-retrieving-tasks/9800 "2020-08-25T13:19:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fabian](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/fabian/32/3508_2.png) [@Fabian](https://community.shotgridsoftware.com/u/Fabian)\
**Post date:** [August 25, 2020, 1:19pm UTC](https://community.shotgridsoftware.com/t/workfiles-app-stuck-retrieving-tasks/9800/1 "2020-08-25T13:19:00Z")

</div>

Dear Shotgun Team!

We encountered a (minor) bug in the tk-multi-workfiles2 app. If you have a Shot or Asset that does not have any Tasks (yet), the workfiles app is stuck in “Retrieving Tasks…”

 ![image](https://global.discourse-cdn.com/shotgunsoftware/original/2X/9/9f3554f546b107696593baa871d316241a23e701.png)

It never switches to “No Tasks found” which would be much more helpful to the artists.  
I was able to find this in the app code, but apparently the conditions are never fulfilled:

> <https://github.com/shotgunsoftware/tk-multi-workfiles2/blob/3b19b6edb614c3b63da3ee7e38cfe96ebdc7bd0f/python/tk_multi_workfiles/entity_models/deferred_model.py#L315>

Here is the configuration we use for the workfiles app:

```
entities:
  - caption: Assets
    entity_type: Asset
    hierarchy: [sg_asset_type, code]
    filters:
    sub_hierarchy:
      entity_type: Task
      filters:
      link_field: entity
      hierarchy: [step]
  - caption: Shots
    entity_type: Shot
    filters:
    hierarchy: [sg_sequence, code]
    sub_hierarchy:
      entity_type: Task
      filters:
      link_field: entity
      hierarchy: [step]

```

Hope this helps to fix it fast!

Cheers,  
Fabian

---

<div class="post-metadata">

**Author:** ![tannaz](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/tannaz/32/32_2.png) [@tannaz](https://community.shotgridsoftware.com/u/tannaz)\
**Post date:** [September 5, 2020, 12:32am UTC](https://community.shotgridsoftware.com/t/workfiles-app-stuck-retrieving-tasks/9800/3 "2020-09-05T00:32:57Z")

</div>

Hi Fabian –

Thanks so much for pointing this out! I just tested it out and got the same result. You’re right – it would look more polished and prevent confusion to switch to “No tasks found”.

I’ve put in an internal ticket to track the bug – I suspect it will be relatively easy, but low priority. At any rate, I’ve linked this post to the internal ticket, so we’ll be notified when it’s resolved, and will notify you in turn.

---

<div class="post-metadata">

**Author:** ![Fabian](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/fabian/32/3508_2.png) [@Fabian](https://community.shotgridsoftware.com/u/Fabian)\
**Post date:** [September 7, 2020, 8:57am UTC](https://community.shotgridsoftware.com/t/workfiles-app-stuck-retrieving-tasks/9800/4 "2020-09-07T08:57:28Z")

</div>

Hi @tannaz!

Thanks for tracking this bug! Hope it will be fixed in the near future.

Cheers,  
Fabian

---

<div class="post-metadata">

**Author:** ![scottballard](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@scottballard](https://community.shotgridsoftware.com/u/scottballard)\
**Post date:** [November 18, 2020, 11:12pm UTC](https://community.shotgridsoftware.com/t/workfiles-app-stuck-retrieving-tasks/9800/5 "2020-11-18T23:12:19Z")

</div>

@tannaz I’ve run into this issue was well when I added the “Scene” entity to the TK config. I was about to submit a support ticket for it but found it was already reported here. Could you add me to the internal ticket as well?

Cheers,  
Scott
