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

Insertion problem

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

    Insertion problem

    Hi everyone!

    Am having this report showing when am trying to insert "

    Copyright of Maple-Leaf, a Petrodata Company
    Record was not inserted. Less...
    Database API specific error Your database has returned the following error code and description to Alpha Five. Consult your database documentation for further information. 544 - '[Microsoft][SQL Server Native Client 10.0][SQL Server]Cannot insert explicit value for identity column in table 'TypeCertifications' when IDENTITY_INSERT is set to OFF. SQL State is: 23000"

    I think is from database.

    Do anyone knows how to resolve this?

    Thanks

    #2
    Re: Insertion problem

    I used to see this a lot, try this - remove the primary key field from your UX then try it.
    Insanity: doing the same thing over and over again and expecting different results.
    Albert Einstein, (attributed)
    US (German-born) physicist (1879 - 1955)

    Comment


      #3
      Re: Insertion problem

      Chinedu,

      I don't think you want to REMOVE the primary key from your UX... I think you want to NOT SET IT.

      The Key of your table is set as Identity which means that SQL Server is setting the key for you. But... you're probably providing a Key Value... so SQL Server coughs because it can't accept a Key Value for a column set as Identity.

      So... either turn off Identity on your column... via SQL Server... or do not set a value for the key your component... let SQL Server set that value.

      The error message actually sounds backwards because it's reporting the error "Identity_Insert is set to OFF"... and we think... yes... that's right... Identity is checked... so it's ON... it's not OFF.

      Comment


        #4
        Re: Insertion problem

        Please Note, am using grid component not UX, and when i removed the primary Key it throws exception requesting that the primary is missing.
        Last edited by eduduru; 07-27-2016, 11:51 AM.

        Comment


          #5
          Re: Insertion problem

          Understood... you didn't post the component type originally so I didn't assume... just referred to it as a component... although in this case it doesn't really matter.

          We have to get terminology and language correct at this point. When you say "removed the primary Key" do you mean you deleted that field from your grid? Or that it's in the grid and you're not giving it a value.

          Comment


            #6
            Re: Insertion problem

            Originally posted by Davidk View Post
            Understood... you didn't post the component type originally so I didn't assume... just referred to it as a component... although in this case it doesn't really matter.

            We have to get terminology and language correct at this point. When you say "removed the primary Key" do you mean you deleted that field from your grid? Or that it's in the grid and you're not giving it a value.
            I removed it from the selected field back to the Available field in the grid component builder, even when it was on the selected field, the initial value property was set to NULL and was hidden.

            Thank you.
            Last edited by eduduru; 07-27-2016, 12:29 PM.

            Comment


              #7
              Re: Insertion problem

              You can't remove the primary key from the grid... I get an Alpha warning when I try to do that.

              How are you adding new rows? Grid or Grid Detail View?

              What version/build of Alpha are you using.

              Have you confirmed that the Identity option is checked for your Primary key in the table you're inserting into.

              Comment


                #8
                Re: Insertion problem

                Am using version: 12.3, build 2999,
                system Addins: build 4519
                Developer Edition
                Am adding on the Grid not Grid detail view.
                Am using MSSSQL server database, and the primary key which is the identity field is set to auto increment with speed set as 1. The table structure has only two column field, Certification_ID and Certification_Name only.
                Thanks

                Comment


                  #9
                  Re: Insertion problem

                  If you want to post your grid and a sample dump of your sql table I'll have a look. No issues here working with Alpha 2999, SQLServer, and an auto-increment key.

                  Comment


                    #10
                    Re: Insertion problem

                    My solution was for the UX - sorry Don't use grids at all these days. I'd do as David asks above.
                    Insanity: doing the same thing over and over again and expecting different results.
                    Albert Einstein, (attributed)
                    US (German-born) physicist (1879 - 1955)

                    Comment


                      #11
                      Re: Insertion problem

                      Originally posted by Davidk View Post
                      If you want to post your grid and a sample dump of your sql table I'll have a look. No issues here working with Alpha 2999, SQLServer, and an auto-increment key.
                      What i sent earlier was the structure of the table am trying to insert on, its just a two field table, Certification_ID and Certification_Name only, then the grid component for insertion.

                      Comment


                        #12
                        Re: Insertion problem

                        Understood... the table is simple enough. If you could post either your grid or a sample grid that shows the issue then I'd have a look. I've built one for a test and it works... but that's often the case. Since there are a thousand combinations of features in a grid you'd have to post a sample grid.

                        Comment

                        Working...
                        X