How is this actually used? I installed the module, enabled it and entered the API and secret (aka encryption key). I created a couple webforms and made sure every field had "Submit the value of this field to marketo" checked. I did no setup or configuration on the Marketo side of things.

When I submit forms, I get the success message:

Thank you, your submission has been received.

But I also get a Drupal error:

Notice: Undefined variable: success in mktSampleMktowsClient->syncLead() (line 1224 of /sites/all/modules/contrib/marketo/includes/marketo.soap.inc).

When I check in Marketo, I dont see the data anywhere. How does the module know where in Marketo to put the data? Where should I be looking in Marketo to see the data? Why is the module throwing this error?

CommentFileSizeAuthor
Screen-Shot-2014-02-06-at-11.11.26-AM.jpg42.32 KBjeffrod

Comments

jeffrod’s picture

The Drupal log records the following error

Marketo SOAP error:stdClass Object ( [serviceException] => stdClass Object ( [name] => mktServiceException [message] => Authentication failed (20014) [code] => 20014 ) )

And after digging a little further into the PHP, the underlying error is:

SoapFault: 20014 - Authentication failed in SoapClient->__soapCall() (line 1176 of /sites/all/modules/contrib/marketo/includes/marketo.soap.inc).

which refers to (line numbers dont match because of debugging messages):

$success = $this->soapClient->__soapCall('syncLead', array($params), $options, $authHdr);

I double checked my keys and they are correct. Is there something else that can be causing this? Did the API change?

I guess the nature of this ticket is shifting from documentation to bug.

jeffrod’s picture

I created a gist of the $params, $authHdr and complete exception object. It can be found here...

https://gist.github.com/unhinged/8853741

jcmiller09’s picture

One usually gets that error or similar, if one submits data to the SOAP endpoint that doesn't have any correct machine names. Have you checked the exported .CSV list of field names you can create in the Admin section of Marketo?