Problems facing while copying content tree documents

Naresh Ede asked on August 14, 2017 09:19

Hi I'm trying to copy the files in content tree to another folder but it is not working.

I didn't understand where i'm getting error.

Please see the screenshots and help me.

click here to see screenshots link text

Thanks

Recent Answers


Trevor Fayas answered on August 14, 2017 14:05

what version and hotfix of Kentico are you on? is the any other events related to this in the event log?

1 votesVote for this answer Mark as a Correct answer

Naresh Ede answered on August 16, 2017 09:24

Hi Trevor Fayas

I'm using kentico 8 and here is the event logged while copying content tree folder


EventID: 488039

EventType: E

EventTime: 8/16/2017 12:45:10 PM

Source: Content

EventCode: COPYDOC

UserID: 212

UserName: Naresh

IPAddress: 127.0.0.1

NodeID: 1575

EventDescription: Message: Object reference not set to an instance of an object.

Exception type: System.NullReferenceException Stack Trace: at CMS.Helpers.ScriptHelper.RegisterStartupScript(Page page, Type type, String key, String script, Boolean addScriptTags) at S2S.SystemModule.LinkedDocumentManager.DocumentInsertAfter(Object sender, DocumentEventArgs e) at CMS.Base.AbstractHandler.CallEventHandler[TArgs](EventHandler1 h, TArgs e) at CMS.Base.AbstractHandler.Raise[TArgs](String partName, List1 list, TArgs e, Boolean important) at CMS.Base.AdvancedHandler2.RaiseAfter(TArgs e) at CMS.Base.AdvancedHandler2.RaiseAfter(TArgs e) at CMS.Base.AdvancedHandler`2.Finish() at CMS.DocumentEngine.TreeNode.InsertInternal(TreeNode parent) at CMS.DocumentEngine.TreeNode.Insert(TreeNode parent, Boolean useDocumentHelper) at CMS.DocumentEngine.TreeProvider.CopyNode(CopyDocumentSettings settings) at CMS.DocumentEngine.DocumentHelper.CopyDocument(CopyDocumentSettings settings) at CMS.UIControls.ContentActionsControl.CopyNode(TreeNode node, TreeNode targetNode, Boolean childNodes, TreeProvider tree, Boolean copyPermissions, String newDocumentName) at CMSModules_Content_Controls_Dialogs_Properties_CopyMoveLinkProperties.Copy(Object parameter) in d:Demo\FreeCare\CMS\CMSModules\Content\Controls\Dialogs\Properties\CopyMoveLinkProperties.ascx.cs:line 690


Please help me with that.

0 votesVote for this answer Mark as a Correct answer

Trevor Fayas answered on August 16, 2017 16:25

Doubt it but do you have any custom Global Event hooks? What Hotfix of version 8 are you on?

Is the Robots.txt file you are trying to copy from one place to the other allowed to be placed there (is it's page type allowed to be placed below the page type you are moving it?)

Can you move the file elsewhere, is it just that location that's messing up? Can you copy other files elsewhere? Trying to figure out if it's something to do with that specific tree node, or a general problem.

0 votesVote for this answer Mark as a Correct answer

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