New Order Line From Quote Error

I am trying to move a quote line to a sales order with a button press and running into a error reading “failed to enable constraints”. My understanding was that it would just give it the next OrderLine avalible but it seems to be passing in 0.

This is how I’m calling the method.

SoAdapt.OrderDtlGetNewFromQuote(Convert.ToInt32(sOrder));