locked
How to update Project custom field value with lookup table value RRS feed

  • Question

  • I have troubles with updating Project custom field value with lookup table value using PSI.

    I am able to read custom field value from CustomField.CODE_VALUE but when I change it to another valid value (I read GUID of desired value from lookup table) I am getting an error:

    CustomFieldRowDoesNotMatchCorrespondingDefinitionInDB

    I do not understand what corresponding Definition in meant here. I just picked up corect STRUCT_UID from Lookup table dataset I got from PSI. Old CustomField.CODE_VALUE is also in Lookup table. If I replace it with new value and use Proj.QueueUpdateProject(...) I get mentioned error.

    Thanks in advance for any hint.

     

    Monday, January 17, 2011 2:06 PM

Answers

  • The ProjectCustomFieldsRow object needs to have the correct FIELD_TYPE_ENUM property, as well as the PROJ_UID and the MD_PROP_UID value for the lookup table GUID. The CODE_VALUE just specifies the GUID for the lookup table member value.

    --Jim


    Jim Corbin [MSFT]
    Tuesday, January 18, 2011 5:47 PM