This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice This article is not considered official documentation for K2 software and is provided "as is" with no warranties.
When deploying a solution to a destination source, it will fail on the last step with the error:
"Post-deployment error: Object reference not set to an instance of an object."
This prevents the solution from being implemented
and also delays possible further development.
Please validate if the SharePoint 2013 Category has the correct name structure as the Package and deployment is dependant on this name during Deployment.
The script below can be executed to identify whether the Category Name is correct or not. If this is a K2 Cloud tenant you will need to raise this with K2 Support.
SELECT * FROM [Category].[Category] where Name like '%2013%'
If the above result displays with an underscore or a different character, Database modification will be needed. Please contact K2 Support.
Do not modify any database definition or database content unless specifically instructed to do so by K2. No changes to the K2 Database definition or content are supported unless specifically instructed by K2. Please see: http://help.k2.com/onlinehelp/k2blackpearl/devref/current/default.htm#Database_Reference.html