as I understand, you are updating only 4 fields in qaIssuePoReceipts. is it correct?
can you set breakpoint at aRefreshDataset.Open; line in TDABusinessProcessor.RefreshDeltaChange (uDABusinessProcessor.pas) and inspect properties of aRefreshDataset like SQL, Params, etc
What is the intended process for determining what the refresh dataset is? The data change is successfully appended to the target table. What should the refresh dataset be?
I set the requested break point per above. It appears that the processor is drilling down to joined tables which have autoincs and trying to return those values even though they are not part of the target table.
The target table has these columns:
Here is the breakpoint stuff showing the results of the GenerateRefreshDataSet Event:
The PartKey and PoNumber fields are autoincs, but they are joined tables and are not part of the updates. I do not think they should be evaluated as such if they are not part of the target table?
I changed the datatypes to Integer for the two fields, and that did indeed allow the updates to succeed. Thanks for your excellent help as always. I truly appreciate it.
FWIW, I think to say that the field types are incorrectly set up as AutoInc may not be correct. The field types were automatically generated by the Schema Modeler and not adjusted manually, and In fact they do have Automatically Incremented values.
Delphi drivers can detect datAutoInc type only for AutoSQL statements and can’t for manual sql with joins so I think, they were set to datAutoInc by hand.