In order to adjudicate a claim, a court must have subject matter jurisdiction, personal jurisdiction, and venue. If subject matter jurisdiction is not present, the only remedy is dismissal of the case because the court lacks the authority to hear the case.
With regard to personal jurisdiction and venue, however, there is also the possibility of a transfer of the case to a more appropriate forum. This is especially true in the federal courts.
Recently, a corporation with deep ties to Massachusetts challenged the jurisdiction and venue of a lawsuit filed against it in a New York federal court.