# Version find filter presets puzzle

**URL:** <https://community.shotgridsoftware.com/t/version-find-filter-presets-puzzle/20038>\
**Category:** Flow Production Tracking\
**Tags:** python-api\
**Created:** [April 23, 2025, 5:02pm UTC](https://community.shotgridsoftware.com/t/version-find-filter-presets-puzzle/20038 "2025-04-23T17:02:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![schicky](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/schicky/32/506_2.png) [@schicky](https://community.shotgridsoftware.com/u/schicky)\
**Post date:** [April 23, 2025, 5:02pm UTC](https://community.shotgridsoftware.com/t/version-find-filter-presets-puzzle/20038/1 "2025-04-23T17:02:16Z")

</div>

I don’t understand why using the filter presets are filtering out all Versions

```auto
latest_version = sg.find(
	'Version',
	[
		('sg_task.Task.id', 'is', task_id)
	],
	['created_at'],
    additional_filter_presets=[{'preset_name': 'LATEST', 'latest_by': 'ENTITIES_CREATED_AT'}]
)

pprint(latest_version)

latest_version = sg.find(
	'Version',
	[
		('sg_task.Task.id', 'is', task_id)
	],
	['created_at'],
)

pprint(latest_version)

# WITH FILTER PRESETS
[]

# WITHOUT
[{'created_at': datetime.datetime(2025, 4, 16, 12, 5, 35, tzinfo=<shotgun_api3.lib.sgtimezone.LocalTimezone object at 0x0410E630>),
  'id': 544104,
  'type': 'Version'},
 {'created_at': datetime.datetime(2025, 4, 17, 10, 14, 21, tzinfo=<shotgun_api3.lib.sgtimezone.LocalTimezone object at 0x0410E630>),
  'id': 544419,
  'type': 'Version'},
 {'created_at': datetime.datetime(2025, 4, 17, 13, 33, 16, tzinfo=<shotgun_api3.lib.sgtimezone.LocalTimezone object at 0x0410E630>),
  'id': 544481,
  'type': 'Version'}]

```

---

<div class="post-metadata">

**Author:** ![schicky](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/schicky/32/506_2.png) [@schicky](https://community.shotgridsoftware.com/u/schicky)\
**Post date:** [April 24, 2025, 6:46pm UTC](https://community.shotgridsoftware.com/t/version-find-filter-presets-puzzle/20038/2 "2025-04-24T18:46:51Z")

</div>

It turns out the Versions weren’t linked to Entities (Link field) like Asset/Shot, although they were linked to Tasks (Task field). Thanks to Autodesk support for the help!
