Unable to get Blank Custom field Value RRS feed

  • Question

  • Hi,

    I am having Task level custom field (Text Type). I am using below PSI code to get that custom field.

    foreach (ProjectDataSet.TaskCustomFieldsRow customTaskRow in myProject.TaskCustomFields)


    if (customTaskRow.MD_PROP_UID == XXXX && r.TASK_UID == customTaskRow.TASK_UID)


    XXXX - Guid of my Custom 

    Now, I am trying to update this custom field value using PSI, however if this custom field is blank (Custom field is already there for task, but value is blank) then I am not able to get this custom field using above loop, however if this custom field is having some value then only I am able to get it.

    Due to this case, whenever I am trying to update custom field,  my code is trying to create new one, though it is present at task level, as a result I am getting Custom Field Already Exist Exception.

    Any solution or guide on this.

    Wednesday, April 12, 2017 6:28 AM