Installation and deployment
Version 7.x > Installation and deployment > Syncronization error for one document View modes: 
User avatar
Member
Member
dford-catapultrpm - 9/16/2013 12:33:29 PM
   
Syncronization error for one document
I am getting a synchronization error for one document.
Synchronization client error: Exception occurred: There was an error generating the XML document.

I am able to synchronize all other documents of the same type. This is the only one that comes back with an error. I cannot figure out what is causing this error. What could be causing this?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 9/16/2013 12:56:19 PM
   
RE:Syncronization error for one document
Could be corrupt data for the document. Finding the corrupt data would be like finding a needle in a haystack. I'd suggest syncing the parent node, then attempting to sync the child nodes after. Does the event log give you any other info? If you have versioning turned on, check the differences between versions.

User avatar
Member
Member
dford-catapultrpm - 9/16/2013 1:22:11 PM
   
RE:Syncronization error for one document
That is all the information i get from the log. On my prod server, the document was on version 9 while my stage server had the document at version 5.2. I deleted the version from my prod server but still got the synchronization error.

User avatar
Member
Member
kentico_sandroj - 9/17/2013 4:47:14 PM
   
RE:Syncronization error for one document
Hello,

What type of document is this and is there anything unusual about its content? Would it be possible to delete the parent/child nodes on the Prod server and try to synch again?

Regards,
Sandro

User avatar
Member
Member
dford-catapultrpm - 9/17/2013 4:49:24 PM
   
RE:Syncronization error for one document
This is a custom document. Nothing unusual about it. It has many text fields and some image fields. We cannot delete it from the prod server to try the synch.

User avatar
Member
Member
kentico_sandroj - 9/17/2013 5:03:59 PM
   
RE:Syncronization error for one document
Hello,

Thank you for the additional clarification. Would it be possible to provide the entire event detail under Site Manager > Administration > Event Log > EventDetailIcon?

User avatar
Member
Member
dford-catapultrpm - 9/18/2013 7:52:06 AM
   
RE:Syncronization error for one document
When i exported the event, here is what i got

EventID: 285016

EventType: E

EventTime: 9/18/2013 12:49:56 PM

Source: Staging

EventCode: SYNCSELECTEDTASK

UserID: 67

UserName: dford

IPAddress: 64.47.156.130

EventDescription: Synchronization client error: Exception occurred: There was an error generating the XML document.Synchronizing 'Update document HORMEL® NATURAL CHOICE® Brown Sugar Deli Ham' task

Site: Hormel

EventUrl: /CMSModules/Staging/Tools/AllTasks/Tasks.aspx

EventMachineName: Catapult-DEV-W2

EventUserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0

EventUrlReferrer: http://hormel.catapultclients.com/CMSModules/Staging/Tools/AllTasks/Tasks.aspx


User avatar
Member
Member
kentico_sandroj - 9/18/2013 5:05:41 PM
   
RE:Syncronization error for one document
Hello,

Since you cannot delete from Prod, would it be possible to delete the document on the staging server, then sync it back from Prod > Staging?

If that is not acceptable either, would it be possible to send us an export of the documents to Support@Kentico.com? We would like to test this issue in our system.

Best Regards,
Sandro

User avatar
Member
Member
dford-catapultrpm - 9/19/2013 1:57:20 PM
   
RE:Syncronization error for one document
Here is the output when i try to sync from prod server to stage

Event ID: 325185
Event type: Error
Event time: 9/19/2013 6:56:04 PM
Source: Staging
Event code: SYNCCURRENTDOCMULTIPLE
User ID: 67
User name: dford
IP address: 64.47.156.130

Description: Synchronization failed, see synchronization log for details.
Message: There was an error generating the XML document.
Stack Trace:
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Serialize(SoapClientMessage message)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at CMS.Synchronization.CMS.SynchronizationEngine.SyncServerWse.ProcessSynchronizationTask(String taskTitle, String taskType, String taskObjectType, String taskData, String taskBinaryData, String taskServerList, String systemVersion)
at CMS.Synchronization.SyncClient.RunTask(TaskInfo taskObj)
'', hexadecimal value 0x03, is an invalid character.
at System.Xml.XmlConvert.VerifyCharData(String data, ExceptionType invCharExceptionType, ExceptionType invSurrogateExceptionType)
at System.Xml.DocumentXmlWriter.WriteString(String text)
at System.Xml.XmlWellFormedWriter.WriteString(String text)
at System.Xml.XmlWriter.WriteElementString(String localName, String ns, String value)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterSyncServerWse.Write1_ProcessSynchronizationTask(Object[] p)
at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)

Synchronizing 'Update document HORMEL@sup@@@/sup@ NATURAL CHOICE@sup@@@/sup@ Brown Sugar Deli Ham' task
Synchronizing the tasks ...
Preparing the tasks for objects ...

Site name: Hormel
Machine name: WIN-UT4BGRG3J0J
Event URL: /CMSModules/Staging/Tools/Tasks/Tasks.aspx?serverId=0&nodeid=378
URL referrer: http://www.hormel.com/CMSModules/Staging/Tools/Tasks/Tasks.aspx?serverId=0&nodeid=378
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0

User avatar
Member
Member
kentico_sandroj - 9/19/2013 2:14:09 PM
   
RE:Syncronization error for one document
Hello,

Thank you for providing the Event Detail. I was able to reproduce the issue by using the same characters in the document name as the ones shown in the error. Please try removing everything but the plain text from the document and try the sync again.

User avatar
Member
Member
dford-catapultrpm - 9/19/2013 2:24:44 PM
   
RE:Syncronization error for one document
Do you mean the html tags i have in the text?

User avatar
Member
Member
kentico_sandroj - 9/19/2013 2:36:38 PM
   
RE:Syncronization error for one document
Yes, specifically the @ sign in the document name. There may be other invalid characters as well, I am not sure what is in the actual content.

Regards,
Sandro

User avatar
Member
Member
dford-catapultrpm - 9/19/2013 3:02:44 PM
   
RE:Syncronization error for one document
In the text, i have
<sup>®</sup>
but in the event log, it has
@sup@@@/sup@
. Is there a way to be able to use those in the text without them being taken out. I have them in many other documents that are able to be synchronized.

User avatar
Member
Member
kentico_sandroj - 9/19/2013 4:23:42 PM
   
RE:Syncronization error for one document
Hello,

I am not sure but I could try to find a workaround if you can send us an export of the documents to support@kentico.com. Have you compared the documents that are able to sync vs the one which is having this issue?