Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8279825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:27:16+00:00 2026-06-08T09:27:16+00:00

I am trying to create a sharepoint calendar event using client object model. I

  • 0

I am trying to create a sharepoint calendar event using client object model. I can create item and set column values all columns except “EndDate” column. When I try to set this column I get the following error Translation of message from German is “Invalid data is used while updating list entry. The field you want to update is possibly write protected.” If skip this column, list item created at Sharepoint server without enddate property, but it is not visible at calendar view. I can see item on “datasheetview” type of view, and if I set the enddate from here it is also visible at calendar view.(strange thing is it is mandatory field)

Server Exception Microsoft.SharePoint.Client.ServerException was unhandled.    Message=Es wurden ungültige Daten zur Aktualisierung des Listeneintrags verwendet. Das Feld, das Sie aktualisieren möchten, ist möglicherweise schreibgeschützt.   Source=Microsoft.SharePoint.Client.Runtime   ServerErrorCode=-2147024809   ServerErrorTypeName=System.ArgumentException   ServerStackTrace=""   StackTrace:  
       at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)  
    at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()  
       at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb)  
       at Microsoft.SharePoint.Client.ClientRequest.ExecuteQuery()  
       at Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQuery()  
       at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()  
       at Sp_Ctx.Program.Main(String[] args) in_Ctx\Program.cs:line 129   InnerException:   

my code is as follows

using (ClientContext ctx = ClaimClientContext.GetAuthenticatedContext(targetSite)){ if (ctx != null)   {  
ctx.Load(ctx.Web); // Query for Web  

    ctx.ExecuteQuery(); // Execute  
            Console.WriteLine(ctx.Web.Title);  
            List list = ctx.Web.Lists.GetByTitle("calendarListName");  
            ctx.Load(list.Fields);  
            ctx.ExecuteQuery();  
            var newItem = list.AddItem(listItemCreationInfo);  
            newItem.Update();           
            newItem["Title"] = "myCalendar"   ..... 
            newItem["EventDate"]= DateTime.Now;  
            newItem["EndDate"]= DateTime.Now.AddMinutes(30);  
            newItem["Location"]= "Office";  
            newItem.Update();  
            ctx.ExecuteQuery();

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T09:27:17+00:00Added an answer on June 8, 2026 at 9:27 am

    Answer was simple update the eventdate and the enddate together. Original solution is can be seen here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a SharePoint application that logs to ULS using a set
I am trying to create a form in Sharepoint using C#. I don't know
I'm trying create a bot which automatically likes Facebook posts. Using Mechanize I can
I'm trying to generate a new SharePoint list item directly using SQL server. What's
I'm new to Sharepoint. I'm trying to create a simple webpart using Visual Studio
I am trying to create Lists in Sharepoint site from my ASP.NET code using
I'm trying to create a C# program using a Sharepoint Web Service reference that
I'm trying to programatically create a SharePoint site from a custom template using ASPX
I am trying to get a user back in SharePoint Client OM using EnsureUser.
I'm trying to create a SharePoint web part that will display all the users

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.