# advanced Capstone 3.6 test doesn't pass

**URL:** https://forum.kx.com/t/advanced-capstone-3-6-test-doesnt-pass/13236
**Category:** Academy Support
**Tags:** imported
**Created:** [October 22, 2023, 12:00am UTC](https://forum.kx.com/t/advanced-capstone-3-6-test-doesnt-pass/13236 "2023-10-22T00:00:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![monikagel](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@monikagel](https://forum.kx.com/u/monikagel)
#### Post date: [October 22, 2023, 12:00am UTC](https://forum.kx.com/t/advanced-capstone-3-6-test-doesnt-pass/13236/1 "2023-10-22T00:00:00Z")

</div>

[https://learninghub.kx.com/forums/topic/advanced-capstone-3-6-test-doesnt-pass](https://learninghub.kx.com/forums/topic/advanced-capstone-3-6-test-doesnt-pass)

Hello,

I am having a peculiar trouble trying to pass the end of section tests. I pass everything except the second to last test, which makes little sense as the code works as expected for this, and user _fiauser_ cannot run “tables”, as he gets an output of `notAuthorised, as requested by the excercise. I am including my own code below under spoiler tag.

```
quizItem success description error 
---------------------------------------------------------------------- 
exercise3.2 Pass "check password col is updated" "" 
exercise3.3 Pass ".perm.users should exist on HDB process""" 
exercise3.4 Pass "define .z.pw on HDB process" "" 
exercise3.4 Pass "give access to users with correct password" "" 
exercise3.4 Pass "give access to users with wrong password" "" 
exercise3.5 Pass "return first element of parse tree" "" 
exercise3.5 Pass "return ! if given update query" "" 
exercise3.6 Pass "define .z.pg on remote process" "" 
exercise3.6 Pass "fiauser can run one function" "" 
exercise3.6 Fail "fiauser cant run tables[]" "" 
exercise3.6 Pass "team members can run any function" ""
```

&nbsp;

```
hdbH".perm.parseQuery:{(parse x)[0]}" //code for parsequery func
```

```
hdbH".z.pg:{[query] api:.perm.users[.z.u][`api]; $[api~`all;value query;api~(.perm.parseQuery[query]);value query;`notAuthorised]}" //code for .z.pg func
```

&nbsp;

Could someone please suggest what might be happening here?

---

<div class="post-metadata">

### Author: ![mmcparland](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/mmcparland/32/54_2.png) [@mmcparland](https://forum.kx.com/u/mmcparland)
#### Post date: [October 23, 2023, 12:00am UTC](https://forum.kx.com/t/advanced-capstone-3-6-test-doesnt-pass/13236/2 "2023-10-23T00:00:00Z")

</div>

Hi !

I’ve tested your code and the only issue I can see is that you need to change the spelling of the symbol from:

```
`notAuthorised
```

To:

```
`notAuthorized
```

As stated in the question (screenshot provided below).

Let me know if this works!

Megan

---

<div class="post-metadata">

### Author: ![monikagel](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@monikagel](https://forum.kx.com/u/monikagel)
#### Post date: [October 23, 2023, 12:00am UTC](https://forum.kx.com/t/advanced-capstone-3-6-test-doesnt-pass/13236/3 "2023-10-23T00:00:00Z")

</div>

Hi Megan,

This did work indeed! I can’t believe I made such a silly mistake! Thank you so much for spotting that.

---

<div class="post-metadata">

### Author: ![abstrphil](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@abstrphil](https://forum.kx.com/u/abstrphil)
#### Post date: [March 18, 2025, 2:18pm UTC](https://forum.kx.com/t/advanced-capstone-3-6-test-doesnt-pass/13236/4 "2025-03-18T14:18:27Z")

</div>

Piggybacking off this topic, I made a similar error and got a similar result, however in my case, fixing the function didn't work.

I can verify that running fiaHandle"tables[]" returns `notAuthorized, but the test is still failing.
