Article View: borland.public.cppbuilder.database.multi-tier
Article #188Error: Record not found or changed by another user
From: Danny
Date: Sat, 14 Jun 2003 14:21
Date: Sat, 14 Jun 2003 14:21
28 lines
1730 bytes
1730 bytes
I am creating a database application with TClientdataset and
TXMLtransformprovider.
The structure of the database is a main record with a nested dataset:
<Record No="1">
<some fields>
<Product No="ABC">
</Product>
</Record>
When I add or delete records continuously and call ApplyUpdates(-1),
everything works fine.
However, when I add some records and call ApplyUpdates(-1) and closes the
form that contains the dataset,
then after reopening the form and reloading the dataset, I try to delete the
records that I just created, EDatabaseError raises
1. Record not found or changed by another user.
2. Unabled to find record. No key specified.
Does anyone know what may have caused the errors?
Any help is greatly appreciated.
Danny
Technical Details
Message-ID:
<3eeb2f5b@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,3ce952e66dc0bcdd,start X-Google-Attributes: gidfcd2b,public X-Google-ArrivalTime: 2003-06-14 07:26:41 PST Reply-To: "Danny" <changcc@phys.sinica.edu.tw> From: "Danny" <changcc@phys.sinica.edu.tw> Newsgroups: borland.public.cppbuilder.database.multi-tier Subject: Error: Record not found or changed by another user Date: Sat, 14 Jun 2003 22:21:20 +0800 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 61.230.245.21 Message-ID: <3eeb2f5b@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1055600475 61.230.245.21 (14 Jun 2003 07:21:15 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail