Why the inserted document isn’t accessible in the OnAfterInsert eventhandler?

Technical support leader

Juraj Ondrus asked on March 14, 2009 07:53

Why the inserted document isn’t accessible in the OnAfterInsert eventhandler?

Correct Answer

Juraj Ondrus answered on March 14, 2009 07:53

The inserted node is not available at that moment because the transaction on the SQL server is still running at the moment when the event fires.
You can try to ensure this in the following file which contains the code for creating new documents from the administration interface:
~\CMSDesk\Content\edit.aspx.cs

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.