XData Cascade delete bug?

Hi Wagner,

There appears to be a bug in XData that prevents you from cascade deleting where you are using proxies. I have done a little test project that shows the problem, see attached. In the test I can cascade delete using Aurelius directly but when I come to do it via XData I get the error:

EXDataGetRequestException with message 'XData server request error.
Uri: http://localhost:2001/tms/multitenant/Master(1)
Status code: 500
Error Code: ArgumentOutOfRangeException
List index out of bounds (-1).  TList<Entities.TDetail> is empty'

XDataCascadeDeleteTests.zip (9.9 KB)

Kind Regards

Steve

Cascade delete sql dif.html (60.5 KB)

Hi Steve,

I'm getting an error when compiling your project (after disabling TESTINSIGHT):

[dcc32 Error] XDataCascadeDeleteTests.dpr(50): E2003 Undeclared identifier: 'TDUnitXXMLNUnitFileLogger'

I was able to workaround the compilation error and reproduce the problem. We fixed the issue, thanks for reporting.

Next release will include the fix.