Tex. Bus. Orgs. Code § 9.051
(a) On application by the attorney general, a court may enjoin a foreign filing entity or the entity's agent from transacting business in this state if:
(b) A foreign filing entity or the entity's legal representative may not maintain an action, suit, or proceeding in a court of this state, brought either directly by the entity or in the form of a derivative action in the entity's name, on a cause of action that arises out of the transaction of business in this state unless the foreign filing entity is registered in accordance with this chapter. This subsection does not affect the rights of an assignee of the foreign filing entity as:
(c) The failure of a foreign filing entity to register does not:
Acts 2003, 78th Leg., ch. 182, Sec. 1, eff. Jan. 1, 2006.