# Inventories failing using infra.controller\_configuration.filetree\_create in AAP 2.5

**URL:** <https://forum.ansible.com/t/inventories-failing-using-infra-controller-configuration-filetree-create-in-aap-2-5/39571>\
**Category:** Get Help\
**Tags:** aap\
**Created:** [January 13, 2025, 3:32pm UTC](https://forum.ansible.com/t/inventories-failing-using-infra-controller-configuration-filetree-create-in-aap-2-5/39571 "2025-01-13T15:32:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjbigfish77](https://avatars.discourse-cdn.com/v4/letter/j/3d9bf3/32.png) [@jjbigfish77](https://forum.ansible.com/u/jjbigfish77)\
**Post date:** [January 13, 2025, 3:32pm UTC](https://forum.ansible.com/t/inventories-failing-using-infra-controller-configuration-filetree-create-in-aap-2-5/39571/1 "2025-01-13T15:32:58Z")

</div>

I’m trying to run a playbook in AAP 2.5 to pull all objects from the AAP instance, when I run this from the command line, it exports objects as expected, but when I try to automate this in AAP 2.5, I’m getting the following error.

TASK [infra.controller\_configuration.filetree\_create : Get the inventories from the API] \*\*\*  
fatal: [localhost]: FAILED! =\> {“msg”: “An unhandled exception occurred while running the lookup plugin ‘ansible.controller.controller\_api’. Error was a \<class ‘ansible.errors.AnsibleError’\>, original message: The requested object could not be found at /api/controller/v2/api/v2/inventories/… The requested object could not be found at /api/controller/v2/api/v2/inventories/.”}

I have verified that I’m not adding the /v2/api/ suffix to the hostname in the playbook, seems to be stemming from the main.yml file in filetree\_create, but I’m not that familiar with this collection.

Any help would be appreciated, thank you.
