COU-321 - DataTypes using string PreValues like dropdownlists doesn't transfer correctly

Created by Morten Christensen 09 May 2016, 08:00:11 Updated by Morten Christensen 02 Jun 2016, 08:30:12

DataTypes with string PreValues doesn't transfer correctly because the integer id is included in the courier xml. That integer id is very likely not the same between two environments, so this should be resolved differently. Ideally we should include the PreValue value in the xml so we can use that to compare when setting the value in the Destination. The DataType PreValues doesn't have any unique ids, so we'll have to resolve it in a creative manor.


Claus Jensen 10 May 2016, 12:18:59


If using in an existing Courier setup, make sure to update your courier.config file with this section:

      <!-- Property editors storing pre-values as key/value pairs -->
      <add key="DropDownMultiple">Umbraco.DropDownMultiple</add>
      <add key="DropdownlistMultiplePublishKeys">Umbraco.DropdownlistMultiplePublishKeys</add>
      <add key="RadioButtonList">Umbraco.RadioButtonList</add>
      <add key="DropDown">Umbraco.DropDown</add>
      <add key="DropdownlistPublishingKeys">Umbraco.DropdownlistPublishingKeys</add>
      <add key="CheckBoxList">Umbraco.CheckBoxList</add>
  • Create datatypes for all the editors listed above on site1 with a few prevalues on each
  • Create a dataype on site2 with one of the above editors and 5 random prevalues (just to offset the prevalue IDs of the two sites)
  • Create a document type on site1 using the datatypes created
  • Create and save a document with some selected prevalues
  • Transfer the document from site1 to site2 and ensure all the prevalues are transferred correctly
  • Change all of the selected prevalues on the document and ensure they still transfer correctly


Morten Christensen 12 May 2016, 12:42:51

This has been tested on a real Project and transferring the dropdown values now works as expected :)

Priority: Normal

Type: Bug

State: Fixed




Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version: 2.52.5

Sprint: Sprint 33

Story Points: 4