Symptoms
Issue:
When overwriting a non-K2 site collection on top of a K2 one with some artefacts, crated from the K24SP app in 4.6.10, some SMO's are throwing and error on execution complaining about missing lists.
Diagnoses
Steps to reproduce:
1. Create a list and a library on your K24SP site collection. Appify them and create a simple workflow that sends an email when an item is added.
2. Go to a no-K2 machine with SP2013 and create a site collection.
3. Create a list and a library with the same names.
4. Back it up in central admin or PowerShell.
5. Restore it via PowerShell using a script similar to this:
Restore-SPSite -Identity https://portal.denallix.com/ -Path C:DemoBackup.bak -Force -DatabaseServer DLX -DatabaseName WSS_Portal
6. Try to execute that were created before the restore.
Resolution
Workaround:
Redeploying the app and regenerating the SMO's.
PLEASE NOTE:
It is advisable to test this in a Dev/QA environment before implementing. Restoring one site collection on top of another is overwriting relevant artefacts and testing is highly recommended before doing so.
We do provide consulting services that can assist with such projects. Please, do let us know if you would like to contact them.