Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with Data Loss
Message
From
02/04/2003 11:51:11
 
 
To
02/04/2003 10:46:54
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00772957
Message ID:
00773023
Views:
19
This message has been marked as a message which has helped to the initial question of the thread.
Hi Joel.

>We have a client that is losing data in one table. The problem is associated with a payment reversal routine. We have one table that maintains a customer's account balance, and other tables that are affected by the reversal. The routine adjusts all these tables and commits the data inside a transaction (we are using local views). Later, the client finds that all tables have been committed properly, except for the one containing the account balance. There are other fields in the table beside the balance that aren't being updated, so we apparently are losing changes to the entire record. Of course, this behavior isn't consistent. The changes are saved successfully sometimes, and other times not.

Are you inserted records into the account balance table or just updating values? If the former, then this could be caused by table corruption, although you've used SDT to repair it so it shouldn't be an ongoing problem (unless corruption is recurring). If the latter, then check to ensure TABLEUPDATE() is returning .T. (I'm sure you're doing that, but JIC) and that you're not double-buffering the table (that is, the view is buffered *and* the table is buffered, so TABLEUPDATE() of the view is writing to the table's buffer, but you're not using TABLEUPDATE() on the table, so the changes are being discarded).

Doug
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform