Method Community

 

CreateField Error message

Last post 01-29-2009 11:27 AM by Matt. 11 replies.
Page 1 of 1 (12 items)
Sort Posts: Previous Next
  • 01-22-2009 12:12 PM

    • Matt
    • Top 10 Contributor
    • Joined on 11-03-2008
    • Posts 877

    CreateField Error message

     I am trying to create a dropdown field in the customer table through the API. When i run the code I get the error message "An error has occurred.  An email has been sent to Method staff.  If this problem persists, please contact the Method Team at method@alocet.com." How do I find out what the actual error is so I can fix it?


    Matt Raiser

    Founder,



    www.techinthefield.com

    matt@techinthefield.com

    219-221-9500



    ~ Method user / partner since 2008

    ~ Over 15 years field service experience

    ~ 2013 Method Partner of the Year

    ~ Degree in Computer Science





    Creator of:


        


  • 01-26-2009 5:11 PM In reply to

    Re: CreateField Error message

    Matt - can you try doing it again.  Let us know when you do, and we'll search for the error message.

    Thanks,

    Paul

  • 01-28-2009 12:44 PM In reply to

    • Matt
    • Top 10 Contributor
    • Joined on 11-03-2008
    • Posts 877

    Re: CreateField Error message

    I just tried it again.


    Matt Raiser

    Founder,



    www.techinthefield.com

    matt@techinthefield.com

    219-221-9500



    ~ Method user / partner since 2008

    ~ Over 15 years field service experience

    ~ 2013 Method Partner of the Year

    ~ Degree in Computer Science





    Creator of:


        


  • 01-28-2009 12:51 PM In reply to

    Re: CreateField Error message

     Thanks Matt.

    Looks like the problem was that you were inserting records like "Friday" into a table that already had "Friday".  Since that table had the field marked as unique, it caused a unique index violation.

    So there's you reason.

    We'll put more info on the returned message so that you actually get this in the response next time.

    Paul

  • 01-28-2009 12:59 PM In reply to

    • Matt
    • Top 10 Contributor
    • Joined on 11-03-2008
    • Posts 877

    Re: CreateField Error message

    Thanks Paul. Can you please let me know when you have that updated, so I can change my code to handle the duplicates.


    Matt Raiser

    Founder,



    www.techinthefield.com

    matt@techinthefield.com

    219-221-9500



    ~ Method user / partner since 2008

    ~ Over 15 years field service experience

    ~ 2013 Method Partner of the Year

    ~ Degree in Computer Science





    Creator of:


        


  • 01-28-2009 1:57 PM In reply to

    Re: CreateField Error message

    Updates are up there now (we were about to do an update anyway).

    Want to give it a try?

  • 01-28-2009 3:09 PM In reply to

    • Matt
    • Top 10 Contributor
    • Joined on 11-03-2008
    • Posts 877

    Re: CreateField Error message

    It appears to work now. Now I get "This insertion will violate a requirement that the record in the destination table must be unique."

    I also noticed that some of the other messages about a record not be unique have been changed to the same new message. Is this going to now be the standard message?


    Matt Raiser

    Founder,



    www.techinthefield.com

    matt@techinthefield.com

    219-221-9500



    ~ Method user / partner since 2008

    ~ Over 15 years field service experience

    ~ 2013 Method Partner of the Year

    ~ Degree in Computer Science





    Creator of:


        


  • 01-28-2009 4:02 PM In reply to

    Re: CreateField Error message

     Yes, that should be the message you get in both the MethodAPIUpdate  and the MethodAPIInsert.

  • 01-28-2009 4:41 PM In reply to

    • Matt
    • Top 10 Contributor
    • Joined on 11-03-2008
    • Posts 877

    Re: CreateField Error message

    It appears I spoke too soon. (Actually I was looking in the completely wrong place when I was testing it out).

    I tried to create a dropdown field in the customer table and I still get the "An error has occurred.  An email has been sent to Method staff.  If this problem persists, please contact the Method Team at method@alocet.com."

    Not sure if it is related or not, but the table I am trying to link the dropdown to is the same one that you referenced earlier (trying to add a record that already exsists such as "Friday")


    Matt Raiser

    Founder,



    www.techinthefield.com

    matt@techinthefield.com

    219-221-9500



    ~ Method user / partner since 2008

    ~ Over 15 years field service experience

    ~ 2013 Method Partner of the Year

    ~ Degree in Computer Science





    Creator of:


        


  • 01-28-2009 5:17 PM In reply to

    Re: CreateField Error message

     We're getting a message that the field you are creating already exists.  Just made a couple changes on the backend to put that into the response message.  Are you getting a more informative response if you try again now?

  • 01-28-2009 5:51 PM In reply to

    • Matt
    • Top 10 Contributor
    • Joined on 11-03-2008
    • Posts 877

    Re: CreateField Error message

    No, I'm still getting the same error message as before.

    I checked in the Customer table in Method and the field that I am trying to add is not in there.


    Matt Raiser

    Founder,



    www.techinthefield.com

    matt@techinthefield.com

    219-221-9500



    ~ Method user / partner since 2008

    ~ Over 15 years field service experience

    ~ 2013 Method Partner of the Year

    ~ Degree in Computer Science





    Creator of:


        


  • 01-29-2009 11:27 AM In reply to

    • Matt
    • Top 10 Contributor
    • Joined on 11-03-2008
    • Posts 877

    Re: CreateField Error message

    I changed the name of the field I was trying to add and it worked correctly. I also tried adding the new field a second time and received a proper error message about it not being unique. So it seems to be working properly except when I try to add the field using the origional name.


    Matt Raiser

    Founder,



    www.techinthefield.com

    matt@techinthefield.com

    219-221-9500



    ~ Method user / partner since 2008

    ~ Over 15 years field service experience

    ~ 2013 Method Partner of the Year

    ~ Degree in Computer Science





    Creator of:


        


Page 1 of 1 (12 items)