How to fix: 'DMG_TermsSelected' expects parameter '@SOBehavior', which was not supplied.

Some versions of SL have a bug in the business objects that will throw this error when placing an order via CTAPI

The workaround for this error is altering the stored procedure DMG_TermsSelected and adding a blank string default value on the @SOBehavior variable.

@SOBehavior    varchar(4),
@SOBehavior    varchar(4) = '',