records disappear [solved]

records disappear [solved]

Postby lucasdebeltran » Mon Jan 21, 2013 2:49 pm

Dear friends of the forum,

A customer reported me that some records in a .dbf just disappear.

Occupies 10 MB and has over 11,500 articles.

Works in single user, no network, with Windows 8.

The thing is, I have no idea why it happens. I check the DBF, I can open it and Idon´t get errors like corruption, etc, but the records are gone. I try to use a recall but they don´t appear.

Customer has´t done a PACK.

Has anyone experienced a problem like this?. It is very rare.

Thank you. Best regards
Last edited by lucasdebeltran on Tue Feb 05, 2013 7:53 pm, edited 1 time in total.
Muchas gracias. Many thanks.

Un saludo, Best regards,

Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]

Implementando MSVC 2010, FWH64 y ADO.

Abandonando uso xHarbour y SQLRDD.
User avatar
lucasdebeltran
 
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am

Re: records disappear

Postby MarcoBoschi » Mon Jan 21, 2013 2:53 pm

Who uses this table?
User avatar
MarcoBoschi
 
Posts: 1065
Joined: Thu Nov 17, 2005 11:08 am
Location: Padova - Italy

Re: records disappear

Postby lucasdebeltran » Mon Jan 21, 2013 6:23 pm

Just only one user in a sigle PC. No network used.

Thanks.
Muchas gracias. Many thanks.

Un saludo, Best regards,

Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]

Implementando MSVC 2010, FWH64 y ADO.

Abandonando uso xHarbour y SQLRDD.
User avatar
lucasdebeltran
 
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am

Re: records disappear

Postby Otto » Mon Jan 21, 2013 8:45 pm

How do you know records where there.
Did you commit the input.
Windows restore point?
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6336
Joined: Fri Oct 07, 2005 7:07 pm

Re: records disappear

Postby fraxzi » Tue Jan 22, 2013 7:37 am

Hi!

This can happen if table header was corrupted. It is very important that all table must be closed when user end the program.
This was an experienced when DOS based app was closed by user by clicking the close button of DOS box and not the 'quit' button of the actual app.. (so upgraded to FWH)


My two cents.
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
 
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines

Re: records disappear

Postby TimStone » Wed Jan 23, 2013 4:52 pm

I had that happen last week. A customer had an invoice open and went to print it. He was on a workstation. ( There are six files, plus 4 fpt and 6 cdx files open ). When he sent it to the printer, the system locked up. He went back in and the main invoice record ( in one file ) wasn't there. I checked ... it simply wasn't there The data in the other five files that tied to this record in the primary were all in place.

I've had people report this but thousands of these records are added each week at various sites, and I may get one record per every two months that just never gets saved. Its way to difficult to track or reproduce, and it is not even consistent to a particular site.

Tim
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2944
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: records disappear

Postby lucasdebeltran » Wed Jan 23, 2013 6:28 pm

Thank you for the feedback.

It seems that is the Microsoft antivirus:
http://answers.microsoft.com/en-us/prot ... d96ee73f17

I am going to unisntall it and check what happens.
Muchas gracias. Many thanks.

Un saludo, Best regards,

Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]

Implementando MSVC 2010, FWH64 y ADO.

Abandonando uso xHarbour y SQLRDD.
User avatar
lucasdebeltran
 
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am

Re: records disappear

Postby Otto » Wed Jan 23, 2013 6:48 pm

Lucas,
I repost my questions:

How do you know records where there.
Did you commit the input.
Windows restore Point?
Are these records at the end of the database are these old entries.

Sure you check the database with no index opened.


Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6336
Joined: Fri Oct 07, 2005 7:07 pm

Re: records disappear

Postby lucasdebeltran » Wed Jan 23, 2013 7:00 pm

Otto,

>>How do you know records where there.
In previous backups they were.

>>Did you commit the input.
There is no network mode. Besides, before exiting I do:
Code: Select all  Expand view  RUN
 DbCommitAll()      // Guardamos datos
   SysRefresh()
   DbCloseAll()
   ResAllFree()       // Liberamos recursos

   //CheckRes()

   QUIT
 


>>Windows restore Point?
No.


>>Are these records at the end of the database are these old entries.
Old entries.


>>Sure you check the database with no index opened
Of course, with CDBF Viewer
Muchas gracias. Many thanks.

Un saludo, Best regards,

Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]

Implementando MSVC 2010, FWH64 y ADO.

Abandonando uso xHarbour y SQLRDD.
User avatar
lucasdebeltran
 
Posts: 1303
Joined: Tue Jul 21, 2009 8:12 am

Re: records disappear

Postby Otto » Wed Jan 23, 2013 8:32 pm

Lucas,
do you use CDX.
This index has autoopen.
I am sure you know it.

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6336
Joined: Fri Oct 07, 2005 7:07 pm

Re: records disappear

Postby Otto » Wed Jan 23, 2013 8:37 pm

Lucas,
is this WINDOWS 8 release version.

The preview Version since some days shuts down without warning every hour.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6336
Joined: Fri Oct 07, 2005 7:07 pm

Re: records disappear

Postby Enrico Maria Giordano » Wed Jan 23, 2013 11:12 pm

Otto wrote:Are these records at the end of the database are these old entries.


lucasdebeltran wrote:Old entries.


A record that is not the last one simply cannot disappear without a PACK.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: records disappear

Postby Maurizio » Thu Jan 24, 2013 1:45 pm

Like Enrico wrote :
A record that is not the last one simply cannot disappear without a PACK.

Have you checked what happens when you compare the same record number between the file copy and the actual file ?
If you use DATABASE class with aBuffer , It happens sometime that the record pointer changes ( for example in a browse )
and executes an update on a different record . Checks whether there is an overlap of records and not a loss .

Maurizio
User avatar
Maurizio
 
Posts: 825
Joined: Mon Oct 10, 2005 1:29 pm

Re: records disappear

Postby Jeff Barnes » Thu Jan 24, 2013 5:31 pm

A record that is not the last one simply cannot disappear without a PACK.


I would disagree with the above statement.... :shock:

I have a app that was written years ago used for generating service reports.

Every now and then (very rare indeed) I will notice that a record has gone missing.
I know the record did exist at one point since I have a paper printout that shows the record existed.
Since the missing records are from past years I also know they are not the last record in the database.
Also, since these service reports are to track repairs done on medical equipment I have not included a PACK function as I do not want the end user to be able to permanently remove a record (in fact they cannot even delete a record ... only I have that ability).

I have verified that it is not an index issue (opened the database without any index via a third party program).

It would seem that there is a little gremlin running around stealing our data every now and then :wink:
Thanks,
Jeff Barnes

(FWH 16.11, xHarbour 1.2.3, Bcc730)
User avatar
Jeff Barnes
 
Posts: 929
Joined: Sun Oct 09, 2005 1:05 pm
Location: Ontario, Canada

Re: records disappear

Postby Enrico Maria Giordano » Thu Jan 24, 2013 6:06 pm

Jeff Barnes wrote:
A record that is not the last one simply cannot disappear without a PACK.


I would disagree with the above statement.... :shock:


To physically delete a record that is not the last one you would have to copy all the records in a new table excluding that one. Or copy all fields from the next record and so on to the end of table. There are no other ways, as far as I know.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 40 guests