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

Shadow not writing to server

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

    Shadow not writing to server

    Build 3033

    For some unexplained reason certain child tables on the shadow workstation are no longer writing to the server.

    Checking the tables on the workstation I see that half a dozen are not greyed out like the other 250 +. Checking on the properties of these tables I find some have no indexes while on the server they do.

    Checking the data base information, under File in the control panel, displays these 6 tables, it's as if they think they are real tables and not shadows.

    Tried many network optimizations, shadow refresh's but without success. Checked the development db and all tables seem ok.

    Anybody else experienced this and fixed the problem?

    Checked the forum but could not find and answer.

    Finally this is happening on and all my network set ups.

    Thanks

    Alan

    #2
    Re: Shadow not writing to server

    If it's not grayed out, it's probably not shadowed. Check the file size to be sure. All shadowed dbf files have an actual file size of something like 187 bytes. They will show as 1K in a folder listing but you can see the 187 if you look at the properties for that specific file.

    There should never be a CDX file with a shadowed table. If there is, the local workstation will use the local cdx which won't be in synch with the real data. In other words, IF you find a cdx file on a workstation and the cdx is attached to a shadowed table - remove the cdx immediately! (I have some tables on some workstations that are NOT shadowed even though the rest of the tables are shadowed so this is a possibility. In this case, a local cdx file would be normal.)

    If you find that those tables really aren't shadowed, you may need to check the server tables for missing data that exists only in the workstation table. In this case, (a) have fun finding and fixing the errors and (b) I'd make a backup of those workstation files in another folder and keep it for at least a few months in case you find more missing data later. Then delete the files and rebuild the shadowed workstation from scratch.

    Comment


      #3
      Re: Shadow not writing to server

      Thanks Cal,

      Will check out your suggestions over the weekend and get back to you.

      Alan

      Comment


        #4
        Re: Shadow not writing to server

        Cal,

        Found the 6 cdx files in the shadow, deleted them but when I open up the shadow from the workstation the .cdx files are recreated in the shadow. How do I stop this from happening?

        Thanks

        Alan

        Comment


          #5
          Re: Shadow not writing to server

          Alan, more details would be helpful. Are the cdx's attached to the non-greyed out tables? Have you verified that the non-greyed out tables are local, instead of shadowed?

          CDX's will be created by Alpha Five when needed for field rules or set definitions. If you're opening local tables, or a set comprised of local tables, Alpha is building indexes because they're needed in your field rules or set linkages.

          Does your app deliberately use local tables for storage ?

          -- tom

          Comment


            #6
            Re: Shadow not writing to server

            I agree with Tom. And again, you can check the size of the .dbf files in your shadowed folder as a double check against the "blue vs. grayed out" status in the control panel - if they aren't 187 bytes then they aren't shadow files.

            Comment


              #7
              Re: Shadow not writing to server

              I seem to remember that Finian Lennon reported that there is a limit of about 250-300 tables and sets that a database can hold. I wonder if this is another instance of that limitation.

              Comment


                #8
                Re: Shadow not writing to server

                Good point, Peter. It's a good thing somebody's memory still seems to be intact.

                Comment


                  #9
                  Re: Shadow not writing to server

                  If the problem is indeed similar to Finian's post, I believe (but I can't find the thread), that was resolved by Ira Perlow and confirmed by Selwyn to be a limit not of the number of tables, but rather of the length of the directory and file names that Alpha strings together when creating a shadow database. Seems like Selwyn said it was 25K in Version 7 and that that limit has been removed for Version 8.

                  Alan can test this by creating his shadow in a short named folder (db?) in the root directory and see if the problem is resolved.

                  Bob Arbuthnot

                  Comment


                    #10
                    Re: Shadow not writing to server

                    Hi Bob,

                    Originally posted by Bob Arbuthnot View Post
                    If the problem is indeed similar to Finian's post, I believe (but I can't find the thread), that was resolved by Ira Perlow and confirmed by Selwyn to be a limit not of the number of tables, but rather of the length of the directory and file names that Alpha strings together when creating a shadow database. Seems like Selwyn said it was 25K in Version 7 and that that limit has been removed for Version 8.

                    Alan can test this by creating his shadow in a short named folder (db?) in the root directory and see if the problem is resolved.
                    Here is a link to that thread;

                    http://msgboard.alphasoftware.com/al...ad.php?t=63813
                    Regards,

                    Ira J. Perlow
                    Computer Systems Design


                    CSDA A5 Products
                    New - Free CSDA DiagInfo - v1.39, 30 Apr 2013
                    CSDA Barcode Functions

                    CSDA Code Utility
                    CSDA Screen Capture


                    Comment


                      #11
                      Re: Shadow not writing to server

                      Problem identified and solved.

                      In one of my updates on the servers I had scripts in the autoexec that increased field sizes. Example of one of the scripts:

                      Code:
                      'PO Item unit cost fields
                      tablename="purchase order item"
                      original_sizes=<<%a%
                      price,n,8,2
                      invoice_price,n,8,2
                      %a%
                      new_sizes=<<%a%
                      price,n,10,3
                      invoice_price,n,10,3
                      %a%
                      a5_changefieldsize("purchase order item",original_sizes,new_sizes)
                      I never removed the scripts from the autoexec and it was these tables that were not being shadowed on the workstations.

                      I copied the shadow dbf's into another folder, deleted the shadow, installed a new update on the server (without the scripts in the autoexec), copied the shadow dbf's onto the server and ran a network optimization. Bingo, all tables in the shadow are now greyed out.

                      Tested with shadow refresh and all works correctly.


                      Alan

                      Comment


                        #12
                        Re: Shadow not writing to server

                        I've done that on generic apps where some people update immediately and others may not update for many weeks. Note that I use my "datapath" variable that points to the actual data file. I'm pretty sure, now that you mention it, that I ran into a similar problem with this command when I did NOT use the "datapath". I now specify the "datapath" on all updates that would affect table structure and might be run on a shadowed folder.

                        FWIW: I also solved the problem of "does it need to be updated" by testing the field length first so the update would only run once. This isn't as critical here as it is when adding fields to tables. When adding fields to tables I use the a5_get_fieldnames() command and check the list for a name match.

                        Perhaps these would be another solution to your issue.

                        Heres my script for changing field length:
                        Code:
                        DIM datapath as C
                        IF a5.Get_Master_Path() = ""
                           datapath = a5.Get_Path() + chr(92)
                        ELSE
                           datapath = a5.Get_Master_Path() + chr(92)
                        END IF
                        tpc = table.open( datapath + "Clients.dbf" )
                        fld1 = tpc.field_get( "Def_agentf" )
                        fwid1 = fld1.width_get()
                        tpc.close()
                        'Change width of fields in Clients 04-30-05.
                        IF fwid1 <> 30
                            Old_list = <<%list%
                        Def_agentf,C,20,0
                        %list%
                            New_list = <<%list%
                        Def_agentf,C,30,0
                        %list%
                            a5_changefieldsize( datapath + "Clients.dbf", old_list, new_list )
                        END IF

                        Comment


                          #13
                          Re: Shadow not writing to server

                          Thank you Cal,

                          Understand the logic. This was the first time I needed to increase field sizes on an existing app. Will test your script.

                          Alan

                          Comment

                          Working...
                          X