"Exception has been thrown by the target of an invocation" error?

"Exception has been thrown by the target of an invocation" error?

The problem is the policy ids for dashboards in the secured item table being null. To fix this insert a 0 into the Policy Root Column and 2 into the Policy Id.