# Data Abstract error

**URL:** https://talk.remobjects.com/t/data-abstract-error/19319
**Category:** Data Abstract
**Tags:** dalinq
**Created:** [May 1, 2019, 2:54pm UTC](https://talk.remobjects.com/t/data-abstract-error/19319 "2019-05-01T14:54:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![aolson](https://talk.remobjects.com/user_avatar/talk.remobjects.com/aolson/32/11707_2.png) [@aolson](https://talk.remobjects.com/u/aolson)
#### Post date: [May 1, 2019, 2:54pm UTC](https://talk.remobjects.com/t/data-abstract-error/19319/1 "2019-05-01T14:54:44Z")

</div>

Why would I be getting the following error? I’m using Relativity Server, and compiling to WPF/.NET, and using DA LINQ to do my queries.

I recently added a table to my database, and added it to my DA Schema. I know the table is defined in the schema, but when I try to query the table I get the following error:

```
Unhandled Exception: RemObjects.DataAbstract.DAException: An exception occurred on the server: Field "InvoiceNumber" not mapped to a database field
   at RemObjects.SDK.Message.ProcessException()
   at RemObjects.SDK.BinMessage.InternalReadFromStream(Stream stream)
   at RemObjects.SDK.Message.ReadFromStream(Stream stream)
   at RemObjects.SDK.IpHttpClientChannel.IntDispatch(Stream request, IMessage response)
   at RemObjects.SDK.ClientChannel.Dispatch(IMessage message)
   at RemObjects.SDK.DynamicRequest.InternalMakeRequest()
   at RemObjects.SDK.DynamicRequest.MakeRequest()
   at RemObjects.DataAbstract.Linq.LinqRemoteDataAdapter.FetchData(TableRequestInfo[] tableRequest, String[] tableNames, Action`3 fillMethod)
   at RemObjects.DataAbstract.Linq.RemoteTable`1.Execute(Expression expression, DataParameter[] parameters)
   at RemObjects.DataAbstract.Linq.RemoteTable`1.Execute(Expression expression)
   at RemObjects.DataAbstract.Linq.RemoteTableQuery`1.GetEnumerator()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at psqltest.Program.Main(String[] args) in D:\dev\miller\psqltest\Program.pas:line 28
```

---

<div class="post-metadata">

### Author: ![antonk](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/a/a5b964/32.png) [@antonk](https://talk.remobjects.com/u/antonk)
#### Post date: [May 1, 2019, 2:59pm UTC](https://talk.remobjects.com/t/data-abstract-error/19319/2 "2019-05-01T14:59:47Z")

</div>

Hello

As the error message says, there is an issue with the table’s Schema definition.

Open the Schema, go to that table. Then open its Statements node and select the **Mappings** tab.

Then check that the mapping is properly set for the field in question ( **InvoiceNumber** ).

Hope that helps

---

<div class="post-metadata">

### Author: ![aolson](https://talk.remobjects.com/user_avatar/talk.remobjects.com/aolson/32/11707_2.png) [@aolson](https://talk.remobjects.com/u/aolson)
#### Post date: [May 1, 2019, 3:26pm UTC](https://talk.remobjects.com/t/data-abstract-error/19319/3 "2019-05-01T15:26:33Z")

</div>

Thanks!
