Re: What's this error about? 20126 - Workspace not found

Anonymous
Not applicable

What's this error about? 20126 - Workspace not found

I tried to run the sample SyncLead code in Java an get this error:

Notes: In fact, this sample code ran fine with the credentials provided in the sample (Marketo Host, User Id, Secret Key), but when I tried to use this my own credentials (HUS), I got the error.

Executing syncLead
javax.xml.ws.soap.SOAPFaultException: 20126 - Workspace not found
at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(Unknown Source)
at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(Unknown Source)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source)
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source)
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(Unknown Source)
at com.sun.proxy.$Proxy34.syncLead(Unknown Source)
at pkg.client.TestMarketoSyncLead.main(TestMarketoSyncLead.java:80)

The error points to this line in the code:

SuccessSyncLead result = port.syncLead(request, header, headerContext);

Please help me to resolve this issue.
Thanks!
Tags (1)
3 REPLIES 3
Anonymous
Not applicable

Re: What's this error about? 20126 - Workspace not found

Hi ken-
it sounds like it is wanting the workspace id to be included in the call - like "wsInfo":

If you use different workspaces, you can get their different ids from checking the Munchkin code for the values - they typically start with the letter j in the value.

However, I'm not sure if you don't rely on workspaces what the default value should be....NULL maybe?

Maybe one of the MKTO folks who peruse the boards can confirm.
Anonymous
Not applicable

Re: What's this error about? 20126 - Workspace not found

Thanks Brigid, do you happen to have a sample in SOAP API Java (not Munchkin) that shows me how to do it? I'm new to both Marketo and Java.
Anonymous
Not applicable

Re: What's this error about? 20126 - Workspace not found

Have you run through the documentation on developers.marketo.com yet?

The workspace thing seems to be noted here: http://developers.marketo.com/documentation/soap/synclead/

I'm not a developer but I have dealt with enough issues to at least help try to point you to the right direction.....hopefully a true dev can help out further!