Symptoms
I am trying to deploy from dev to test. When I do so, as the deployment runs, everything goes green until the post deployment step when many of the items turn red with a message 'One or more items was not found'.
In the server log I am seeing
"191520887","2015-11-11 10:50:38","Error","FormsManagementServer","22006","SqlError","SourceCode.Forms.Runtime.ManagementServer.CheckInContextsAx(bytet] contextData)","22006 An database error has occurred : NotFound,V,CA5E9EFA-029A-4124-AD82-907B5936EF05,,","","","SRver:Program Files (x86)K2 blackpearlHost ServerBin","191520887","dec4e53b2022403698fbd92ba33984ec",""
"191520888","2015-11-11 10:50:38","Error","System","2025","InternalMarshalError","SourceCode.Hosting.Server.Runtime.HostServerBroker.InternalMarshal","2025 Error Marshalling SourceCode.Forms.Runtime.ManagementServer.CheckInContextsAx, One or more items was not found","","","SRver:Program Files (x86)K2 blackpearlHost ServerBin","191520888","c879bc0fa16846bba9ba0f49f21484cb",""
"191520889","2015-11-11 10:50:38","Error","System","2025","InternalMarshalError","SourceCode.Hosting.Server.Services.ServerMarshalState.InternalMarshal","2025 Error Marshalling SourceCode.Forms.Runtime.ManagementServer.CheckInContextsAx, One or more items was not found","system","::1","SRver:Program Files (x86)K2 blackpearlHost ServerBin","191520889","620ca4863824478d844b0ac7c3302009",""
"191520890","2015-11-11 10:50:38","Error","Unknown","8060","ProcessPacketError","SourceCode.Hosting.Server.Services.ServerMarshalState.ProcessMessage","8060 ProcessPacket Error, One or more items was not found","system","::1","SRverProgram Files (x86)K2 blackpearlHost ServerBin","191520890","e072000863214c6ebf69f61c8d12f9c8",""
"191520891","2015-11-11 10:50:38","Debug","System","1035","InternalSessionMarshal","SourceCode.Hosting.Server.Runtime.HostServerBroker.InternalMarshal","1035 Session Marshal 4F8E5FFC24DCFBDF551B48DC413B94DA.SourceCode.Forms.Runtime.ManagementServer.UndoFormsCheckOut for user USER","system","::1","SRverProgram Files (x86)K2 blackpearlHost ServerBin","191520891","7c59cf566d4148c789ff2b6288b73e05",""
"191520892","2015-11-11 10:50:38","Info","FormsManagementServer","22402","UndoFormsCheckOut","SourceCode.Forms.Runtime.ManagementServer.UndoFormsCheckOut(Guidi] guids)","22402 Undoing check out of 5 Forms for user USER","anonymous","0.0.0.0","SRverProgram Files (x86)K2 blackpearlHost ServerBin","191520892","ac67f1d1a61a490fbd12a38030c31854",""
Diagnoses
Using the GUID above (CA5E9EFA-029A-4124-AD82-907B5936EF05) and the we searched in Forms.View to determine the view in question.
We opened the view in the analysis stage and could see that the GUID was different, but the name and System name was the same.
I suspect that the view was copied, original deleted and new version renamed to the old name.
Resolution
Changing name in Deployment allowed for package to be deployed.