Main Page | Report this Page
Computers Forum Index  »  Computer - Databases - Paradox  »  Error writing file - record not tagged with Formatted...
Page 1 of 1    

Error writing file - record not tagged with Formatted...

Author Message
Jim Moseley...
Posted: Thu Mar 05, 2009 9:22 pm
Guest
Greetings all,

A client is receiving a strange error with a Formatted Memo field "Error
writing file - record not tagged". This also causes a long delay in my app
trying to get the value - sometimes over 5 minutes, which causes the client
to think it is locked & they restart the app (very bad!).

The workaround is to wipe out this problem value, which fixes the problem
for the one record.

I'm writing a generalized script to fix every value. The script copies every
value to a memo variable then to a backup table, & sets the production value
to blank. The table will then be closed, giving an 'empty' MB file. A second
pass on the table then reverses this to restore all the values.

My question is, will the 'corrupted' value survive being copied to/from the
backup, or will it 'fix' itself (and/or become blank)? I'm hoping for the
'fix' option. The MB files are a mystery to me, so I don't know if the corruption
is in -how- the value is stored or is inherent in the value itself.

Looking at Bertil's buglist, this only shows an Sql problem, which we don't
use. Also, there isn't an opportunity to redesign this without formatted
memos, so I'd rather not have that discussion here.

TIA,
Jim Moseley
 
Tony McGuire...
Posted: Thu Mar 05, 2009 9:34 pm
Guest
Jim Moseley wrote:
Quote:
Greetings all,
Looking at Bertil's buglist, this only shows an Sql problem, which we don't
use. Also, there isn't an opportunity to redesign this without formatted
memos, so I'd rather not have that discussion here.


You talk about 'problem value' but don't identify what the value is - that
might be helpful to know.

Is the table damaged once the value has been assigned to the field? That may
be the answer to whether copying the data out and then back in will scrub the
data. Probably only way to tell is to try it.

Is this only happening on that one system? Can you reproduce it at your location?

Can't say that I understand what you are even dealing with, so no way I can
make a suggestion of any type.

--
---------------
Tony McGuire
http://www.lostlore.com
 
Steven Green...
Posted: Thu Mar 05, 2009 9:34 pm
Guest
Quote:
My question is, will the 'corrupted' value survive being copied to/from
the backup, or will it 'fix' itself (and/or become blank)?

unfortunately, there's no way to know.. you're better off killing that one
and/or replacing it..

--

Steven Green - Myrtle Beach, South Carolina USA

http://www.OasisTradingPost.com

Oasis Trading Post
- Collectibles and Memorabilia
- Vintage and Custom Lego Creations

Diamond Software Group
- Paradox Sales and Support

Diamond Sports Gems
- Sports Memorabilia and Trading Cards
"Jim Moseley" <jmose at (no spam) mapson.attglobal.net> wrote in message
news:49afee1e$1 at (no spam) pnews.thedbcommunity.com...
Quote:

Greetings all,

A client is receiving a strange error with a Formatted Memo field "Error
writing file - record not tagged". This also causes a long delay in my
app
trying to get the value - sometimes over 5 minutes, which causes the
client
to think it is locked & they restart the app (very bad!).

The workaround is to wipe out this problem value, which fixes the problem
for the one record.

I'm writing a generalized script to fix every value. The script copies
every
value to a memo variable then to a backup table, & sets the production
value
to blank. The table will then be closed, giving an 'empty' MB file. A
second
pass on the table then reverses this to restore all the values.

My question is, will the 'corrupted' value survive being copied to/from
the
backup, or will it 'fix' itself (and/or become blank)? I'm hoping for the
'fix' option. The MB files are a mystery to me, so I don't know if the
corruption
is in -how- the value is stored or is inherent in the value itself.

Looking at Bertil's buglist, this only shows an Sql problem, which we
don't
use. Also, there isn't an opportunity to redesign this without formatted
memos, so I'd rather not have that discussion here.

TIA,
Jim Moseley
 
Liz McGuire...
Posted: Thu Mar 05, 2009 9:39 pm
Guest
If the formatting is important, you may be in trouble...

I've never been able to fix a memo field without exporting the table to text
and re-importing. This means removing all hard returns from memo fields
and losing any formatting in formatted memo fields. Of course, I've only
ever had this happen once. ChimneySweep wouldn't fix it; table repair wouldn't
fix it; making a new table and moving data (with query, table add, script)
wouldn't fix it. Only making a new table and importing the data from a text
file would fix it.

That said, I never saw the error message you report, so maybe it's something
other than corruption (or a different kind of corruption).

Maybe others have alternatives.

Liz


"Jim Moseley" <jmose at (no spam) mapson.attglobal.net> wrote:
Quote:

Greetings all,

A client is receiving a strange error with a Formatted Memo field "Error
writing file - record not tagged". This also causes a long delay in my
app
trying to get the value - sometimes over 5 minutes, which causes the client
to think it is locked & they restart the app (very bad!).

The workaround is to wipe out this problem value, which fixes the problem
for the one record.

