Array bounds issue - where to look

I have a delphi DA client and a .NET DA server.

When I append to the dataset I get an “index was outside the bounds of the array” error thrown bt the ApplyUpdates.

My DA schema appears OK, my strongly typed delphi sources are recreated with full rebuild.

When debugging through the server side no exception occurs & the records are succesfully created

The values (100000953 & 954) are the primary keys I created and added to the DB

What throws this error? What am I doing wrong? How can I solve it?

Hi,

Can you launch your .NET server in debugger and see call stack where are these errors raised, pls?

Note: you may need to uncheck “enable just my code” in VS settings:

hmm, just my code was disabled but i don’t get any exception

FYI: I had to enable IndexOutOfRangeException, i will retry

FYI: I don’t think I have AfterProcessDelta events myself.

I assume this this from RO/DA code?

Do you have enough info?

Hi,

not yet.
can you show callstack, pls?
what exactly code raises exception?

This is the callstack

Hi,

Do you have any business rules on your .NET server?
if you are using reduced delta, try to disable them. will this error be reproduced?

I don’t think, that I can easily reproduce this issue with simple testcase :frowning:
otherwise we had a lot of reports for past 20 years…

That da schema does not have any business rules

FYI: If I remove some fields (in a daschema clone) the issue does not occur. I’ll try to pinpoint the field/issue

I found the issue

I left join another table which has an autonumber (identity) primkey

The DA schema created this field with type ‘autoinc’

Then I manually specify that it is optional and changes should not be logged.

However RO/DA still tries to do something special in that case which throws the exception

Regards,

Frederic

Hi,

Autoinc type can be replaced with Integer for such fields