I had some custom commands invoking sql procedures working well for a while. I must have made some careless edit because now every invocation throws "Object reference not set to an instance of an object." in "KnowBetter.XModPro.Web.Controls.Template.BindData(String CommandName, List`1 lstParams, CommandTypeEnum ViewType) "
The command seems to be correctly defined, and is invoked with the correct parameters which are present in the result set.
Custom Command Definition:
<DataCommand CommandName="ChaseCart" CommandText="exec DNN_WWEC_Cart_ChaseCheckout @portalid, @userid">
<Parameter Name="portalid" />
<Parameter Name="userid" />
</DataCommand>
Invocation from within an xmod:commandbutton:
<Command Name="ChaseCart" Type="Custom">
<Parameter name="portalid" value='[[PortalId]]'/>
<Parameter Name="userid" Value='[[UserId]]' />
</Command>
Any tips would be greatly appreciated!