Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Packing a table from the control panel produces an error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Packing a table from the control panel produces an error

    Good day,
    I have just upgraded my v8 project to v9, and find myself in a bit of bother.

    Packing a table using the �pack� command by right clicking a table in the control panel produces an error message �Could not pack or rebuild Indexes for c:\source\customer.dbf�s Dictionary�. The �update indexes command works fine� and the table is NOT open, I have checked.

    I have now tried everything to resolve the issue but have now exhausted my ideas. What do you suggest I try? Unfortunately the error message is not very clear on what is causing the situation.

    Kind regards
    George

    #2
    Re: Packing a table from the control panel produces an error

    1) be sure the indexes do not include tables from a different adb
    2) be sure the indexes don't have errors and note the indexes for later
    3) create a new table from scratch, exact structure - append records from old to new
    4) try to compact new
    5) if successful so far, delete the old, rename new to old, add the indexes - try again
    6) if all is not well - post back here
    Cole Custom Programming - Terrell, Texas
    972 524 8714
    [email protected]

    ____________________
    "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

    Comment


      #3
      Re: Packing a table from the control panel produces an error

      George, I happened to encounter this very same error yesterday with a table in an application I'm building. Likewise testing and rebuilding the indexes indicated no problems. I don't know what causes it or if there is a simple fix. In my case because the file that generated the error only contained test data so I gave up and just executed the empty the table utility, after which I was able to pack newly entered data with no problems.

      I was going to suggest trying the append utility as well. I don't think using the duplicate table utility will work because you will simply be duplicating the same problem/corruption that exists in the original table.

      Comment


        #4
        Re: Packing a table from the control panel produces an error

        if you use the append approach - you do NOT duplicate the table, you create a new table from scratch, and then append.
        Cole Custom Programming - Terrell, Texas
        972 524 8714
        [email protected]

        ____________________
        "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

        Comment


          #5
          Re: Packing a table from the control panel produces an error

          Originally posted by DRW View Post

          I was going to suggest trying the append utility as well. I don't think using the duplicate table utility will work because you will simply be duplicating the same problem/corruption that exists in the original table.

          Actually quite the opposite is true. If there is a problem in the table structure files, a duplicate table clears up many of them. If it's a data problem, the problem will remain.
          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.
          "Make it as simple as possible, but not simpler."
          Albert Einstein

          http://www.iadn.com/images/media/iadn_member.png

          Comment


            #6
            Re: Packing a table from the control panel produces an error

            Al, you may be right - but my approach is to open the "bad table" structure - copy all the fields, make a new table and paste the fields in the new table, and then append the data. That way, I know there is no relationship between the tables's dictionaries. I know the table duplicate has options for not copying field rules, etc., but when I have this kind of a problem, I don't trust that some corruption from the "bad table" dictionaries might carry over.

            Actually, there is also another thing that could be the culprit. Copy the folder containing the adb and paste to a new name - open the adb from the new folder, and try to compact the adb from the control panel - there is a known issue with no known cause, where you will get an error message from one folder, but not from another. I've had it in both V7 and V8. Only a few users have had the issue, I think.
            Cole Custom Programming - Terrell, Texas
            972 524 8714
            [email protected]

            ____________________
            "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

            Comment


              #7
              Re: Packing a table from the control panel produces an error

              Martin

              Your approach is a good way to handle data corruption issues. The duplicate tables won't help that, but will narrow the problem away from the structure files.

              Appending the data without field rules is a good way to find corruption..
              ie a crlf() or other special character or letter in a numeric field. I definitely like that technique.

              I've found all sorts of things in other dbase systems.

              Another fun way to find bad data is to open a default browse and sort on each column. The bad data usually rises to the top, and sometimes the bottom...
              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.
              "Make it as simple as possible, but not simpler."
              Albert Einstein

              http://www.iadn.com/images/media/iadn_member.png

              Comment


                #8
                Re: Packing a table from the control panel produces an error

                Yeah, I've run into all sorts of nifty characters in the middle of data - especially when working with data from other programs.
                Cole Custom Programming - Terrell, Texas
                972 524 8714
                [email protected]

                ____________________
                "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                Comment


                  #9
                  Re: Packing a table from the control panel produces an error

                  George,

                  You might check out this thread. It helped me a couple years ago, don't know if it applies to your situation or not...

                  http://msgboard.alphasoftware.com/al...ot+cannot+pack


                  Bob Arbuthnot

                  Comment


                    #10
                    Re: Packing a table from the control panel produces an error

                    Problem:
                    1. Packing a table using the “pack” command by right clicking a table in the control panel produces an error message “Could not pack or rebuild Indexes for c:\source\customer.dbf’s Dictionary”.

                    Observation:
                    1. When opening the table with the default browse, the column headings are truncated. Eg “customer_name” becomes “customer_na”

                    Steps to try to resolve (unsuccessfully):
                    1. Doing a database compact completes successfully
                    2. Made sure no tables are open.
                    3. Updated the dictionary with DICTIONARY.UPDATE()
                    4. Ensure that no “tablename.$$M” exist
                    5. Ensure that no indexes include tables from a different adb
                    6. Indexes rebuild successfully
                    7. Duplicating the table with all attributes, problem exists in new table
                    8. Duplicating the table with all attributes excluding records, problem exists in new table
                    9. Duplicating the table with all attributes excluding records AND indexes, problem exists in new table
                    10. Duplicating the table with all attributes excluding records, indexes and dictionary, problem exists in new table
                    11. Duplicating the table with no records, dictionary, indexes or field rules, problem still exist

                    SOLUTION:
                    Copy all the files to another folder. This is bizarre. I can reproduce the problem and the solution by simply recopying it. Thanks to Martin for providing the solution.

                    Later: no wait, the problem is now also in the new folder! Even duplicating the table to another without the records or indexes etc, still refuses to pack.


                    George
                    Last edited by georgefurnel; 05-04-2008, 04:10 AM.

                    Comment


                      #11
                      Re: Packing a table from the control panel produces an error

                      George,
                      Your issue of truncation is one I had to deal with early on and every since then have never allowed myself to use names longer than 10 characters.

                      Now a lot of people have never had this problem and will say that it should not make any difference--to those I say yeah right!! :) There is one Big difference I have noticed between the people who have never had this happen and the ones who do: simply the difference between novice and accomplished. I firmly believe that this truncation comes from other corruption caused by bad code, calc expressions, what-have-you.

                      How to fix it--I only found two ways.
                      1...remember and rename all the truncated names back to what they were. And then later, after fixed, reduce the name size which in a large application is a real tedious process especially if any field names were used explicitly.

                      2...restore from a backup the affected tables and then change the names to shorter as above.

                      I really do feel for you if this Application has any size to it...took me the better part of 2 days solid to do when it happened to me.
                      Mike
                      __________________________________________
                      It is only when we forget all our learning that we begin to know.
                      It's not what you look at that matters, it's what you see.
                      Henry David Thoreau
                      __________________________________________



                      Comment


                        #12
                        Re: Packing a table from the control panel produces an error

                        I really do feel for you if this Application has any size to it...took me the better part of 2 days solid to do when it happened to me.
                        Not so lucky. Found a few bugs from the shorter field names popped up several times over a month or so. Just did not catch all of them.
                        Dave Mason
                        [email protected]
                        Skype is dave.mason46

                        Comment


                          #13
                          Re: Packing a table from the control panel produces an error

                          I'm sure you already know this, but just in case ...........

                          a table typically has 5 files, viewable from windows' explorer

                          clients.dbf - the data
                          clients.cdx - indexes and index definitions
                          clients.ddm
                          clients.ddd
                          clients.ddx

                          the dd*'s contain the layouts, field rules, and remainder of long field and index names

                          if you copy the dbf but not the other support files, you will lose the remainder of the long field names, etc., and they will appear truncated.

                          if you have good dd*'s from a backup, you can copy them from the backup and they will fix the truncated fields --- but they will thus also overwrite any layout changes, etc., you have made since the backup.

                          PS: just for the record - In using Alpha for 10 years, I have never had an issue with long file or field names. I have several apps distributed to several customes used daily for several years.

                          Also, whether the file or field name is longer than 10 characters won't make any difference if the dictionaries become corrupted, as the forms, field rules, etc. are also affected!!
                          Last edited by martinwcole; 05-04-2008, 10:36 AM.
                          Cole Custom Programming - Terrell, Texas
                          972 524 8714
                          [email protected]

                          ____________________
                          "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                          Comment


                            #14
                            Re: Packing a table from the control panel produces an error

                            Martin,
                            Also, whether the file or field name is longer than 10 characters won't make any difference if the dictionaries become corrupted, as the forms, field rules, etc. are also affected!!
                            Makes sense, but one question to you or others---Why is it then that simply by renaming the truncated names back to the long names they were originally will make all errors vanish and everything is "normal" again until they become truncated again which can take a few days'weeks to happen??

                            (I realize that something is being corrupted and causing the truncation)
                            Last edited by MikeC; 05-04-2008, 10:55 AM. Reason: typo
                            Mike
                            __________________________________________
                            It is only when we forget all our learning that we begin to know.
                            It's not what you look at that matters, it's what you see.
                            Henry David Thoreau
                            __________________________________________



                            Comment


                              #15
                              Re: Packing a table from the control panel produces an error

                              two possible answers -

                              1) everything is not okay, like the field rules may be messed up in one or more tables - you just haven't run into them yet

                              2) whatever the cause, it is only affecting long field/file/etc names

                              If 2 is the case, I would still be leary. As I understand it, and I may be incorrect here (hopefully someone will jump in,) everything about a given table is stored in the ddm, which is a memo field. the other 2 dd's are the index and table definitions that support the ddm. So ....... if that is correct, I would fear for the rest of it, if you see what I mean.
                              Cole Custom Programming - Terrell, Texas
                              972 524 8714
                              [email protected]

                              ____________________
                              "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                              Comment

                              Working...
                              X