An error occured while processing this request RRS feed

  • Question


    (using (ServiceContext svcContext = new ServiceContext(service))


    new_marketing_fund mf = new new_marketing_fund() { new_countryid = new EntityReference(new_country.EntityLogicalName, countryid), new_year = new OptionSetValue(month.new_year.Value) };


    when  run this svcContext.SaveChanges(); got this error


    Friday, November 14, 2014 7:10 AM

All replies

  • Hi,

        This error happens for few reasons:

    1) You have missed any required field for the entity. Please validate the schema of the entity.

    2) If any value is null. Please add some additional validations to make sure you cater for this.

    Hope this helps.
     Minal Dahiya
    blog : http://minaldahiya.blogspot.com.au/

    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

    Friday, November 14, 2014 10:03 AM