I am working in Tridion event code 2011. I am trying to save the component by the below code, it is getting checkedout but not getting save
try
{
component.Save(true);
}
catch(TridionComException ex)
{
EventHelper.WriteEventToHTMLLog("Tridion : Error -" + (!string.IsNullOrEmpty(ex.Message) ? ex.Message : "Null") + "-->StackTrace: " + (!string.IsNullOrEmpty(ex.StackTrace) ? ex.StackTrace : "Null"));
}
Also , the exception is not caught in the main Exception class. I assume there is some problem in the component save. I updated the content of the component and i checked by below
component.Content.OuterXml
What can be the issue?
Initialized
phase of the event, and make your changes - no need to save them, Tridion will save your changes on the next phase of the Event.component.Save()
and how you obtained a reference tocomponent
you will only get guesses at an answer. Please edit your question and update it with more information, the fact that aTridionComException
is not thrown means nothing here.