2 Replies Latest reply on Sep 24, 2014 2:54 PM by Kenny Elkington

    SOAP API SyncLead error

      Hi Folks

      i'm syncing the values from my order-form on my webpage with marketo using SOAP. It has been working for some time (so i thought at least) but now i get this (long) error when submitting.

      It only shows up when an unknown email adress is submitted - eg an adress that's not allready in marketo. Anyone got a fix for that lying around?

      The error:

      object(SoapFault)#737 (10) { ["message":protected]=> string(26) "20105 - Unknown lead field" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(97) "/home/skillshouse.dk/public_html/components/com_coursebooking/views/confirmation/tmpl/default.php" ["line":protected]=> int(799) ["trace":"Exception":private]=> array(14) { [0]=> array(6) { ["file"]=> string(97) "/home/skillshouse.dk/public_html/components/com_coursebooking/views/confirmation/tmpl/default.php" ["line"]=> int(799) ["function"]=> string(10) "__soapCall" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(4) { [0]=> string(8) "syncLead" [1]=> array(1) { ["paramsSyncLead"]=> object(stdClass)#741 (2) { ["leadRecord"]=> object(stdClass)#765 (2) { ["Email"]=> string(13) "aaaa@hdhdj.dk" ["leadAttributeList"]=> object(stdClass)#742 (1) { ["attribute"]=> array(12) { [0]=> object(stdClass)#766 (2) { ["attrName"]=> string(9) "FirstName" ["attrValue"]=> string(2) "jh" } [1]=> object(stdClass)#767 (2) { ["attrName"]=> string(8) "LastName" ["attrValue"]=> string(2) "jh" } [2]=> object(stdClass)#781 (2) { ["attrName"]=> string(7) "company" ["attrValue"]=> string(2) "jh" } [3]=> object(stdClass)#779 (2) { ["attrName"]=> string(7) "Address" ["attrValue"]=> string(2) "jh" } [4]=> object(stdClass)#776 (2) { ["attrName"]=> string(7) "Country" ["attrValue"]=> string(7) "Denmark" } [5]=> object(stdClass)#749 (2) { ["attrName"]=> string(10) "PostalCode" ["attrValue"]=> string(4) "2222" } [6]=> object(stdClass)#748 (2) { ["attrName"]=> string(5) "Phone" ["attrValue"]=> string(4) "2222" } [7]=> object(stdClass)#747 (2) { ["attrName"]=> string(5) "Email" ["attrValue"]=> string(13) "aaaa@hdhdj.dk" } [8]=> object(stdClass)#746 (2) { ["attrName"]=> string(4) "City" ["attrValue"]=> string(2) "jh" } [9]=> object(stdClass)#745 (2) { ["attrName"]=> string(18) "Kursus_slutdato__c" ["attrValue"]=> string(10) "20-10-2014" } [10]=> object(stdClass)#744 (2) { ["attrName"]=> string(19) "Kursus_startdato__c" ["attrValue"]=> string(10) "20-10-2014" } [11]=> object(stdClass)#743 (2) { ["attrName"]=> string(21) "Sidst_k_bte_kursus__c" ["attrValue"]=> string(22) "Gratis C5 2014 seminar" } } } } ["returnLead"]=> bool(false) } } [2]=> array(2) { ["connection_timeout"]=> int(20) ["location"]=> string(47) "https://910-XKG-363.mktoapi.com/soap/mktows/2_6" } [3]=> object(SoapHeader)#764 (4) { ["namespace"]=> string(30) "http://www.marketo.com/mktows/" ["name"]=> string(20) "AuthenticationHeader" ["data"]=> object(stdClass)#763 (3) { ["mktowsUserId"]=> string(35) "skillshouse1_3104634753CFB2DAA5B9F8" ["requestSignature"]=> string(40) "265fa01e74dd26b986eae5ddc634351025beff7a" ["requestTimestamp"]=> string(25) "2014-09-24T03:52:55-07:00" } ["mustUnderstand"]=> bool(false) } } } [1]=> array(4) { ["file"]=> string(80) "/home/skillshouse.dk/public_html/libraries/joomla/application/component/view.php" ["line"]=> int(649) ["args"]=> array(1) { [0]=> string(97) "/home/skillshouse.dk/public_html/components/com_coursebooking/views/confirmation/tmpl/default.php" } ["function"]=> string(7) "include" } [2]=> array(6) { ["file"]=> string(80) "/home/skillshouse.dk/public_html/libraries/joomla/application/component/view.php" ["line"]=> int(205) ["function"]=> string(12) "loadTemplate" ["class"]=> string(5) "JView" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> &NULL } } [3]=> array(6) { ["file"]=> string(94) "/home/skillshouse.dk/public_html/components/com_coursebooking/views/confirmation/view.html.php" ["line"]=> int(230) ["function"]=> string(7) "display" ["class"]=> string(5) "JView" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> &NULL } } [4]=> array(6) { ["file"]=> string(94) "/home/skillshouse.dk/public_html/components/com_coursebooking/views/confirmation/view.html.php" ["line"]=> int(46) ["function"]=> string(30) "_displayIndividualConfirmation" ["class"]=> string(29) "CourseBookingViewConfirmation" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> &NULL } } [5]=> array(6) { ["file"]=> string(86) "/home/skillshouse.dk/public_html/libraries/joomla/application/component/controller.php" ["line"]=> int(722) ["function"]=> string(7) "display" ["class"]=> string(29) "CourseBookingViewConfirmation" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [6]=> array(6) { ["file"]=> string(76) "/home/skillshouse.dk/public_html/components/com_coursebooking/controller.php" ["line"]=> int(205) ["function"]=> string(7) "display" ["class"]=> string(11) "JController" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [7]=> array(6) { ["file"]=> string(76) "/home/skillshouse.dk/public_html/components/com_coursebooking/controller.php" ["line"]=> int(357) ["function"]=> string(7) "display" ["class"]=> string(23) "CourseBookingController" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [8]=> array(6) { ["file"]=> string(86) "/home/skillshouse.dk/public_html/libraries/joomla/application/component/controller.php" ["line"]=> int(761) ["function"]=> string(23) "individual_confirmation" ["class"]=> string(23) "CourseBookingController" ["type"]=> string(2) "->" ["args"]=> array(0) { } } [9]=> array(6) { ["file"]=> string(79) "/home/skillshouse.dk/public_html/components/com_coursebooking/coursebooking.php" ["line"]=> int(30) ["function"]=> string(7) "execute" ["class"]=> string(11) "JController" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> &string(23) "individual_confirmation" } } [10]=> array(4) { ["file"]=> string(82) "/home/skillshouse.dk/public_html/libraries/joomla/application/component/helper.php" ["line"]=> int(383) ["args"]=> array(1) { [0]=> string(79) "/home/skillshouse.dk/public_html/components/com_coursebooking/coursebooking.php" } ["function"]=> string(12) "require_once" } [11]=> array(6) { ["file"]=> string(82) "/home/skillshouse.dk/public_html/libraries/joomla/application/component/helper.php" ["line"]=> int(351) ["function"]=> string(16) "executeComponent" ["class"]=> string(16) "JComponentHelper" ["type"]=> string(2) "::" ["args"]=> array(1) { [0]=> &string(79) "/home/skillshouse.dk/public_html/components/com_coursebooking/coursebooking.php" } } [12]=> array(6) { ["file"]=> string(57) "/home/skillshouse.dk/public_html/includes/application.php" ["line"]=> int(197) ["function"]=> string(15) "renderComponent" ["class"]=> string(16) "JComponentHelper" ["type"]=> string(2) "::" ["args"]=> array(1) { [0]=> &string(17) "com_coursebooking" } } [13]=> array(6) { ["file"]=> string(42) "/home/skillshouse.dk/public_html/index.php" ["line"]=> int(42) ["function"]=> string(8) "dispatch" ["class"]=> string(5) "JSite" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["previous":"Exception":private]=> NULL ["faultstring"]=> string(26) "20105 - Unknown lead field" ["faultcode"]=> string(15) "SOAP-ENV:Client" ["detail"]=> object(stdClass)#739 (1) { ["serviceException"]=> object(stdClass)#738 (3) { ["name"]=> string(19) "mktServiceException" ["message"]=> string(69) "syncLead operation failed: unknown fields for import: company (20105)" ["code"]=> string(5) "20105" } } }