Problem with wm.broker.sync: listOutOfSyncs

Hi All,

I am using the wm.broker.sync:listOutOfSyncs service to get the list of documents which are out of sync with broker. When I try to loop over the list returned by this method, I am not able to get the nsName element of the document.The value of this element can be seen in the pipeline, but when I try to assign it to a variable, it is set as empty string.

Can anyone please provide me with some inputs to resolve this problem?

Thanks & Regards,
Rajani

Seems you’re not the first person to face that issue.
Here is the solution marked as efficient:
“Convert the outOfsyncs (in the call wm.broker.sync:listOutOfSyncs)Document in the repeat loop to XML Values, and back to a document, by using pub.document:documentToXMLValues and pub.document:XMLValuesToDocument.”

Hope that’ll work.
Mathieu

Thanks Mathieu,
The solution given by you worked…

Regards,
Rajani Pawar