'Basic Demographic Information' data type has been versioned by HealthVault RRS feed

  • Question

  • I'm getting the following exception when calling Microsoft.Health.HealthRecordAccessor.UpdateItem(HealthRecordItem item) with a Gender value:

    The 'Basic Demographic Information' data type has been versioned by HealthVault. The application cannot save the data because the existing instance of this data uses version 2 of the 'Basic Demographic Information' data type whereas the application uses version 1

    Any idea why? It looks like the Basic Demographic Information data type changed in a way that is not backward compatible.


    CTO, Limeade, Inc.

    Monday, November 22, 2010 11:00 PM


  • When types are updated in HealthVault, we support a down-version conversion of the data so that applications authorized to the old version of the type see that version, but that conversion generally involves data loss and therefore we don't allow applications to update the down-versioned instances.

    We've been discussing some ways to relax this restriction but haven't found one that we think is practical yet.

    For now, the best approach is to upgrade to use the BasicV2 type.

    Hope that helps.


    • Marked as answer by Aneesh D Wednesday, January 12, 2011 2:52 AM
    Tuesday, November 23, 2010 5:28 PM