Skip to main content

All,

 

I'm having an issue when trying to copy a document from one document set to another document set (different library, same site) in SharePoint 2013. I have a custom content type that I'm using for the document set metadata in both the source and destination libraries. The "copy document by ID" method works perfectly when my destination library DOES NOT include the custom content type. The second I add the content type, it gives me "Object reference not set to an instance of an object". The strange thing is that it will move the document seemly perfectly, but it throws this error which will stop further processing of the workflow. Any idea?

 

11781i71185B32978C906C.png

 

After checking the host server logs if found this:

11877933","2016-02-01 14:46:59","Error","General","0","SharePoint Broker Exception","CopyDocument","0 Object reference not set to an instance of an object.","anonymous","0.0.0.0","XXXXXXXXXXXXX:C:Program Files (x86)K2 blackpearlHost ServerBin","11877933","c1aaf581826549b2bb3200c22c5ff51c",""
"11877935","2016-02-01 14:46:59","Error","SmartObjects","10702","Error","SourceCode.SmartObjects.ServiceBroker eExecuteSmartObject]","10702 An error occurred in the sp2013poc Service Instance. Object reference not set to an instance of an object.","anonymous","0.0.0.0","XXXXXXXXXXXXX:C:Program Files (x86)K2 blackpearlHost ServerBin","11877935","e2db86b960ad43ce8549ff11c907fcc9",""

Hi mwiggs2017

 

Not sure if this is the issue, but after you add the content type to the destination library, are you regenerating the smartobject? If not then give this a go - click in the K2 Application icon on the library toolbar and see if it reports that the smartobject and library are out of sync. If so then regenerate the smartobject by clicking the link.

 


Andrew,

 

Thanks for the reply. The SmartObjects being out of sync was the first thing I looked at. Just to make sure that the Smart Object was in sync, I deleted a column that I didn't really need and regenerated the SmartObject. I tried running the "Copy Document by ID" in the Smart Object Tester and it gave me the same error. The document copies over perfectly, it's just this pesky "Object reference not set to an instance of an object" error that is preventing further processing of the workflow.

 

Thanks for the suggestion. Any other thoughts?


I suggest you raise a ticket with K2 support


Reply