# Incorrect example mentioned on KDB-X page

**URL:** <https://forum.kx.com/t/incorrect-example-mentioned-on-kdb-x-page/15549>\
**Category:** Community Support\
**Tags:** kdb-x\
**Created:** [September 12, 2026, 10:01pm UTC](https://forum.kx.com/t/incorrect-example-mentioned-on-kdb-x-page/15549 "2026-09-12T22:01:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vajindarladdad](https://avatars.discourse-cdn.com/v4/letter/v/82dd89/32.png) [@vajindarladdad](https://forum.kx.com/u/vajindarladdad)\
**Post date:** [September 12, 2026, 10:01pm UTC](https://forum.kx.com/t/incorrect-example-mentioned-on-kdb-x-page/15549/1 "2026-09-12T22:01:52Z")

</div>

Hi Team,

Hope you are doing well.

I have observed that on page [A Brief Introduction to q and KDB-X - KDB-X Documentation](https://code.kx.com/kdb-x/learn/brief-introduction.html#simple-persistence) an incorrect example is mentioned.

![image.png](https://mail.google.com/mail/u/0?ui=2&ik=8db8850854&attid=0.1&permmsgid=msg-a:r3308412075534987482&th=1a0979ab5a121ff2&view=fimg&fur=ip&permmsgid=msg-a:r3308412075534987482&sz=s0-l75-ft&attbid=ANGjdJ90tAGQTiPt50h2UTC4XVXPwoG0ss98kVHfhe8tyLjzkxiC4LvLd8QPl5nVazaFOToNFAsOgz3X2STDyFT2z7IMJxcsNETtAKb2hTGKr1qnmBY6zbDUAJygCIo&disp=emb&realattid=ii_mtyx3o870&zw)

Passing more than 2 parameters gives "Too many parameters passed to buildPersistedDB" message.

![image.png](https://mail.google.com/mail/u/0?ui=2&ik=8db8850854&attid=0.2&permmsgid=msg-a:r3308412075534987482&th=1a0979ab5a121ff2&view=fimg&fur=ip&permmsgid=msg-a:r3308412075534987482&sz=s0-l75-ft&attbid=ANGjdJ9x8UIayihV7wq2FfZxi8SJNDLJbaNOQO1XHaUmJF2uPv6A2wMudbIvfnrjsV-QKAbR5k3oxOOBq6BkvIbHoyUsnCjJHAAgI3_NmYbaVtUL-x7MZCHXv93gsjo&disp=emb&realattid=ii_mtyx5lfj1&zw)

Could you please review & comment on my observation ?

Thanks,

Vajindar Laddad

---

<div class="post-metadata">

**Author:** ![rocuinneagain](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/rocuinneagain/32/287_2.png) [@rocuinneagain](https://forum.kx.com/u/rocuinneagain)\
**Post date:** [September 14, 2026, 9:06am UTC](https://forum.kx.com/t/incorrect-example-mentioned-on-kdb-x-page/15549/2 "2026-09-14T09:06:51Z")

</div>

We'll get that fixed, thanks.

Correction will look like:

```q
q)([getInMemoryTables; buildPersistedDB]): use `kx.datagen.capmkts / Load the module
q)buildPersistedDB["/tmp/kdbdb";([tradesPerDay: 10000; start: 2026.02.01; end: 2026.02.02])]

```

Full documentation lives with the module on [Github](https://github.com/KxSystems/datagen/blob/main/docs/references/capmkts.md#date-range-start-and-end).

---

<div class="post-metadata">

**Author:** ![fbodon](https://avatars.discourse-cdn.com/v4/letter/f/f0a364/32.png) [@fbodon](https://forum.kx.com/u/fbodon)\
**Post date:** [September 14, 2026, 12:47pm UTC](https://forum.kx.com/t/incorrect-example-mentioned-on-kdb-x-page/15549/3 "2026-09-14T12:47:16Z")

</div>

This is fixed. Thanks for reporting the issue.
