uSyncMigrations
uSyncMigrations copied to clipboard
Migrating Nested content error
Hello, I have found a problem trying to migrate nested content to block list on all of my page. (try both way use export on Umbraco8 and push it to a Umbraco 10 or link Umbraco 8 DB to Umbraco10 Website and convert). Edit: its possible that is the grid on a nested content I want to know if its linked to your process or if i need to create some Migration converte for this ?
Here the error :
Content,Content\séance-dinformation-bachelor-en-économie-dentreprise-février-2023,Failed migrating [Umbraco.NestedContent - TDComponents] : Additional text encountered after finished reading JSON content: [. Path '', line 29, position 1.,Error
Full error :
System.Exception: Failed migrating [Umbraco.NestedContent - TDComponents] : Additional text encountered after finished reading JSON content: [. Path '', line 29, position 1. ---> Newtonsoft.Json.JsonReaderException: Additional text encountered after finished reading JSON content: [. Path '', line 29, position 1. at Newtonsoft.Json.JsonTextReader.Read() at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent) at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType) at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings) at uSync.Migrations.Migrators.Optional.NestedToBlockListMigrator.GetContentValue(SyncMigrationContentProperty contentProperty, SyncMigrationContext context) at uSync.Migrations.Handlers.Shared.SharedContentBaseHandler`1.MigrateContentValue(SyncMigrationContentProperty migrationProperty, SyncMigrationContext context) at uSync.Migrations.Handlers.Shared.SharedContentBaseHandler`1.ConvertPropertyValue(String itemType, String contentType, XElement property, SyncMigrationContext context) --- End of inner exception stack trace --- at uSync.Migrations.Handlers.Shared.SharedContentBaseHandler`1.ConvertPropertyValue(String itemType, String contentType, XElement property, SyncMigrationContext context) at uSync.Migrations.Handlers.Shared.SharedContentBaseHandler`1.MigrateFile(XElement source, Int32 level, SyncMigrationContext context) at uSync.Migrations.Handlers.MigrationHandlerBase`1.MigrateFolder(String folder, Int32 level, SyncMigrationContext context)
Here the tdcomponent xml data from your files :
<TDComponents>
<Value Culture="de-ch"><![CDATA[[
{
"key": "36bdf4f7-d9f2-4c39-9fa0-65cf2e7ec860",
"name": "Event info details",
"ncContentTypeAlias": "TDComponentEventInfoDetails",
"TDComponentName": "Event details",
"TDComponentBaseBackgroundColor": "{\"value\":\"ffffff\",\"label\":\"White\",\"sortOrder\":5,\"id\":\"6\"}",
"TDComponentGrid": "{\r\n \"name\": \"1 column layout\",\r\n \"sections\": [\r\n {\r\n \"grid\": \"60\",\r\n \"rows\": [\r\n {\r\n \"name\": \"1/1\",\r\n \"id\": \"1586bc9e-c155-a399-36ae-a4e11fc0379e\",\r\n \"areas\": [\r\n {\r\n \"grid\": \"60\",\r\n \"controls\": [\r\n {\r\n \"value\": \"<h3>Sie interessieren sich für eine Bachelorausbildung?</h3>\\n<p>Wir laden Sie herzlich zu unserem Informationsabend ein, um Ihnen einen Einblick in die Ausbildung zum Bachelor of Science in Betriebsökonomie zu gewähren. Das Studium kann in Vollzeit-Zyklus oder berufsbegleitend absolviert werden.<br /><br /></p>\\n<ul>\\n<li class=\\\"text-bold\\\">Donnerstag, 2. Februar 2023, um 18.00 Uhr</li>\\n</ul>\\n<p>Bei unserem Infoanlass erhalten Sie grundlegende Informationen über die HSW Freiburg. Wir informieren Sie über unseren mehrsprachigen Bachelor in Betriebsökonomie. Zudem haben Sie die Gelegenheit, sich direkt mit ehemaligen Absolvierenden auszutauschen, die Studienleitung persönlich kennen zu lernen und haben die Möglichkeit, Fragen zu stellen.</p>\\n<p>Ein zweiter Informationsabend findet am Donnerstag, 09. März 2023 um 18:00 Uhr statt.</p>\",\r\n \"editor\": {\r\n \"alias\": \"rte\",\r\n \"view\": null\r\n },\r\n \"styles\": null,\r\n \"config\": null\r\n }\r\n ],\r\n \"styles\": null,\r\n \"config\": null\r\n }\r\n ],\r\n \"styles\": null,\r\n \"config\": null\r\n }\r\n ]\r\n }\r\n ]\r\n}",
"umbracoNaviHide": "0"
},
{
"key": "f12d8574-941c-4406-b247-c99d4b7d74bd",
"name": "Über den Bachelor",
"ncContentTypeAlias": "TDComponentGridContent",
"TDComponentGridContentGrid": "{\r\n \"name\": \"1 column layout\",\r\n \"sections\": [\r\n {\r\n \"grid\": \"60\",\r\n \"rows\": [\r\n {\r\n \"name\": \"1/1\",\r\n \"id\": \"0c24268c-ca11-cab4-8ad4-d3c514d3bc9f\",\r\n \"areas\": [\r\n {\r\n \"grid\": \"60\",\r\n \"controls\": [\r\n {\r\n \"value\": \"<h3>Schwerpunkte unseres Bachelors</h3>\\n<p>Sie haben die Möglichkeit, den Studiengang berufsbegleitend oder in Vollzeit zu absolvieren. Zu wählen, ob Sie den Studiengang auf Deutsch oder Französisch, zweisprachig (FR/DE) oder dreisprachig (FR/DE/EN) verfolgen möchten. </p>\",\r\n \"editor\": {\r\n \"alias\": \"rte\",\r\n \"view\": null\r\n },\r\n \"styles\": null,\r\n \"config\": null\r\n },\r\n {\r\n \"value\": {\r\n \"constrain\": true,\r\n \"height\": 240,\r\n \"width\": 360,\r\n \"url\": \"https://tube.switch.ch/videos/doH2NJc3sG\",\r\n \"info\": \"\",\r\n \"preview\": \"<iframe src=\\\"https://tube.switch.ch/embed/doH2NJc3sG\\\" frameborder=\\\"0\\\" width=\\\"360\\\" height=\\\"240\\\" title=\\\"Video HEG-FR\\\" webkitallowfullscreen mozallowfullscreen allowfullscreen allowfullscreen></iframe>\"\r\n },\r\n \"editor\": {\r\n \"alias\": \"embed\",\r\n \"view\": null\r\n },\r\n \"styles\": null,\r\n \"config\": null\r\n },\r\n {\r\n \"value\": {\r\n \"macroAlias\": \"TDBiglinksListPages\",\r\n \"macroParamsDictionary\": {\r\n \"TDBiglinksListPagesContent\": \"[{"name":"Betriebsökonomie","id":1555,"udi":"umb://document/0deeccaf87d24fbea49a4a666d8b122b","icon":"icon-school color-black","trashed":false,"key":"0deeccaf-87d2-4fbe-a49a-4a666d8b122b","parentId":1091,"alias":null,"path":"-1,1085,1090,1091,1555","metaData":{"ContentTypeAlias":"TDFormation","IsPublished":true,"IsContainer":false},"isImportant":false}]\",\r\n \"TDBiglinksListPagesLarge\": \"0\",\r\n \"TDBiglinksListPagesNegative\": \"0\",\r\n \"TDBiglinksListPagesDescription\": \"0\"\r\n }\r\n },\r\n \"editor\": {\r\n \"alias\": \"macro\",\r\n \"view\": null\r\n },\r\n \"styles\": null,\r\n \"config\": null\r\n }\r\n ],\r\n \"styles\": null,\r\n \"config\": null\r\n }\r\n ],\r\n \"styles\": null,\r\n \"config\": null\r\n }\r\n ]\r\n }\r\n ]\r\n}",
"TDComponentName": "Über den Bachelor",
"TDComponentBaseBackgroundColor": "{\"value\":\"ffffff\",\"label\":\"White\",\"sortOrder\":5,\"id\":\"6\"}",
"umbracoNaviHide": "0"
},
{
"key": "1b5d4e51-dab9-4e6d-9a5e-cbcff0e59457",
"name": "Contacts",
"ncContentTypeAlias": "TDComponentProductContact",
"TDComponentName": "Kontakt",
"TDComponentBaseBackgroundColor": "{\"value\":\"6e777c\",\"label\":\"Third\",\"sortOrder\":2,\"id\":\"3\"}",
"umbracoNaviHide": "0",
"TDComponentProductContactTitle": "Fragen? Kontaktieren Sie uns."
}
]]]></Value>
<Value Culture="en-ch"><![CDATA[[
{
"key": "1d0d1381-d76f-4047-8cb0-2b9422d0f74d",
"name": "Event info details",
"ncContentTypeAlias": "TDComponentEventInfoDetails",
"TDComponentName": "Event details",
"TDComponentBaseBackgroundColor": "{\"value\":\"ffffff\",\"label\":\"White\",\"sortOrder\":5,\"id\":\"6\"}",
"TDComponentGrid": "{\r\n \"name\": \"1 column layout\",\r\n \"sections\": [\r\n {\r\n \"grid\": \"60\",\r\n \"rows\": [\r\n {\r\n \"name\": \"1/1\",\r\n \"id\": \"1586bc9e-c155-a399-36ae-a4e11fc0379e\",\r\n \"areas\": [\r\n {\r\n \"grid\": \"60\",\r\n \"controls\": [\r\n {\r\n \"value\": \"<h3>Interested to follow a Bachelor degree in Business Administration? </h3>\\n<p>In order to know better this formation, we invite you to participate at an information evening in French or German, on Thursday the 2nd of February 2023, at 6:00 p.m., at the HEG-FR. </p>\\n<p>Another information session will take place on the 9th of March 2023, 6:00 p.m. </p>\",\r\n \"editor\": {\r\n \"alias\": \"rte\",\r\n \"view\": null\r\n },\r\n \"styles\": null,\r\n \"config\": null\r\n }\r\n ],\r\n \"styles\": null,\r\n \"config\": null\r\n }\r\n ],\r\n \"styles\": null,\r\n \"config\": null\r\n }\r\n ]\r\n }\r\n ]\r\n}",
"umbracoNaviHide": "0"
},
{
"key": "ab9e7d66-69f2-4b68-b380-5ce51c8700c0",
"name": "Points forts",
"ncContentTypeAlias": "TDComponentGridContent",
"TDComponentGridContentGrid": "{\r\n \"name\": \"1 column layout\",\r\n \"sections\": [\r\n {\r\n \"grid\": \"60\",\r\n \"rows\": [\r\n {\r\n \"name\": \"1/1\",\r\n \"id\": \"482e8977-4e31-ef4a-6deb-57d1813fc92f\",\r\n \"areas\": [\r\n {\r\n \"grid\": \"60\",\r\n \"controls\": [\r\n {\r\n \"value\": \"<h3>Strengths of our Bachelor </h3>\\n<div>Vous avez la possibilité de suivre la formation en emploi ou à plein temps. De choisir, si vous désirez suivre le cursus en français ou en allemand, en bilingue (FR/DE) ou en trilingue (FR/DE/EN). </div>\",\r\n \"editor\": {\r\n \"alias\": \"rte\",\r\n \"view\": \"rte\"\r\n },\r\n \"styles\": null,\r\n \"config\": null\r\n },\r\n {\r\n \"value\": {\r\n \"constrain\": true,\r\n \"height\": 240,\r\n \"width\": 360,\r\n \"url\": \"https://tube.switch.ch/videos/r7brGaWjUG\",\r\n \"info\": \"\",\r\n \"preview\": \"<iframe src=\\\"https://tube.switch.ch/embed/r7brGaWjUG\\\" frameborder=\\\"0\\\" width=\\\"360\\\" height=\\\"240\\\" title=\\\"Video HEG-FR\\\" webkitallowfullscreen mozallowfullscreen allowfullscreen allowfullscreen></iframe>\"\r\n },\r\n \"editor\": {\r\n \"alias\": \"embed\",\r\n \"view\": \"embed\"\r\n },\r\n \"styles\": null,\r\n \"config\": null\r\n },\r\n {\r\n \"value\": {\r\n \"macroAlias\": \"TDBiglinksListPages\",\r\n \"macroParamsDictionary\": {\r\n \"TDBiglinksListPagesContent\": \"[{"score":1.35283208,"name":"Business administration","id":"1555","udi":"umb://document/0deeccaf87d24fbea49a4a666d8b122b","icon":"icon-school color-black","trashed":false,"key":"0deeccaf-87d2-4fbe-a49a-4a666d8b122b","parentId":1091,"alias":null,"path":"","metaData":{"contentType":"TDFormation","Url":"/en/studies/bachelor/business-administration/"},"menuUrl":"/umbraco/backoffice/UmbracoTrees/ContentTree/GetMenu?id=1555&application=undefined","editorPath":"undefined/undefined/edit/1555","subTitle":"/en/studies/bachelor/business-administration/","selected":true,"isImportant":false}]\",\r\n \"TDBiglinksListPagesLarge\": \"0\",\r\n \"TDBiglinksListPagesNegative\": \"0\",\r\n \"TDBiglinksListPagesDescription\": \"0\"\r\n }\r\n },\r\n \"editor\": {\r\n \"alias\": \"macro\",\r\n \"view\": \"macro\"\r\n },\r\n \"styles\": null,\r\n \"config\": null\r\n }\r\n ],\r\n \"styles\": null,\r\n \"config\": null\r\n }\r\n ],\r\n \"styles\": null,\r\n \"config\": null\r\n }\r\n ]\r\n }\r\n ]\r\n}",
"TDComponentName": "Points forts",
"TDComponentBaseBackgroundColor": "{\"value\":\"ffffff\",\"label\":\"White\",\"sortOrder\":5,\"id\":\"6\"}",
"umbracoNaviHide": "0"
},
{
"key": "278ad702-0191-4168-a9ef-3a77dc59417f",
"name": "Contacts",
"ncContentTypeAlias": "TDComponentProductContact",
"TDComponentName": "Contact",
"TDComponentBaseBackgroundColor": "{\"value\":\"6e777c\",\"label\":\"Third\",\"sortOrder\":2,\"id\":\"3\"}",
"umbracoNaviHide": "0",
"TDComponentProductContactTitle": "Vous avez des questions ?"
}
]]]></Value>
<Value Culture="fr-ch"><![CDATA[[
{
"key": "26754858-3c0a-42f3-ada6-d9a7bd47ed2b",
"name": "Event info details",
"ncContentTypeAlias": "TDComponentEventInfoDetails",
"TDComponentName": "Event details",
"TDComponentBaseBackgroundColor": "{\"value\":\"ffffff\",\"label\":\"White\",\"sortOrder\":5,\"id\":\"6\"}",
"TDComponentGrid": "{\r\n \"name\": \"1 column layout\",\r\n \"sections\": [\r\n {\r\n \"grid\": \"60\",\r\n \"rows\": [\r\n {\r\n \"name\": \"1/1\",\r\n \"id\": \"1586bc9e-c155-a399-36ae-a4e11fc0379e\",\r\n \"areas\": [\r\n {\r\n \"grid\": \"60\",\r\n \"controls\": [\r\n {\r\n \"value\": \"<h3>Vous êtes intéress.é.e.s à suivre une formation Bachelor?</h3>\\n<p>Afin de vous permettre de mieux connaître la formation Bachelor of Science en économie d'entreprise, nous vous invitons à une soirée d'information le <strong>Jeudi 2 février 2023 à 18h00.</strong></p>\\n<p>Nous vous présentons:</p>\\n<ul>\\n<li>Notre cursus</li>\\n<li>Nos modalités d'études</li>\\n</ul>\\n<p>Une seconde soirée d'information aura lieu le jeudi 9 mars 2023 à 18h00.</p>\",\r\n \"editor\": {\r\n \"alias\": \"rte\",\r\n \"view\": \"rte\"\r\n },\r\n \"styles\": null,\r\n \"config\": null\r\n }\r\n ],\r\n \"styles\": null,\r\n \"config\": null\r\n }\r\n ],\r\n \"styles\": null,\r\n \"config\": null\r\n }\r\n ]\r\n }\r\n ]\r\n}",
"umbracoNaviHide": "0"
},
{
"key": "6314ed67-9764-4e4c-ac34-7259e49fa1ca",
"name": "Points forts",
"ncContentTypeAlias": "TDComponentGridContent",
"TDComponentGridContentGrid": "{\r\n \"name\": \"1 column layout\",\r\n \"sections\": [\r\n {\r\n \"grid\": \"60\",\r\n \"rows\": [\r\n {\r\n \"name\": \"1/1\",\r\n \"id\": \"482e8977-4e31-ef4a-6deb-57d1813fc92f\",\r\n \"areas\": [\r\n {\r\n \"grid\": \"60\",\r\n \"controls\": [\r\n {\r\n \"value\": \"<h3>Points forts de notre Bachelor</h3>\\n<div>Vous avez la possibilité de suivre la formation en emploi ou à plein temps. De choisir, si vous désirez suivre le cursus en français ou en allemand, en bilingue (FR/DE) ou en trilingue (FR/DE/EN). </div>\",\r\n \"editor\": {\r\n \"alias\": \"rte\",\r\n \"view\": \"rte\"\r\n },\r\n \"styles\": null,\r\n \"config\": null\r\n },\r\n {\r\n \"value\": {\r\n \"constrain\": true,\r\n \"height\": 240,\r\n \"width\": 360,\r\n \"url\": \"https://tube.switch.ch/videos/7e7cc3a6\",\r\n \"info\": \"\",\r\n \"preview\": \"<iframe src=\\\"https://tube.switch.ch/embed/7e7cc3a6\\\" frameborder=\\\"0\\\" width=\\\"360\\\" height=\\\"240\\\" title=\\\"Video HEG-FR\\\" webkitallowfullscreen mozallowfullscreen allowfullscreen allowfullscreen></iframe>\"\r\n },\r\n \"editor\": {\r\n \"alias\": \"embed\",\r\n \"view\": \"embed\"\r\n },\r\n \"styles\": null,\r\n \"config\": null\r\n },\r\n {\r\n \"value\": {\r\n \"macroAlias\": \"TDBiglinksListPages\",\r\n \"macroParamsDictionary\": {\r\n \"TDBiglinksListPagesContent\": \"[{"score":1.18674755,"name":"Économie d'entreprise","id":"1555","udi":"umb://document/0deeccaf87d24fbea49a4a666d8b122b","icon":"icon-school color-black","trashed":false,"key":"0deeccaf-87d2-4fbe-a49a-4a666d8b122b","parentId":1091,"alias":null,"path":"-1,1085,1090,1091,1555","metaData":{"contentType":"TDFormation","Url":"http://www.heg-fr.ch/fr/etudes/bachelor/economie-d-entreprise/"},"menuUrl":"/umbraco/backoffice/UmbracoTrees/ContentTree/GetMenu?id=1555&application=undefined","editorPath":"undefined/undefined/edit/1555","subTitle":"http://www.heg-fr.ch/fr/etudes/bachelor/economie-d-entreprise/","selected":true,"isImportant":false}]\",\r\n \"TDBiglinksListPagesLarge\": \"0\",\r\n \"TDBiglinksListPagesNegative\": \"0\",\r\n \"TDBiglinksListPagesDescription\": \"0\"\r\n }\r\n },\r\n \"editor\": {\r\n \"alias\": \"macro\",\r\n \"view\": \"macro\"\r\n },\r\n \"styles\": null,\r\n \"config\": null\r\n }\r\n ],\r\n \"styles\": null,\r\n \"config\": null\r\n }\r\n ],\r\n \"styles\": null,\r\n \"config\": null\r\n }\r\n ]\r\n }\r\n ]\r\n}",
"TDComponentName": "Points forts",
"TDComponentBaseBackgroundColor": "{\"value\":\"ffffff\",\"label\":\"White\",\"sortOrder\":5,\"id\":\"6\"}",
"umbracoNaviHide": "0"
},
{
"key": "1ecdc075-5400-48f0-9772-2faace524ff5",
"name": "Contacts",
"ncContentTypeAlias": "TDComponentProductContact",
"TDComponentName": "Contact",
"TDComponentBaseBackgroundColor": "{\"value\":\"6e777c\",\"label\":\"Third\",\"sortOrder\":2,\"id\":\"3\"}",
"umbracoNaviHide": "0",
"TDComponentProductContactTitle": "Vous avez des questions?"
}
]]]></Value>
</TDComponents>