What happens when the statute of limitations on a debt expires while the creditor is in the process of obtaining a judgment?

If the lawsuit was filed before the expiration of the state's SOL then the suit is valid and a judgment award would be valid and could be executed against the debtor according to the laws of the debtor's state.