EREP_TXN_NOTXNACTIVE (0x1041)

You have attempted to update the Repository database, but there is no transaction active. Bracket your Repository updates between Begin and Commit transaction method invocations.