750 reputation
1741
bio website geirsmestad.com
location Norway
age 27
visits member for 3 years, 4 months
seen Aug 17 at 15:19

May
11
comment How do I change the Title column of a list programmatically?
I am trying to change the display name. As I said above, the property has a different name in the Norwegian site template, so your code causes a runtime exception: i.imgur.com/jEguA.png. I was also under the impression that changing the InternalName or StaticName of the Title field was bad practice. Would it resolve my problem? Although come to think of it, SharePoint still indicates that the internal name of the field is "Title". So I don't see WHY your code should fail. [Exception translation: Cannot find field with name "Title"]
May
10
revised How do I change the Title column of a list programmatically?
Added code to emphasize that I also update the list
May
10
comment How do I change the Title column of a list programmatically?
Yes, I am calling Update on the list immediately afterwards. I'll update the question to emphasize this.
May
10
comment How do I change the Title column of a list programmatically?
Note that attempting to change the value with 'Fields["Title"]' results in a runtime error.
May
10
asked How do I change the Title column of a list programmatically?
May
9
answered Feature activation suceeds in sandboxed server environment, but fails in SharePoint Online. How do I find what's wrong?
May
9
comment Feature activation suceeds in sandboxed server environment, but fails in SharePoint Online. How do I find what's wrong?
Okay, turns out the error in my last comment was caused by an unrelated error. I've done some more testing, and the code seems to fail pretty randomly - if I comment out broad sections of code, it sometimes works and sometimes it doesn't. I've increased the resource quota of the site collection to the maximum, but this doesn't seem to improve things. Is there anything else that can cause this error message in SharePoint Online but not in a sandboxed server version?
May
9
comment Feature activation suceeds in sandboxed server environment, but fails in SharePoint Online. How do I find what's wrong?
Changing the Solution ID does not resolve the problem. But you might be onto something - it seems like my solution suddenly gets rejected by the Sandboxed Code Service if it involves any code at all. With an empty FeatureActivated method it deploys, but if it contains "using (SPSite aSite = new SPSite("targetSiteCollection"))", it fails. This didn't happen before.
May
9
asked Feature activation suceeds in sandboxed server environment, but fails in SharePoint Online. How do I find what's wrong?
May
2
accepted Why does the Timer Service stop due to incorrect login?
Apr
26
accepted What is a good approach for generating serial numbers in SharePoint Online?
Apr
25
answered Learn Sharepoint w/o having experience
Apr
25
comment What is a good approach for generating serial numbers in SharePoint Online?
And to think I've been working with SharePoint for a year and didn't remember this feature... The ID column might be the right choice, although it is specific to each list and hence can't be used site-globally. Might use a calculated column based on ID. Thanks.
Apr
25
asked What is a good approach for generating serial numbers in SharePoint Online?
Apr
24
answered Why does the Timer Service stop due to incorrect login?
Apr
24
asked Why does the Timer Service stop due to incorrect login?
Apr
23
awarded  Popular Question
Apr
23
awarded  Nice Question
Apr
16
asked How do I move the contents (and mappings) of the Managed Metadata Service Application from dev to test environment?
Apr
13
accepted Is there a way to gracefully fail when a custom tag is missing?