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

Error 3 - error 1

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

    Error 3 - error 1

    I am having some trouble with aliases. I have a web project that does fine in Live Preview but when I publish it to the server it generates the
    column headings and then
    Error 3 - Error 1
    where the data should be. I get this seemingly on all files.

    My profile has the alias of:
    [PathAlias.ADB_Path] = \\Ctiserver-01\a5webroot

    The Publish to LAN settings are:
    Webroot is \\Ctiserver-01\a5webroot
    Target folder is <Default>

    The Publish Database Files is:
    Yes
    Files to publish is a list that I defined
    Folder is \\Ctiserver-01\a5webroot

    What am I doing wrong with the aliases?

    #2
    Re: Error 3 - error 1

    In my alias for server install, I have the physical drive letter rather than the servername. As in C:\a5webroot. The path here has to be something that the server would understand. Your alias says servername and then it will look for a share name of a5webroot. Maybe that's what you have, but unless you specifically made the A5Webroot folder shared and used a5webroot as the name, its not going to find the folder.

    Your entries for Publish to LAN look fine.

    Also never publish your data files to the virtual folder (A5Webroot). If you do, someone could get direct access to your data tables like this http://yourdomain.com/your_tablename.dbf, and it would probably just open your table in MS Excel on their side.
    Steve Wood
    See my profile on IADN

    Comment


      #3
      Re: Error 3 - error 1

      Thanks for the input

      I tried changing the alias to [PathAlias.ADB_Path] = C:\A5webroot with no luck. Yes the folder is shared as you assumed and the share name is a5webroot. For some reason, the files are not being seen by the server. If I publish the files to the root directory, I get the Error 3 - Error 1 message. If I publish the files to the a subdirectory down from root called data, I get Error 3 - The system cannot find the file specified. \\Ctiserver-01\A5webroot\Customers.Dbf and it is listing the file as not being found in the root directory. It is not attempting to look in the data directory. Where and how do you tell the WAS the location of the data files? FYI: I now have the Profile->Publish Database files->Folder set to \\Ctiserver-01\a5webroot\data

      Everything works flawlessly on the development machine.

      I think I understand that as you build grid components, you have three choices for data sources. I choose the first, "AlphaFIVE .dbf tables". This I assume is accessing the .dbf files of the open AlphaFIVE database. What if I wanted to access AlphaFIVE tables stored in another directory or on another server (with the same file names)? I assume that is exactly what aliases are all about. I have read the on-line help several times and I must be pretty thick because this seems relatively simple and yet I cannot get past this hurdle.

      Thanks for the warning on the location of data files. What is a typical mapping/storage scheme for storing data files on a web application?

      Comment


        #4
        Re: Error 3 - error 1

        Actually I don't know what the error 1/3 is coming from; you should see something like this at the bottom of your screen, regardless of error:

        Alpha Five/7.0 Build/4130-3033 at MYDOMAIN Port 80
        I did lead you astray with my suggestion for an alias, I mixed them up. Your alias should point to where the data is. If your Alpha application is ON the server, then you just create an alias as:

        [PathAlias.ADB_Path] = =a5.get_path()

        In this case you would not publish data files, because they are already present on the serer.

        If it is not on the server, or you want to redirect where it looks (e.g.: you are publishing a subset of your data), you put in something like this:

        [PathAlias.ADB_Path] = P:\mydata

        where P is a share name pointing to this or a different server.

        or perhaps

        [PathAlias.ADB_Path] = c:\A5\data

        if its on the same server at that location.

        -----------
        Also your server (I mention this because I do not recognize those error message numbers) has to be running a licensed and activated copy of Alpha WAS. Go to the server and right click on the Alpha WAS icon in the system tray. Click Configure Server and check the Sessions tab. You should have a green icon next to either the 30-day trial or your unlimited license. On the General tab, you should have a document root such as c:\a5webroot, if that's where your a5webroot folder is.

        Lastly, everywhere in your application where you reference a database table, you have to proceed that with <ADB_Path> as in:

        record_add("<ADB_Path>\web_users_logins.dbf", cs, 2)

        Note: <ADB_Path> is the same as [PathAlias.ADB_Path]
        Steve Wood
        See my profile on IADN

        Comment


          #5
          Re: Error 3 - error 1

          I did activate the WAS on the server although I did have a green light next to the 30daytrial. I entered the registration code and pressed activate and the green light came on next to the code. Therefore I deleted the 30daytrial.

          Still getting the same old messages. With any grid component, I get "Error 3 - Error 1" and no data. Again this works fine on the development machine but not the server.

          On the development machine all the data files are in the same directory with the application. The data is not in another directory. When I go to the server I want the .dbf files in another location. I have developed this application choosing the files from the dropdown box in the Grid Builder and I note that it only shows the database files from the active database. If I develop with .a5W pages and grid components with a "customer" file that is on my local machine, and then I want to have the application access DIFFERENT .dbf files with the same name, is that possible? I have developed this relatively small application from a COPY of my live database. Now that is it ready to test I want to plug in the live data in exchange for this set of "dummy" files. Am I rewriting this thing at this point?

          Comment


            #6
            Re: Error 3 - error 1

            Yes, you can develop with dbf files on your local machine and then reference different tables on a different machine from the server. You can either publish the database files if you want the same data that presently resides on your local computer, or you can just reference dbf files on the other machine assuming they are present and with exactly the same structure.

            If you want, go to my website and click the Online Help and id yourself, with your permission I will take a look at your computer and see if I can resolve. I am on pacific coast time.
            Steve Wood
            See my profile on IADN

            Comment


              #7
              Re: Error 3 - error 1

              Your offer to dial in and fix my system is wonderful and I may take you up on it in the future. For today, I have the issue fixed! Slick as a baby's bottom, it is pulling the right data from another server.

              I had, unbeknownst to me, an admin issue with the 8080 port that I was trying to access. My IT person fixed that.

              In addition I mapped the ADB_Path to "R:\" and this mapped drive is from the server's point of view. When you are standing on the server (don't try that at home), "R:\" is mapped to a Network Place that contains the live data. I really think that is where I got things confused. The alias is from the server's point of view and it is easy to get turned around when you are looking at that server from another computer. Some of your previous comments helped me on that.

              Final settings that worked for the server are:
              General->Publishing type
              Publish to LAN

              General->Alias
              [PathAlias.ADB_Path] = R:\

              Publish to LAN->Webroot
              \\Ctiserver-01\A5webroot\
              Target folder was set to blank

              I did NOT publish the data files.


              It is working. Now all I need to do is getting it working faster than it does. Hey Alpha software guys and gals, this WAS is slow!

              Thank you so much for your help and attention to the message board. It is very much appreciated!

              Kevin

              Comment

              Working...
              X