none
Error CustomFieldRequiredValueNotProvided while updating Project RRS feed

  • Question

  • Hi,

    I'm getting this error CustomFieldRequiredValueNotProvided in the following code. There no required field what am i missing here. Please note I need to add CF to an already created project.

     

    SvcProject.ProjectDataSet projectDS = new SvcProject.ProjectDataSet();
                                    SvcProject.ProjectDataSet.ProjectCustomFieldsRow cfRow = projectDS.ProjectCustomFields.NewProjectCustomFieldsRow();

                                    cfRow.CUSTOM_FIELD_UID = Guid.NewGuid();
                                    cfRow.PROJ_UID = tempProjDs.Project[0].PROJ_UID; // UID of already created project
                                    cfRow.MD_PROP_UID = fromProjCFV.ProjectCustomFields[i].MD_PROP_UID;
                                    cfRow.MD_PROP_ID = fromProjCFV.ProjectCustomFields[i].MD_PROP_ID;
                                    cfRow.FIELD_TYPE_ENUM = fromProjCFV.ProjectCustomFields[i].FIELD_TYPE_ENUM;

                                   projectDS.ProjectCustomFields.AddProjectCustomFieldsRow(cfRow);


                                    jobId = Guid.NewGuid();

    //Error at this point
                                    EPMHelper.projectClient.QueueUpdateProject(jobId, sessionId, projectDS, false);

    Update:

    //After adding this it worked but it's weired. Its not a required field for the MD_PROP_UID which was givving error! :S

                                    cfRow.TEXT_VALUE="test";

    Thanks,

    Kashif


    • Edited by Kashif Nizam Wednesday, December 14, 2011 7:16 PM
    Wednesday, December 14, 2011 6:45 PM

Answers

  • Anyway it worked will get back if i found what was actually happening.

    Thanks,

    K

    • Marked as answer by Kashif Nizam Wednesday, December 14, 2011 8:00 PM
    Wednesday, December 14, 2011 8:00 PM