How to fix XML Data Integrity issues with Media & Content?
Does anyone know how to fix these XML Data Integrity issues with Media and Content? I've already dumped AppData --> cache/courier/Logs/preview/Temp folders, and I've already rebuilt the ExternalIndexer and InternalIndexer in Examine Management.
I think there used to be a "Fix" button for these but I'm not sure / can't see it on Umbraco 7.8.1.
Any ideas?
Best,
Chris
Edit:
Not sure if it's related but I'm getting hundreds of these errors in UmbracoTraceLog:
2018-03-12 09:04:56,460 [P15328/D3/T26] INFO Umbraco.Web.WebServices.ExamineManagementApiController - Rebuilding index 'InternalMemberIndexer'
2018-03-12 09:04:56,464 [P15328/D3/T26] INFO UmbracoExamine.DataServices.UmbracoLogService - Rebuilding index, Provider=InternalMemberIndexer, NodeId=-1
2018-03-12 09:04:56,529 [P15328/D3/T26] INFO UmbracoExamine.DataServices.UmbracoLogService - PerformIndexAll - Start data queries - member, Provider=InternalMemberIndexer, NodeId=-1
2018-03-12 09:04:56,634 [P15328/D3/T26] INFO UmbracoExamine.DataServices.UmbracoLogService - PerformIndexAll - End data queries - member, took 104ms, Provider=InternalMemberIndexer, NodeId=-1
2018-03-12 09:04:56,646 [P15328/D3/T34] INFO Umbraco.Web.WebServices.ExamineManagementApiController - Rebuilding index 'InternalMemberIndexer' done, 1 items committed (can differ from the number of items in the index)
2018-03-12 09:05:00,743 [P15328/D3/T28] WARN Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedMediaCache - Failed (10 times) to retrieve medias from Examine index and had to load them from DB. This may indicate that the Examine index is corrupted.
2018-03-12 09:05:03,827 [P15328/D3/T34] INFO Umbraco.Web.WebServices.ExamineManagementApiController - Rebuilding index 'InternalIndexer'
2018-03-12 09:05:03,827 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - Rebuilding index, Provider=InternalIndexer, NodeId=-1
2018-03-12 09:05:03,869 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - PerformIndexAll - Start data queries - content, Provider=InternalIndexer, NodeId=-1
2018-03-12 09:05:04,142 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - PerformIndexAll - End data queries - content, took 272ms, Provider=InternalIndexer, NodeId=-1
2018-03-12 09:05:04,142 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - PerformIndexAll - Start data queries - media, Provider=InternalIndexer, NodeId=-1
2018-03-12 09:05:04,179 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - PerformIndexAll - End data queries - media, took 35ms, Provider=InternalIndexer, NodeId=-1
2018-03-12 09:05:04,235 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "InternalIndexSet". Please ensure all names are unique, Provider=InternalIndexer, NodeId=1063
2018-03-12 09:05:04,322 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "InternalIndexSet". Please ensure all names are unique, Provider=InternalIndexer, NodeId=1065
2018-03-12 09:05:04,325 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "InternalIndexSet". Please ensure all names are unique, Provider=InternalIndexer, NodeId=1068
2018-03-12 09:05:04,340 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "InternalIndexSet". Please ensure all names are unique, Provider=InternalIndexer, NodeId=1082
2018-03-12 09:05:04,341 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "InternalIndexSet". Please ensure all names are unique, Provider=InternalIndexer, NodeId=1084
2018-03-12 09:05:04,342 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "InternalIndexSet". Please ensure all names are unique, Provider=InternalIndexer, NodeId=1085
2018-03-12 09:05:04,343 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "InternalIndexSet". Please ensure all names are unique, Provider=InternalIndexer, NodeId=1093
2018-03-12 09:05:04,344 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "InternalIndexSet". Please ensure all names are unique, Provider=InternalIndexer, NodeId=1094
2018-03-12 09:05:04,345 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "InternalIndexSet". Please ensure all names are unique, Provider=InternalIndexer, NodeId=1095
2018-03-12 09:05:04,516 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "InternalIndexSet". Please ensure all names are unique, Provider=InternalIndexer, NodeId=1096
2018-03-12 09:05:04,520 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "InternalIndexSet". Please ensure all names are unique, Provider=InternalIndexer, NodeId=1118
2018-03-12 09:05:04,523 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "InternalIndexSet". Please ensure all names are unique, Provider=InternalIndexer, NodeId=1139
2018-03-12 09:05:04,525 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "InternalIndexSet". Please ensure all names are unique, Provider=InternalIndexer, NodeId=1163
2018-03-12 09:05:04,526 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "InternalIndexSet". Please ensure all names are unique, Provider=InternalIndexer, NodeId=1252
2018-03-12 09:05:04,527 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "InternalIndexSet". Please ensure all names are unique, Provider=InternalIndexer, NodeId=1256
2018-03-12 09:05:04,528 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "InternalIndexSet". Please ensure all names are unique, Provider=InternalIndexer, NodeId=1260
2018-03-12 09:05:04,528 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "InternalIndexSet". Please ensure all names are unique, Provider=InternalIndexer, NodeId=1264
2018-03-12 09:05:04,529 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "InternalIndexSet". Please ensure all names are unique, Provider=InternalIndexer, NodeId=1268
2018-03-12 09:05:04,530 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "InternalIndexSet". Please ensure all names are unique, Provider=InternalIndexer, NodeId=1273
I'm also getting these errors for the ExternalIndexSet:
2018-03-12 09:05:06,002 [P15328/D3/T34] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "InternalIndexSet". Please ensure all names are unique, Provider=InternalIndexer, NodeId=3102
2018-03-12 09:05:06,007 [P15328/D3/T34] INFO Umbraco.Web.WebServices.ExamineManagementApiController - Rebuilding index 'InternalIndexer' done, 1370 items committed (can differ from the number of items in the index)
2018-03-12 09:05:06,760 [P15328/D3/T40] INFO umbraco.BusinessLogic.Log - Log scrubbed. Removed all items older than 2018-03-11 09:05:06
2018-03-12 09:05:12,803 [P15328/D3/T28] INFO Umbraco.Web.WebServices.ExamineManagementApiController - Rebuilding index 'ExternalIndexer'
2018-03-12 09:05:12,804 [P15328/D3/T28] INFO UmbracoExamine.DataServices.UmbracoLogService - Rebuilding index, Provider=ExternalIndexer, NodeId=-1
2018-03-12 09:05:12,854 [P15328/D3/T28] INFO UmbracoExamine.DataServices.UmbracoLogService - PerformIndexAll - Start data queries - content, Provider=ExternalIndexer, NodeId=-1
2018-03-12 09:05:12,923 [P15328/D3/T28] INFO UmbracoExamine.DataServices.UmbracoLogService - PerformIndexAll - End data queries - content, took 68ms, Provider=ExternalIndexer, NodeId=-1
2018-03-12 09:05:12,923 [P15328/D3/T28] INFO UmbracoExamine.DataServices.UmbracoLogService - PerformIndexAll - Start data queries - media, Provider=ExternalIndexer, NodeId=-1
2018-03-12 09:05:12,925 [P15328/D3/T6] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "ExternalIndexSet". Please ensure all names are unique, Provider=ExternalIndexer, NodeId=1063
2018-03-12 09:05:12,958 [P15328/D3/T28] INFO UmbracoExamine.DataServices.UmbracoLogService - PerformIndexAll - End data queries - media, took 35ms, Provider=ExternalIndexer, NodeId=-1
2018-03-12 09:05:12,967 [P15328/D3/T6] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "ExternalIndexSet". Please ensure all names are unique, Provider=ExternalIndexer, NodeId=1601
2018-03-12 09:05:12,968 [P15328/D3/T6] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "ExternalIndexSet". Please ensure all names are unique, Provider=ExternalIndexer, NodeId=1726
2018-03-12 09:05:12,969 [P15328/D3/T6] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "ExternalIndexSet". Please ensure all names are unique, Provider=ExternalIndexer, NodeId=1778
2018-03-12 09:05:12,971 [P15328/D3/T6] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "ExternalIndexSet". Please ensure all names are unique, Provider=ExternalIndexer, NodeId=1727
2018-03-12 09:05:12,973 [P15328/D3/T6] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "ExternalIndexSet". Please ensure all names are unique, Provider=ExternalIndexer, NodeId=1896
2018-03-12 09:05:12,974 [P15328/D3/T6] INFO UmbracoExamine.DataServices.UmbracoLogService - Field "template" is listed multiple times in the index set "ExternalIndexSet". Please ensure all names are unique, Provider=ExternalIndexer, NodeId=1992
I'm primarily having issues with Content ID's and Media ID's mismatching between staging and production. Because of this, I've been having to delete and re-upload things on production and have temporarily abandoned staging + courier to transfer updates. A mapped ID might not match up to anything or it might match up to an old content or media item.
Update / Fix
Partial PEBCAK here, but if I click the Green square that's lacking any text it does actually POST to execute the action to fix the Media and fix the Content.
Couple other details in case someone else stumbles upon this:
It just ends up posting to /umbraco/BackOffice/Api/HealthCheck/ExecuteAction
with all of the required cookies, HTTP headers, etc. and a JSON payload like this:
I know this is a super old ticket, but the missing "fix" text is still missing in the later versions on Umbraco (e.g. 7.12.4) and now that it's been pointed out I can't unsee it!!
How to fix XML Data Integrity issues with Media & Content?
Does anyone know how to fix these XML Data Integrity issues with Media and Content? I've already dumped AppData --> cache/courier/Logs/preview/Temp folders, and I've already rebuilt the ExternalIndexer and InternalIndexer in Examine Management.
I think there used to be a "Fix" button for these but I'm not sure / can't see it on Umbraco 7.8.1.
Any ideas?
Best, Chris
Edit: Not sure if it's related but I'm getting hundreds of these errors in UmbracoTraceLog:
I'm also getting these errors for the ExternalIndexSet:
Hi Chris
You are right, there should be "Fix" button, and this button should fix this issue
Do you have some issues with files and folders permissions? Or database?
Alex
Here's the contents of ~\Umbraco\Views\dashboard\developer\healthcheck.cshtml; doesn't seem to have any "Fix button" code:
I also dumped the entire contents of ~\Umbraco\ folder and replaced from a 7.8.1 download and can't see the fix button.
Is there a SQL query or something I can run to manually fix this? Or how can I proceed to fix?
Also tried emptying the Media trash and deleting App_Data\umbraco.config and let the site rebuild it. Still have XML Data Integrity errors.
I'm primarily having issues with Content ID's and Media ID's mismatching between staging and production. Because of this, I've been having to delete and re-upload things on production and have temporarily abandoned staging + courier to transfer updates. A mapped ID might not match up to anything or it might match up to an old content or media item.
Update: -- Partially Fixed
I tried hitting {website.com}/umbraco/dialogs/republish.aspx?xml=true and got a YSOD. Then I tried again and it worked.
This results in the content ID's being fixed; but the Media Items are still messed up. Is there an equivalent republish for Media?
Click on the green square?
Opened a bug for the Fix button not being visible: http://issues.umbraco.org/issue/U4-11088
Update / Fix Partial PEBCAK here, but if I click the Green square that's lacking any text it does actually POST to execute the action to fix the Media and fix the Content.
Couple other details in case someone else stumbles upon this:
How the data integrity checks work: https://our.umbraco.org/forum/umbraco-7/using-umbraco-7//73079-xml-cache-data-integrity-check-in-730-what-is-it-and-why-does-the-fix-throw-an-exception#comment-238271
Where the backend code is in case you want to dig into it: https://github.com/umbraco/Umbraco-CMS/blob/dev-v7/src/Umbraco.Web/HealthCheck/Checks/DataIntegrity/XmlDataIntegrityHealthCheck.cs
Client app/Backoffice code: https://github.com/umbraco/Umbraco-CMS/tree/dev-v7/src/Umbraco.Web.UI.Client/src/views/dashboard/developer
It just ends up posting to /umbraco/BackOffice/Api/HealthCheck/ExecuteAction with all of the required cookies, HTTP headers, etc. and a JSON payload like this:
What that actually does in SQL is still a bit of magic to me though.
Hey Chris,
I know this is a super old ticket, but the missing "fix" text is still missing in the later versions on Umbraco (e.g. 7.12.4) and now that it's been pointed out I can't unsee it!!
Put in a wee PR to fix it here: https://github.com/umbraco/Umbraco-CMS/pull/3782 think it was just a missing name property. Linked it to your issue as well :)
Cheers,
Laura
Appreciate it -- you rock!
is working on a reply...