I'm writing a generalized script to fix every value. The script copies
every
value to a memo variable then to a backup table, & sets the production value
to blank. The table will then be closed, giving an 'empty' MB file. A
second
pass on the table then reverses this to restore all the values.

My question is, will the 'corrupted' value survive being copied to/from
the
backup, or will it 'fix' itself (and/or become blank)? I'm hoping for the
'fix' option. The MB files are a mystery to me, so I don't know if the
corruption
is in -how- the value is stored or is inherent in the value itself.

Looking at Bertil's buglist, this only shows an Sql problem, which we don't
use. Also, there isn't an opportunity to redesign this without formatted
memos, so I'd rather not have that discussion here.

TIA,
Jim Moseley
 
Jim Moseley...
Posted: Thu Mar 05, 2009 9:50 pm
Guest
Tony,

Quote:
You talk about 'problem value' but don't identify what the
value is - that might be helpful to know.

That's just it - once the field's value is corrupted, Pdox won't tell me
what it was. I can only tell it was corrupted by the long delay in getting
the value, and the error message.


Quote:
Is the table damaged once the value has been assigned to the field?

Table Repair shows the table is fine, no corruption.


Quote:
Is this only happening on that one system?

It has now happened at 3 different clients over the last year (that I know
of, out of ~1000 total). I can't reproduce it because I'm not sure what
is causing it in the first place.

So, my current goal is to just try to fix all values & see if that helps.
The latest client with the problem has started 'locking up' a couple of
times a day, so after my fix it should be quickly apparent if it had any
effect.

Thanks,
Jim Moseley
 
Jim Giner...
Posted: Thu Mar 05, 2009 10:31 pm
Guest
"record not tagged". Is that something you output from your application?
I've never seen that message from pdox. Course I've never used formatted
memos either.
 
Steve Caple...
Posted: Thu Mar 05, 2009 11:25 pm
Guest
On 5 Mar 2009 10:50:34 -0500, Jim Moseley wrote:

Quote:
Table Repair shows the table is fine, no corruption.

Get Chimney Sweep. Tutility is reknowned for missing some corruption.

--
Steve
 
Jim Hargan...
Posted: Fri Mar 06, 2009 5:20 am
Guest
On Thu, 5 Mar 2009 11:31:29 -0500, Jim Giner wrote:

Quote:
"record not tagged". Is that something you output from your application?
I've never seen that message from pdox. Course I've never used formatted
memos either.

That's what struck me. Formatted memos are rtf internally, where each
paragraph is (must be?) surrounded by start tags and end tags. Maybe a
paragraph lacks its start tags or end tags. That at least makes sense of
the error message.

--
Jim Hargan
 
Tony McGuire...
Posted: Fri Mar 06, 2009 5:28 am
Guest
Jim Hargan wrote:
Quote:
On Thu, 5 Mar 2009 11:31:29 -0500, Jim Giner wrote:

"record not tagged". Is that something you output from your application?
I've never seen that message from pdox. Course I've never used formatted
memos either.

That's what struck me. Formatted memos are rtf internally, where each
paragraph is (must be?) surrounded by start tags and end tags. Maybe a
paragraph lacks its start tags or end tags. That at least makes sense of
the error message.

--
Jim Hargan

And my question is whether the data in these memo fields, or some of it, is
from copy/paste from Internet pages or other applications.

A LOT of garbage, that the user can't see, is captured along with text when
doing copy/paste of text from Internet pages.

--
---------------
Tony McGuire
http://www.lostlore.com
 
Jim Moseley...
Posted: Fri Mar 06, 2009 5:41 am
Guest
Tony,

Quote:
And my question is whether the data in these memo fields, or some of it,
is
from copy/paste from Internet pages or other applications.

A LOT of garbage, that the user can't see, is captured along with text when

doing copy/paste of text from Internet pages.


Good guess. One of the biggest uses of the formatted memo fields built into
the app is to grab directions from web pages, although I extract the raw
html instead of cut/paste. Can't guarantee that the users don't do it manually,
though.

I've started working with Rodney's RTF-to-HTML converter, since I'm not fluent
in RTF. Hopefully that will point to problems.

Thanks,
Jim Moseley
 
Tony McGuire...
Posted: Fri Mar 06, 2009 9:32 pm
Guest
Jim Moseley wrote:
Quote:
Tony,

And my question is whether the data in these memo fields, or some of it,
is
from copy/paste from Internet pages or other applications.
A LOT of garbage, that the user can't see, is captured along with text when

doing copy/paste of text from Internet pages.


Good guess.

Jim Moseley

Not exactly a guess. I've seen it many times.

I believe that if you write the captured text to a textstream, then read back
out using a text stream, you get rid of the 'bad' characters.
Might be able to do this just copying from a memo var to a string var during
the capture process.

One of the worst things that happens during this exchange is that web pages
can contain NULL characters. Which trash fields of data. Even chr(13) or
chr(10) can make some data appear to say 'new record' when it isn't intended.


--
---------------
Tony McGuire
http://www.lostlore.com
 
 
Page 1 of 1    
All times are GMT
The time now is Tue Dec 01, 2009 3:59 pm