1

We have modified a field XML name and then see that all components with that schema is missing the images, whose XML field was modified. Is there a way to prevent loss of data in such scenarios?

  • if you will rollback your schema to previous version, then i hope your content will appear back in your component, only if you have not open your components and saved it. – SDLBeginner Jun 11 at 13:49
4

The Component content is stored in XML format in the DB.

If you update a schema XML name then the XML for that component no longer maps to that new field[1].

  • You can synchronize the content against the updated schema. [2] [3]
  • If you're not allowed to do that, then you could create a new field and write something to copy the content of the original field (not yet removed) to the new field for each component using that schema. Then remove the old field.
  • If you're Content Porting during this change you will need to be careful to align the schemas, and/or have synchronization checked

[1] A point to note is when you make the schema update, there is no immediate impact to the Component XML. If, however, you open a specific Component and resave - then the XML will have been updated and the XML element (and therefore the content) pertaining to the previous field will be removed. It still exists in history but it's likely you're in a world of pain at that point ;)

[2] https://gist.github.com/jhorsman/7ded04f56542e013492173fc7262deab

[3] http://erichuiza.blogspot.com/2013/12/tridion-2013-sp1-synchronizing.html

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.