There are no errors or anything. If I do SaveAndPublishWithStatus the result type is Success. But when I look at the content in the CMS none of the values have changed. In particular I am hard coding the property "snippet" to become "TEST" and that never updates.
I have checked and the values do update in the object upon save, but in the database they're not updated. The audit trail doesn't show any changes. I checked that the property aliases are correct.
Edit: Please note this is just on a regular ASPX page I created in visual studio. Also the way I'm accessing ContentService is:
Dim contentService As IContentService = ApplicationContext.Current.Services.ContentService
Can you try with just one property snippet :). See if that works? I am assuming that one of the property is in the wrong format and everything is failing.
contentService.Save() not updating content
I am using the content service to update some migrated articles.
Is how I am getting the article, ektronID is a page in the old CMS.
I am updating this way:
There are no errors or anything. If I do SaveAndPublishWithStatus the result type is Success. But when I look at the content in the CMS none of the values have changed. In particular I am hard coding the property "snippet" to become "TEST" and that never updates.
Hi Brad,
Are you able to debug?
When you get to the contentService.Save method. Inspect the articleUmb object. In the properties are the correct values set?
Have you checked the alias of the properties are correct?
That looks good to me :)
I have checked and the values do update in the object upon save, but in the database they're not updated. The audit trail doesn't show any changes. I checked that the property aliases are correct.
Edit: Please note this is just on a regular ASPX page I created in visual studio. Also the way I'm accessing ContentService is:
Dim contentService As IContentService = ApplicationContext.Current.Services.ContentService
That all seems fine to me. If the object is updating then it must be doing what it is supposed to hmmm
Can you try with just one property snippet :). See if that works? I am assuming that one of the property is in the wrong format and everything is failing.
My money would be on the tags bit, especially if you're using the Umbraco tagging control.
is working on a reply...