fvancrae
(Frederic Vancraeyveldt)
1
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?
EvgenyK
(Evgeny Karpov)
2
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:
fvancrae
(Frederic Vancraeyveldt)
3
hmm, just my code was disabled but i don’t get any exception
fvancrae
(Frederic Vancraeyveldt)
4
FYI: I had to enable IndexOutOfRangeException, i will retry
fvancrae
(Frederic Vancraeyveldt)
6
FYI: I don’t think I have AfterProcessDelta events myself.
I assume this this from RO/DA code?
Do you have enough info?
EvgenyK
(Evgeny Karpov)
7
Hi,
not yet.
can you show callstack, pls?
what exactly code raises exception?
EvgenyK
(Evgeny Karpov)
9
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 
otherwise we had a lot of reports for past 20 years…
fvancrae
(Frederic Vancraeyveldt)
10
That da schema does not have any business rules
fvancrae
(Frederic Vancraeyveldt)
11
FYI: If I remove some fields (in a daschema clone) the issue does not occur. I’ll try to pinpoint the field/issue
fvancrae
(Frederic Vancraeyveldt)
12
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
EvgenyK
(Evgeny Karpov)
13
Hi,
Autoinc type can be replaced with Integer for such fields