# AAP error: "template error while templating string: No module named 'ansible.module\_utils.compat.version'. String: {{ mountfact |  community.general.json\_query( query ) }}",

**URL:** <https://forum.ansible.com/t/aap-error-template-error-while-templating-string-no-module-named-ansible-module-utils-compat-version-string-mountfact-community-general-json-query-query/38783>\
**Category:** Ansible Project\
**Tags:** aap\
**Created:** [May 14, 2024, 1:54pm UTC](https://forum.ansible.com/t/aap-error-template-error-while-templating-string-no-module-named-ansible-module-utils-compat-version-string-mountfact-community-general-json-query-query/38783 "2024-05-14T13:54:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![G-train99](https://avatars.discourse-cdn.com/v4/letter/g/8491ac/32.png) [@G-train99](https://forum.ansible.com/u/G-train99)\
**Post date:** [May 14, 2024, 1:54pm UTC](https://forum.ansible.com/t/aap-error-template-error-while-templating-string-no-module-named-ansible-module-utils-compat-version-string-mountfact-community-general-json-query-query/38783/1 "2024-05-14T13:54:06Z")

</div>

I’m not using ‘ansible.module\_utils.compat.version’. AAP is using that module, i guess.  
Underneath playbook works locally, not in AAP. The fact mountfact is a dict. I’ve also tried to add to\_json , from\_json, and both, without any changes.  
I made a SO post as i’m currently blocked with this. Not sure what to troubleshoot next.  
This is part of a role, underneath my test playbook.
