# Need help on Advance Capstone 3.4 excercise

**URL:** <https://forum.kx.com/t/need-help-on-advance-capstone-3-4-excercise/12971>\
**Category:** Community Support\
**Tags:** kx-academy\
**Created:** [August 8, 2023, 4:13pm UTC](https://forum.kx.com/t/need-help-on-advance-capstone-3-4-excercise/12971 "2023-08-08T16:13:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashish311](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@ashish311](https://forum.kx.com/u/ashish311)\
**Post date:** [August 8, 2023, 4:13pm UTC](https://forum.kx.com/t/need-help-on-advance-capstone-3-4-excercise/12971/1 "2023-08-08T16:13:00Z")

</div>

Not able to get access the port after .z.pw function.

.z.pw:{[user;pswd] $[.Q.sha1 pswd ~.perm.users[user][`password]; 1b; 0b]} meta .perm.users c | t f a --------| ----- user | s password| X api | s .perm.users user | password api -------| ---------------------------------------------------------------- jmurphy| 0x6dc840b1dc23606cdb08eeb1462b9f55e1690a42 all psmith | 0x815016d18e68cb0f568d6f5049e667e70d03ddde all ataylor| 0x3c3ca14c5ce25d349406e0a0579b7a944c3ee8fc all twilson| 0x83b1604a8caebdd7ae17e4e26f4be98c68df80ec all fiauser| 0xb03fc290033b0897369bc5588a71c42d954b9c84 .fia.getSummaryReport

---

<div class="post-metadata">

**Author:** ![Michaela](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@Michaela](https://forum.kx.com/u/Michaela)\
**Post date:** [August 8, 2023, 5:36pm UTC](https://forum.kx.com/t/need-help-on-advance-capstone-3-4-excercise/12971/2 "2023-08-08T17:36:00Z")

</div>

Hi&nbsp;&nbsp;can you provide an example or screenshot of what error/issue you are seeing?

Your definition of&nbsp;.z.pw looks correct at a glance.

Perhaps the expunge command might help you here to revert your .z.pw definition if that is the issue

(neg hdbH)“\x .z.pw”

&nbsp;

---

<div class="post-metadata">

**Author:** ![ashish311](https://avatars.discourse-cdn.com/v4/letter/a/a9adbd/32.png) [@ashish311](https://forum.kx.com/u/ashish311)\
**Post date:** [August 8, 2023, 11:45pm UTC](https://forum.kx.com/t/need-help-on-advance-capstone-3-4-excercise/12971/3 "2023-08-08T23:45:00Z")

</div>

Here is the screen shot of error.

---

<div class="post-metadata">

**Author:** ![Michaela](https://avatars.discourse-cdn.com/v4/letter/m/f4b2a3/32.png) [@Michaela](https://forum.kx.com/u/Michaela)\
**Post date:** [August 9, 2023, 2:51pm UTC](https://forum.kx.com/t/need-help-on-advance-capstone-3-4-excercise/12971/4 "2023-08-09T14:51:00Z")

</div>

&nbsp;You are just missing square brackets when using .Q.sha1&nbsp;

```
hdbH".z.pw:{[user;pswd] $[.Q.sha1[pswd] ~.perm.users[user][`password]; 1b; 0b]}"
```

 

&nbsp;
