# Loading sym in a namespace

**URL:** <https://forum.kx.com/t/loading-sym-in-a-namespace/14193>\
**Category:** Community Support\
**Tags:** imported, kdb-and-q\
**Created:** [April 15, 2025, 5:07am UTC](https://forum.kx.com/t/loading-sym-in-a-namespace/14193 "2025-04-15T05:07:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackyyuk](https://avatars.discourse-cdn.com/v4/letter/j/a4c791/32.png) [@jackyyuk](https://forum.kx.com/u/jackyyuk)\
**Post date:** [April 15, 2025, 5:07am UTC](https://forum.kx.com/t/loading-sym-in-a-namespace/14193/1 "2025-04-15T05:07:10Z")

</div>

[https://learninghub.kx.com/forums/topic/loading-sym-in-a-namespace](https://learninghub.kx.com/forums/topic/loading-sym-in-a-namespace)

Hello,

I am trying to load some data from KDB table:

q) sym:get&nbsp; `:/data/sym

q) select ASymCol from `:/data/2024.01.01/tbl

In the above example, AsymCol is in a type of `sym$(...), where the corresponding sym file is located in&nbsp; `:/data/sym, and everything works properly.

But if I do this in a namespace:

q) \d .Mynamespace

q.Mynamespace) sym:get `:/data/sym

q.Mynamespace) select ASymCol from `:/data/2024.01.01/tbl

The returned&nbsp;ASymCol simply shows integer values instead of the symbol from sym.

Is there anyway to assign the sym to the proper sym value?

I also unable to assign any value to a variable at root namespace. Is there anyway to do that?

Thanks so much.

Jacky

---

<div class="post-metadata">

**Author:** ![mwoods](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/mwoods/32/35_2.png) [@mwoods](https://forum.kx.com/u/mwoods)\
**Post date:** [April 15, 2025, 10:11am UTC](https://forum.kx.com/t/loading-sym-in-a-namespace/14193/2 "2025-04-15T10:11:18Z")

</div>

To assign a root variable from within a namespace without leaving it you can&nbsp;use upsert or insert and the symbol `.. notation to refer to root namespace:

`..sym upsert get `:/data/sym
