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?
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",""