# Unable to run an example given by Aerospike

**URL:** <https://discuss.aerospike.com/t/unable-to-run-an-example-given-by-aerospike/2019>\
**Category:** General Discussion\
**Tags:** query\
**Created:** [October 19, 2015, 6:46am UTC](https://discuss.aerospike.com/t/unable-to-run-an-example-given-by-aerospike/2019 "2015-10-19T06:46:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justine\_Thomas](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@Justine\_Thomas](https://discuss.aerospike.com/u/Justine_Thomas)\
**Post date:** [October 19, 2015, 6:46am UTC](https://discuss.aerospike.com/t/unable-to-run-an-example-given-by-aerospike/2019/1 "2015-10-19T06:46:05Z")

</div>

This is in reference to the following example provided by Aerospike: [https://github.com/aerospike/query-with-filters](https://github.com/aerospike/query-with-filters)

I tried running the AuthenticateTest.aql provided and it threw errors when it encounters the Aggregate function. I tried running the same file on other systems and it gave me the same error. I have attached a screenshot for better understanding of the problem. Please let me know what I’m doing wrong

 ![](https://us1.discourse-cdn.com/flex019/uploads/aerospike/original/1X/929fbd808059bb60b68766880700593b06abdb99.png)

---

<div class="post-metadata">

**Author:** ![helipilot50](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/helipilot50/32/59_2.png) [@helipilot50](https://discuss.aerospike.com/u/helipilot50)\
**Post date:** [October 19, 2015, 11:06pm UTC](https://discuss.aerospike.com/t/unable-to-run-an-example-given-by-aerospike/2019/2 "2015-10-19T23:06:45Z")

</div>

I’m not exactly sure what your issue is. I just cloned the repo and ran it on a clean install of Aerospike server 3.6.x and Aerospike tools 3.6.x

What is your versions of Aerospike Tools and Aerospike Server

---

<div class="post-metadata">

**Author:** ![TimF](https://avatars.discourse-cdn.com/v4/letter/t/7cd45c/32.png) [@TimF](https://discuss.aerospike.com/u/TimF)\
**Post date:** [October 20, 2015, 12:57am UTC](https://discuss.aerospike.com/t/unable-to-run-an-example-given-by-aerospike/2019/3 "2015-10-20T00:57:03Z")

</div>

The AQL file in this example didn’t have a newline after the last character on it. This can cause issues on some AQL clients. I have added this newline – please pull the latest changes from this repository and let us know if you still continue to have issues.
