Tag Info

New answers tagged


I used SPItemEventProperties.AfterProperties instead of inner SPListItem and it worked fine. Thanks for reply. I'l try to set Synchronous and check if it help.


You can use a calculated column to achieve this. Create a calculated column and set return type as number. Then, simply change the calculated column formula from C#.


The executionTimeout in web.config specifies the maximum number of seconds that a request is allowed to execute before being automatically shut down by ASP.NET. Try setting it to at least 2000 seconds for your 2000 Items. <httpRuntime maxRequestLength="51200" requestValidationMode="2.0" executionTimeout="2000" />


Based on your sample email, you are missing the "SSL" portion within your input. When you are splitting the entries into arr you are only getting back 8 items rather than 9. Attempting to access arr[8] when it doesn't exist will cause Object reference not set to an instance of an object. You should add some validation regarding length on the split lines. ...


As you are hitting the server to frequently to Add items, SharePoint sometimes do stop the execution in between. I faced the similar issue when i was deleting items from the list. Your code is fine, I would suggest you to add a few moments of delay after adding like 50/100 items. Its even better if you can do an asynchronous loop but it will require you to ...


Rupesh, You need to use ProcessBatchData for your scenario if you can use server side code. If you want to use only CSOM the below code works just fine. I have tested it already $(document).ready(function() { ExecuteOrDelayUntilScriptLoaded(abc, "sp.js"); }); function abc() { context = new ...

Top 50 recent answers are included