uSync import warning: No output formatter was found for content types '["text/xml", "text/xml"]' to write the response.
I am running Umbraco 10.0.0 with uSync 10.0.0. I have a performed a uSync Clean Export from the source machine, and am trying to do an import to a new host.
On the new host, I can successfully report and import Settings. I can also successfully report Content.
However, when I attempt to Import content (or Import everything), progress proceeds normally through media, the progress indicator moves to "Content", and then appears to hang. After 15 seconds, the bottom pane disappears and the Report, Import, and Export button text remains in a spinning (in progress) state.
The Log Viewer indicates a Warning level issue with the message of:
No output formatter was found for content types '["text/xml", "text/xml"]' to write the response.
Does anyone know how to satisfy this warning, or is there a way to identify which content item is having the issue?
I actually think the import of the content is working but then the serialization of the results back to the browser is failing đ
The last thing that happens is the temp cache used during the sync is cleaned and then the results are returned.
So...
Do you have any content which might have strange characters / xml markup inside property values, that could be triggering something (& and ' and " type things should all be fine, maybe its something else?)
and/or
Have you changed/overridden and default serialization / json serialization properties in your project anywhere ? - maybe something is causing the controller not to use the expected serializer / settings and that is throwing it off.
I think you're right; all content appears to be imported.
There is no content that appears to have any strange characters or markup, and we have not changed any serialization.
I tried something else though and am suspicious if this is causing the issue with the content import. I cleared out the host's files and database, and started again.
This time uSync reported Settings (59 Datatypes, 19 Templates, 49 DocTypes, and 1 Macro; 128 changes across 165 items) and successfully imported the same counts with no errors (all showed Details link).
I immediately logged out and then back in, and reported Settings again. Although I expected no changes, it actually reported 10 DocTypes. I successfully imported those 10 changes with no errors (all showed Details link).
I immediately logged out and then back in, and reported Settings again. uSync reported 3 DocTypes. I successfully imported those 3 changes with no errors BUT only 1 showed a Details link.
This last step (logout, login, report Settings, import Settings) will simply repeat itself as above but with no Details link for any of the 3.
So, ...
Do you think this might be the cause of what we're seeing during the content import (which still throws the same warning even when doing the multiple Settings imports)?
As we checked each iteration of the import, it seems uSync is picking up the history of changes (renames, add/remove properties, change sort orders, etc.). There were a lot of changes as we were/are learning Umbraco, and that history should not really be needed in the test and production environments. Therefore, is it possible to direct uSync to import the current version?
uSync import warning: No output formatter was found for content types '["text/xml", "text/xml"]' to write the response.
I am running Umbraco 10.0.0 with uSync 10.0.0. I have a performed a uSync Clean Export from the source machine, and am trying to do an import to a new host.
On the new host, I can successfully report and import Settings. I can also successfully report Content.
However, when I attempt to Import content (or Import everything), progress proceeds normally through media, the progress indicator moves to "Content", and then appears to hang. After 15 seconds, the bottom pane disappears and the Report, Import, and Export button text remains in a spinning (in progress) state.
The Log Viewer indicates a Warning level issue with the message of:
No output formatter was found for content types '["text/xml", "text/xml"]' to write the response.
Does anyone know how to satisfy this warning, or is there a way to identify which content item is having the issue?
Hi,
I haven't seen one this before âšī¸ - but if you turn on debug logging for uSync ( https://docs.jumoo.co.uk/usync/uSync/guides/debugging ) then it should help pinpoint what is happening just before this error.
Hi Kevin,
Here is what the log shows with DEBUG set:
Hi,
Does anything happen above that formatter line ?
Just my log out a few minutes later. :-(
Hi,
I actually think the import of the content is working but then the serialization of the results back to the browser is failing đ
The last thing that happens is the temp cache used during the sync is cleaned and then the results are returned.
So...
Do you have any content which might have strange characters / xml markup inside property values, that could be triggering something (& and ' and " type things should all be fine, maybe its something else?)
and/or
Have you changed/overridden and default serialization / json serialization properties in your project anywhere ? - maybe something is causing the controller not to use the expected serializer / settings and that is throwing it off.
I think you're right; all content appears to be imported.
There is no content that appears to have any strange characters or markup, and we have not changed any serialization.
I tried something else though and am suspicious if this is causing the issue with the content import. I cleared out the host's files and database, and started again.
This time uSync reported Settings (59 Datatypes, 19 Templates, 49 DocTypes, and 1 Macro; 128 changes across 165 items) and successfully imported the same counts with no errors (all showed Details link).
I immediately logged out and then back in, and reported Settings again. Although I expected no changes, it actually reported 10 DocTypes. I successfully imported those 10 changes with no errors (all showed Details link).
I immediately logged out and then back in, and reported Settings again. uSync reported 3 DocTypes. I successfully imported those 3 changes with no errors BUT only 1 showed a Details link.
This last step (logout, login, report Settings, import Settings) will simply repeat itself as above but with no Details link for any of the 3.
So, ...
Do you think this might be the cause of what we're seeing during the content import (which still throws the same warning even when doing the multiple Settings imports)?
As we checked each iteration of the import, it seems uSync is picking up the history of changes (renames, add/remove properties, change sort orders, etc.). There were a lot of changes as we were/are learning Umbraco, and that history should not really be needed in the test and production environments. Therefore, is it possible to direct uSync to import the current version?
Thanks Kevin!
Hi Kevin,
We found the issue. We had a sitemapXml page. We renamed it to sitemap and it resolved the issue.
is working on a reply...