none
error during project server 2013 The property or field 'StartDate' has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested. RRS feed

  • Question

  • Hi sir,

    when I have try to fetch the value of project start date and finish date and some other field value , I have recived error message like The property or field 'StartDate' has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.

    I have used client context for project server 2013.

    I have also load and execute query.but fail to resolve it Please suggest me and provide solution.


    vijay

    Thursday, September 11, 2014 6:11 AM

All replies

  • try placing this under Proj.add

      projContext.Load(projContext.Projects,
                           c => c.IncludeWithDefaultProperties(pr => pr.StartDate, pr => pr.FinishDate, pr => pr.PercentComplete, pr => pr.IncludeCustomFields));
                        projContext.ExecuteQuery();

    Wednesday, November 30, 2016 10:26 PM