# in-mem ...getColumnNames() returns a non-existing column

**URL:** <https://forum.servoy.com/t/in-mem-getcolumnnames-returns-a-non-existing-column/20117>\
**Category:** Classic Servoy\
**Created:** [November 13, 2019, 12:31pm UTC](https://forum.servoy.com/t/in-mem-getcolumnnames-returns-a-non-existing-column/20117 "2019-11-13T12:31:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhilgers](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@jhilgers](https://forum.servoy.com/u/jhilgers)\
**Post date:** [November 13, 2019, 12:31pm UTC](https://forum.servoy.com/t/in-mem-getcolumnnames-returns-a-non-existing-column/20117/1 "2019-11-13T12:31:14Z")

</div>

Hi all,

I’m using a foundset load trigger to initialize an in-mem datasource with the code below

```auto
function onFoundSetLoad_record_history(inMemName) {
	var ds = databaseManager.createEmptyDataSet(0, datasources.mem.record_history.getColumnNames());
	ds.createDataSource(inMemName);
}

```

getColumnNames() returns [“\_sv\_rowid”… as the first column which doesn’t exist in the in-mem datasource.

createDataSource(inMemName) then reaises this warning:  
WARN com.servoy.j2db.util.Debug - Dataset column names definition does not match inmem table definition for datasource

Any ideas how to get rid of this?

best  
Jo

Servoy Version: 2019.9.0.3522

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [November 22, 2019, 10:25am UTC](https://forum.servoy.com/t/in-mem-getcolumnnames-returns-a-non-existing-column/20117/2 "2019-11-22T10:25:21Z")

</div>

can you create a case for this?  
I think the internal generated pks (\_svy\_rowid) should not be given back there, it really should only give the stuff you give (design time or at runtime)

---

<div class="post-metadata">

**Author:** ![jhilgers](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@jhilgers](https://forum.servoy.com/u/jhilgers)\
**Post date:** [November 22, 2019, 10:58am UTC](https://forum.servoy.com/t/in-mem-getcolumnnames-returns-a-non-existing-column/20117/3 "2019-11-22T10:58:18Z")

</div>

done: SVY-14405
