Re: Salesforce Sync Error: No XML Document Error

nzegarra98
Level 2

Hello, 

 

I received a Marketo Salesforce Sync Error that myself and my team are not familiar with. The error is as follows:

Screenshot 2023-06-23 084217.png

I was able to find one post about something close to this error, but their issue was with a specific to a lead sync issue, based on a problematic character. You can find that thread here: https://nation.marketo.com/t5/product-discussions/lead-sync-error/td-p/64235


I have ran a test and can see that we are syncing new and existing leads with no issue. I was wondering if anyone is familiar with this lead, and if any action is even needed. 

 

Thanks!

Tags (3)
14 REPLIES 14
RichJG
Level 1

I have been getting the same error for some time too. And ever since, we are not getting alerts regarding new form fills. The fills are successfully being pushed into Salesforce but no alerts. This makes it tedious to check on new leads. I have reached out to Marketo several times with no help at all. Moreover, this was working fine for over a year before the Sync Error first started. And we have not touched anything with the Marketo flow or trigger. 

 

Can anyone offer any advice?

SanfordWhiteman
Level 10 - Community Moderator

You mean Salesforce alerts? What are the criteria for the flow/trigger in SFDC that’s supposed to trigger on form fills? And how are you inserting form fills — as Tasks?

AjayS
Level 4 - Community Advisor + Adobe Champion

Hi, @nzegarra98 

 

Can you please check with your Salesforce admin if there is a listener process/workflow/Apex-Trigger through which some custom code from Salesforce sends an XML document? I think the process/flow/Apex-Trigger is failing for some reason on Salesforce. If there is an automation on Salesforce, please check if this is working well.

SanfordWhiteman
Level 10 - Community Moderator

Can you please check with your Salesforce admin if there is a listener process/workflow/Apex-Trigger through which some custom code from Salesforce sends an XML document?

You can’t craft a custom XML document this way. But all responses from the Salesforce SOAP API are XML, by definition.

DeniseGreenberg
Level 4

@SanfordWhiteman - This thread is so old I wasn't sure if I should reply here or start a new thread. We have been seeing the No XML Document error periodically for months now. When I go into the Salesforce Integration section in Admin and check the sync errors, it says:

 

DeniseGreenberg_0-1710183626661.png

(Hope you can see that - it says "Error Type: Job Level" "Error Details: getDeletedSObjects failed for type 'CampaignMemberStatus' - looks like we got no XML document".

 

I shared this information with the SFDC administrator. He does not know how to interpret it and said "I don't understand why Marketo is trying to Get deleted Standard Objects of CampaignMemberStatus. I would think it would try to get records as there would only be 1 object with that name. This object is actually just an object whose records are the same as the  values for the picklist field "Status" on the Campaign Member object. And it doesn't look like it actually does anything from the Salesforce perspective as the picklist doesn't appear to be related to the CampaignMemberStatus object."

 

I don't know what Job Level would have to do with CampaignMemberStatus either.

 

Are you able to offer any insight or should I log a support ticket?

SanfordWhiteman
Level 10 - Community Moderator

“Job Level” refers to the Marketo sync job, not a lead field.

 

Marketo tries to sync deleted objects just in case, it’s harmless.

DeniseGreenberg
Level 4

Thanks. So we should just ignore the error? Any idea what changed to cause Marketo to constantly create the error notification (constantly = several times per month).

sydneym_airtabl
Level 1

I am seeing this regularly as well. Not sure how to resolve. It just started in July 2023.

Tina_Chang
Level 1

same here, started seeing this error 3 times now since July, 2023. Is it something in Salesforce summer release that causes the error?

I am the Salesforce Admin. I created some new flows but nothing related to sending XML documents. 

I submitted a case to Marketo and techsupport said nothing she could find and everything looks okay. But then two days later, I got the error again.

 

SanfordWhiteman
Level 10 - Community Moderator

@Tina_Chang wrote:

same here, started seeing this error 3 times now since July, 2023. Is it something in Salesforce summer release that causes the error?

I am the Salesforce Admin. I created some new flows but nothing related to sending XML documents. 

I submitted a case to Marketo and techsupport said nothing she could find and everything looks okay. But then two days later, I got the error again.

 


As noted above, you can’t send custom XML documents. Every valid response to a SOAP API call is an XML document. Most likely your flow is erroring out so an empty body is being sent.

Burns7227
Level 1

Hey Sanford, trying to understand a bit more here, are you saying marketo is sending a SOAP API Call, the valid response from SFDC would be an XML Document, which it isn't sending, therefore there is a failed sync between Marketo & SFDC?

SanfordWhiteman
Level 10 - Community Moderator

Hey Sanford, trying to understand a bit more here, are you saying marketo is sending a SOAP API Call, the valid response from SFDC would be an XML Document, which it isn't sending, therefore there is a failed sync between Marketo & SFDC?

Yes, for example if some SFDC automation fails completely, the response body might be simple text, JSON or even empty, none of which are valid XML.

 

It’s unlikely you’d have a partially-formed-but-invalid XML response — more like it’s not even close to XML because an internal error occurred.

Burns7227
Level 1

Got it, thanks for the reply. So best case scenario is to check any automation on the sfdc side relative to any records sent over around that time?

SanfordWhiteman
Level 10 - Community Moderator

Right.