New call-to-action
Results 1 to 14 of 14

Thread: How to fix a big FPT File

  1. #1
    Member
    Real Name
    Luis E Rodriguez-Galvan
    Join Date
    Oct 2007
    Location
    Monterrey, N.L. Mexico
    Posts
    48

    Default How to fix a big FPT File

    I have a table with a memo field and the FPT file has grown to 1.35 gb. which I am sure is empty.

    Please advise how to fix this

    Thanks

    Luis R
    Mexico

  2. #2
    "Certified" Alphaholic Ted Giles's Avatar
    Real Name
    Ted Giles
    Join Date
    Aug 2000
    Location
    In the Wolds, Louth, Lincolnshire, UK
    Posts
    4,492

    Default Re: How to fix a big FPT File

    Well as nobody has answered Luis,
    Here are a few questions first.

    * How does the Memo field get populated? [If you suspect it's empty, why is it growing? Blank Memo fields take 10 bytes - populated or not]
    * Do you have a current backup of the data?
    * How do you know which Memo fields are empty? [Run a Query using Query Genie on the Table for the specific field.]
    * Has an Image been inserted into the Memo field somehow?

    Once you have decided whether there are records you want to keep, we can go further.
    Ted Giles
    Example Consulting - UK
    .

    http://ec12.example-software.com//
    See our site for Alpha Support, Conversion and Upgrade.

  3. #3
    Member
    Real Name
    Craig Schumacker
    Join Date
    May 2000
    Posts
    729

    Default Re: How to fix a big FPT File

    Memo fields have had a reputation of bloating, often hitting the 2GB limit on at least FAT32 hard disks.

    After looking at what Ted suggested above, as an existing backup is your first, best solution, here are my thoughts

    If it were me, I'd reboot the machine where the files are located and get a backup of what is there in the app directory. Do the backup before any AA files are opened.

    Then I'd open Alpha and right click on the DBF file, looking for utilities, then look for check / repair memo fields.

    I have never used it, myself, but it was added after many users were experiencing corruption with FPT files.

    You might want to explore the software documentation on what this actually does.

    It was never determined exactly why this occurs occasionally, but there are many threads with thoughts on why. I think things like sudden file / network disconnects, field rule conflicts, and the like were ideas tossed on the table.

  4. #4
    "Certified" Alphaholic Ted Giles's Avatar
    Real Name
    Ted Giles
    Join Date
    Aug 2000
    Location
    In the Wolds, Louth, Lincolnshire, UK
    Posts
    4,492

    Default Re: How to fix a big FPT File

    The options are a bit drastic if you are an AS newbie, but easily possible with a few built in procedures, Craig.
    Whatvwe need is the progenitor.
    Ted Giles
    Example Consulting - UK
    .

    http://ec12.example-software.com//
    See our site for Alpha Support, Conversion and Upgrade.

  5. #5
    Volunteer Moderator
    Real Name
    Alan Buchholz
    Join Date
    Oct 2000
    Location
    Delavan, Wisconsin
    Posts
    9,662

    Default Re: How to fix a big FPT File

    Is this the only memo field in that table and there is truly no data in the memo field that you need?

    if so,
    Backup up your table.

    Remove the memo field from the table.

    the .fpt should go away.

    Don't use memo fields unless you can control them. They are a soft spot in dbf tables.
    Last edited by Al Buchholz; 02-17-2020 at 06:14 PM.
    Al Buchholz
    Bookwood Systems, LTD
    Weekly QReportBuilder Webinars Thursday 1 pm CST

    Occam's Razor - KISS
    Normalize till it hurts - De-normalize till it works.
    Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
    When we triage a problem it is much easier to read sample systems than to read a mind.

  6. #6
    "Certified" Alphaholic Ted Giles's Avatar
    Real Name
    Ted Giles
    Join Date
    Aug 2000
    Location
    In the Wolds, Louth, Lincolnshire, UK
    Posts
    4,492

    Default Re: How to fix a big FPT File

    Not quite, Al.
    Deleting a Memo field is fine, but it persists until you Compact on your media.
    What I would do is;
    Back up everything.
    Query the memo table for empty memo fields.
    If not all are empty then;
    Duplicate the table with the memo field - include Records.
    Delete memo field in the master table.
    Compact.
    Create a Post Operation which posts memo data from the copied table to the master table IF the memo field is not empty.

    Then, think about how to manage or use this type of field in future.
    Ted Giles
    Example Consulting - UK
    .

    http://ec12.example-software.com//
    See our site for Alpha Support, Conversion and Upgrade.

  7. #7
    "Certified" Alphaholic DaveM's Avatar
    Real Name
    Dave Mason
    Join Date
    Jul 2000
    Location
    Hudson, FL
    Posts
    6,047

    Default Re: How to fix a big FPT File

    If you create more than one memo field in a table(memo,rtfmemo,image) they all share the one file. Usually it comes down to one or two records where there is corruption. Many of them have been found by simply scrolling the records one at a time in a browse. The browse will stop scrolling at the corrupted record. But not always that simple.
    Dave Mason
    dave@aldadesktop.com
    Skype is dave.mason46

  8. #8
    Member
    Real Name
    Luis E Rodriguez-Galvan
    Join Date
    Oct 2007
    Location
    Monterrey, N.L. Mexico
    Posts
    48

    Default Re: How to fix a big FPT File

    I really appreciate your help. The way I fixed it, was finding the records that caused the problems and Delete them. The only problem was that I took 2-3 hs to locate the records.

    Thanks for the help

  9. #9
    Volunteer Moderator Peter.Greulich's Avatar
    Real Name
    Peter Greulich
    Join Date
    Apr 2000
    Location
    Boston, MA
    Posts
    11,656

    Default Re: How to fix a big FPT File

    The main cause for memo field corruption (in my experience) is the record pointer inadvertently moving during a change or enter operation. So the secret to memo field vitality is to freeze navigation during a change or enter operation. The easiest way to do this is to put the memo field into a modal form. Require the user to save or cancel the operation before exiting the modal. If you can't do a modal, use xbasic to disable navigation during change or enter. The other thing to do as best practice is to isolate the memo field(s) a table just for that memo field. Link it to your main table via a set. So the linked table only has two fields - the memo field and the linking id field. If your memo table gets corrupted or otherwise goes south, your main table is not damaged in the least. Also don't put memo fields in browses, that too is potentially asking for trouble. If you follow the above, you'll likely not experience any problems with memo fields. Once I did that in my own applications, I never had a problem ever again with memo fields.

  10. #10
    "Certified" Alphaholic Mike Wilson's Avatar
    Real Name
    mike wilson
    Join Date
    Apr 2005
    Location
    Grand Rapids, Michigan
    Posts
    4,229

    Default Re: How to fix a big FPT File

    Or the very best way... don't use forms or browses to enter or edit data. Use xdialogs and make changes to tables through code and not through forms or browses. The true and only really safe way to do this work.
    Mike W
    __________________________
    "I rebel in at least small things to express to the world that I have not completely surrendered"

  11. #11
    "Certified" Alphaholic DaveM's Avatar
    Real Name
    Dave Mason
    Join Date
    Jul 2000
    Location
    Hudson, FL
    Posts
    6,047

    Default Re: How to fix a big FPT File

    Agreeing with Peter and add people copying odd or word files directly into memo field have produced the worst problems for me.
    Dave Mason
    dave@aldadesktop.com
    Skype is dave.mason46

  12. #12
    Member
    Real Name
    Craig Schumacker
    Join Date
    May 2000
    Posts
    729

    Default Re: How to fix a big FPT File

    Dave:

    Now that's interesting about the copy / paste from Word or the like. I never thought of / knew that.

    None of my memo fields are used in that manner, and have always been stable. Most fill in by API sources like weatherunderground, upcmdb, service channel, and others. The rest are typed directly in by users and just a couple paragraphs at most.

    I wonder if that's why Luis, seemingly following your suggestion, tracked down his issue to a couple records.

    I'll have to remember that little tidbit, as it makes sense to me that the paste may have something the memo field just cannot swallow. This may explain why I have been so lucky where others are not.

    It always feels good to learn new things. Thanks to all.

  13. #13
    "Certified" Alphaholic DaveM's Avatar
    Real Name
    Dave Mason
    Join Date
    Jul 2000
    Location
    Hudson, FL
    Posts
    6,047

    Default Re: How to fix a big FPT File

    "The rest are typed directly in by users and just a couple paragraphs at most." That is what you think and hope for
    Last edited by DaveM; 02-25-2020 at 02:23 AM.
    Dave Mason
    dave@aldadesktop.com
    Skype is dave.mason46

  14. #14
    "Certified" Alphaholic DaveM's Avatar
    Real Name
    Dave Mason
    Join Date
    Jul 2000
    Location
    Hudson, FL
    Posts
    6,047

    Default Re: How to fix a big FPT File

    It dies not seem xuch a big problem if user opens the memo field and uses thw supplied button to paste what was copied.
    Dave Mason
    dave@aldadesktop.com
    Skype is dave.mason46

Similar Threads

  1. File Upload Action Script Not Honoring File Type Restrictions
    By iRadiate in forum Mobile & Browser Applications
    Replies: 6
    Last Post: 07-11-2013, 11:53 AM
  2. Table Definition Field Names Truncating after file.copy and file.rename???
    By pulsoft in forum Alpha Five Version 11 - Desktop Applications
    Replies: 7
    Last Post: 01-30-2013, 10:44 AM
  3. File Download Feature Pack - Export Filename for file store in SQL
    By iviowa in forum Application Server Version 11 - Web/Browser Applications
    Replies: 3
    Last Post: 11-03-2012, 11:57 AM
  4. Replies: 10
    Last Post: 06-13-2007, 06:59 AM
  5. Replies: 1
    Last Post: 03-28-2007, 02:48 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •