Link to home
Start Free TrialLog in
Avatar of buty
buty

asked on

Row Changed between retrieve and update !!

Hi every body...
I have datawindow comes from three tables ,and while update I face this problem
first time update every things ok .
if I made any changes(without resellectrow or refresh )for  second time to the datawindow field that comes from   table2 only the Error "Row Changed between retrieve and update " appears.I checked every things and I made commit after update but still this problem happend.
Please help
Thanks...
Avatar of gajender_99
gajender_99

When the table has identity column, the column is marked as key-column but it is not marked as identity column in datawindow update properties:
When You insert a new column and update it succesfuly, the row is inserted, but its new identity value is not got from the database.

When You will change this row immediately an update, then update() function generates update or delete command with ".. where identity_column is null".

The identity_column has got a new value, but datawindow does not know about it. You have to mark this column as "identity" in datawindow painter update properties.

ASKER CERTIFIED SOLUTION
Avatar of diasroshan
diasroshan
Flag of Kuwait image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I agree with rosh this happens when Powerbuider tries to fire SQL STATEMENT for a particular row with criteria and doesnt find any matching row in database.
Hi,

guess my post is the right solution for the authors query...

Cheers,
Rosh