Results 1 to 4 of 4

Thread: Api call error

  1. #1
    alysyuk is offline Member
    Join Date
    May 2011
    Posts
    6

    Default Api call error

    Hi, everyone

    I'm trying to make import script using SOAP API for sugarcrm 6.2.0 beta4 (build 6.2.7.2) CI
    I've faced the following error

    First i create Contact and EmailAddress Beans

    then i call "set_relationship" with params (from SOAP)
    Code:
    Array (
    [module1] => Contacts,
    [module1_id] => 6b4bfe81-da3b-d6f9-dd1a-4dcc167327dc,
    [module2] => EmailAddresses,
    [module2_id] => 2472a493-cbec-947d-560b-4dcc16011572
    )
    the result is "invalid XML" on client side both with error
    [1792][1][FATAL] Error fetching relationship from cache leads_contacts
    on the sugarcrm side.

    I've put backtrace into place where error is triggered, the result of backtrace is in attached file.

    Can't understand what i'm doing wrong?

    P.S. set_relationship call differs from one in manual, because i get an error "Module not found when calling function"
    set_relationship(session_id, 'Contacts', '..id..', 'EmailAddresses', '...id...');
    Attached Files Attached Files

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Api call error

    You should be updating the email1 and email2 fields on the Contacts module instead of directly attempting to write to the EmailAddresses module. The latter is not allowed.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    alysyuk is offline Member
    Join Date
    May 2011
    Posts
    6

    Default Re: Api call error

    Sounds strange but I need more then two emails per contact...

    I tried to create 4 emails in contact and api shows only two of them

  4. #4
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Api call error

    It is not strange.

    I actually have a similar need on an regular basis, hence the reason why I am familiar with the problem.

    Seems kind of dumb to me to limit access to only two.
    Regards,

    Angel Magaņa
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. upgrade error Fatal error: Call to undefined function posix_getpwuid()
    By dsuvankar in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2010-05-26, 03:02 PM
  2. Getting an error in the Schedule call?
    By jollyguy77 in forum Help
    Replies: 0
    Last Post: 2009-12-02, 03:55 PM
  3. Static Error Call Error during Install
    By ScottTech in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2009-07-21, 02:52 PM
  4. New phone call error!
    By fiveight in forum Help
    Replies: 0
    Last Post: 2008-11-19, 03:43 AM
  5. Error when trying to link a lead to a call
    By pheedbackonline in forum Help
    Replies: 4
    Last Post: 2005-09-28, 08:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •