I was calling a subroutine which adds data to the database and it is giving this error Database error. OpenClient message: LAYER = (1) ORIGIN = (1) SEVERITY = (1) NUMBER = (155) Message String: ct_send(): user api layer: external error: This routine cannot be called when the command structure is idle.