I am having a problem Content Porting items between our SDL Tridion 2011 SP1 Development and (brand new and empty) Test environments and would like some clarification of functionality provided by Content Porter (2009 SP1) please...
I am doing an port of some 'Image' Multimedia Components. However, these Image Components were created before the Schema was changed (in the Development environment) to remove a couple of fields ('height' and 'width').
These Components, along with the Schema, exported correctly with no errors. However, when I am doing the import I am getting an error saying that the fields are missing from the Schema. (Please see the error details below.)
I have tried checking the "Synchronize content against Schema before importing" option on the import settings, but despite the documentation saying "If the item has fields that are not present in the Schema, Content Porter removes them", I am still getting the same error. Does this not work with Metadata fields or Multimedia Components, or am I missing something?
Thanks, Jonathan
ERROR DETAILS: [Error]
XML validation error. Reason: The element 'Metadata' in namespace 'uuid:0c8ff632-92a3-44f5-9253-a1a961155540' has invalid child element 'height' in namespace 'uuid:0c8ff632-92a3-44f5-9253-a1a961155540'. List of possible elements expected: 'alt_text' in namespace 'uuid:0c8ff632-92a3-44f5-9253-a1a961155540'..The element 'Metadata' in namespace 'uuid:0c8ff632-92a3-44f5-9253-a1a961155540' has invalid child element 'height' in namespace 'uuid:0c8ff632-92a3-44f5-9253-a1a961155540'. List of possible elements expected: 'alt_text' in namespace 'uuid:0c8ff632-92a3-44f5-9253-a1a961155540'
It looks like your best option is to ensure your Components are valid against their Schema before doing the export. So either:
Someone more familiar with may chime in on the actual cause, but until then these seem your quickest way forward.