V
Vybez
Hi,
I keep getting the error: CustomFieldInvalidUID
when I execute the code below. What could be wrong?
It's on Project Server 2007.
custField = resourceDataSet.ResourceCustomFields.NewResourceCustomFieldsRow();
custField.CUSTOM_FIELD_UID = Guid.NewGuid();
custField.CODE_VALUE = cv_UID;
custField.MD_PROP_UID = lookupTable_UID
custField.RES_UID = resourceGuid;
resourceDataSet.ResourceCustomFields.AddResourceCustomFieldsRow(custField);
resource.UpdateResources(resourceDataSet, false, false);
I keep getting the error: CustomFieldInvalidUID
when I execute the code below. What could be wrong?
It's on Project Server 2007.
custField = resourceDataSet.ResourceCustomFields.NewResourceCustomFieldsRow();
custField.CUSTOM_FIELD_UID = Guid.NewGuid();
custField.CODE_VALUE = cv_UID;
custField.MD_PROP_UID = lookupTable_UID
custField.RES_UID = resourceGuid;
resourceDataSet.ResourceCustomFields.AddResourceCustomFieldsRow(custField);
resource.UpdateResources(resourceDataSet, false, false);