IdNotSetException being received

I am calling a list from my XData server and it is throwing the following exception

ERROR
XData server request error. Uri: http://127.0.0.1:2015/tenovus/User Status code: 500 Error Code: IdNotSetException Id not set on entity of class TUser. | fMessage::XData server request error. Uri: http://127.0.0.1:2015/tenovus/User Status code: 500 Error Code: IdNotSetException Id not set on entity of class TUser. FJSError::Error: XData server request error. Uri: http://127.0.0.1:2015/tenovus/User Status code: 500 Error Code: IdNotSetException Id not set on entity of class TUser. fHelpContext::0 FErrorResult::[object Object]
at http://localhost:8000/GAShopApp/GAShopApp.js [69786:17]

The TUser Definition does however specify the Id

[Table('USERS')]
  [Sequence('SEQ_USER')]
  [Id('FId', TIdGenerator.IdentityOrSequence)]

any ideas?

One common reason for such error is that you have records with Id = 0 in your database. When Aurelius tries to load such record, it raises that error message.

1 Like

Thanks, that was the issue.

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.