Method Community

 

There was an error in MethodAPIinsertV2

Last post 01-20-2013 11:45 AM by CF_Pro. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 01-19-2013 7:56 PM

    There was an error in MethodAPIinsertV2

    This is the error I am getting when trying to insert a new customer record. with the MethodAPIInsertV2 api call.

    I have no clue what the error is, any way to find out?

    Do I first need to create a company record in order to add a customer record?

  • 01-19-2013 8:08 PM In reply to

    Re: There was an error in MethodAPIinsertV2

    Answer

    Can you make sure that the fields listed in your insert are unique. Looks like there are error logs suggesting 'BillAddressAddr1' is specified twice.

    Paul

  • 01-19-2013 8:17 PM In reply to

    Re: There was an error in MethodAPIinsertV2

    Thanks Paul, how do I see the error logs so I don't have to bug you guys. :)

    Thanks

  • 01-19-2013 8:32 PM In reply to

    Re: There was an error in MethodAPIinsertV2

    Top secret! ;)

  • 01-19-2013 9:09 PM In reply to

    Re: There was an error in MethodAPIinsertV2

    Hmm.. at least output some useful error info within your api.

  • 01-20-2013 9:43 AM In reply to

    Re: There was an error in MethodAPIinsertV2

    Agreed. However, it's not as easy as just delivering the raw error that we get, as that can potentially be a security risk as it may give out server configuration details.

    So our job is to parse common errors and turn them into meaningful messages. That hadn't been done for the error above, so you just got the generic "we haven't planned for this one, so we'll log it" message. I think we need to do a better job at this.

    Paul

  • 01-20-2013 11:45 AM In reply to

    Re: There was an error in MethodAPIinsertV2

    Ok cool glad you recognize the flaws, hopefully I will not have to call on you to be a log reader in the future :)

    Thanks

Page 1 of 1 (7 items)