pivot on error