Scotland Under-21s suffered a 3-2 defeat in injury-time in Austria as their European qualifying hopes ended with their first defeat of the campaign.
Johnny Russell had put Scotland ahead in the 74th minute after Tony Watt cancelled out an early opener but Billy Stark's side could only hold on to their lead for 90 seconds.
And Raphael Holzhauser scored on the counter-attack as Scotland threw men forward in a bid to secure a last-gasp winner at the Cashback Arena in Altach.
Scotland had gone into the game assured of second place behind Group 10 winners Holland but only the four best runners-up join the top teams in the play-offs for next summer's finals in Israel and they had to throw caution to the wind in the final stages as a draw would not have been enough.
Austria's hopes had ended with defeat by Holland on Friday but they started on the front foot and Michael Gregoritsch headed into the roof of the net in the eighth minute after getting in front of Ryan Jack to meet an inswinging cross from the right.
Scotland struggled to mount any attacks in the opening quarter and Andreas Weimann had a sight of goal when Gregoritsch headed on a diagonal ball but the Aston Villa forward hit the side-netting.
Stefan Schwab headed wide following a corner just after the break but Scotland began to push back their opponents and were level in the 54th minute. Russell leapt brilliantly to head on Danny Wilson's long free-kick and Watt reacted quickly to head over the onrushing goalkeeper.
Scotland survived a spell of pressure and stunned the hosts in the 74th minute when Watt got round the outside of his man on the left and drove the ball into the goalmouth. The Austrian goalkeeper fumbled and Russell bundled the ball over the line.
But just like their 2-2 draw in Bulgaria in May, Scotland lost an instant equaliser. Ross Perry failed to deal with a cross from the left and the ball spun off his knee and fell for Weimann, who dived to head home from six yards and Scotland's hopes evaporated just after the 90 minutes were up.
Substitute Gregg Wylde lost the ball on the left wing and Austria broke quickly to set up a two-against-two before Holzhauser ran into the box and fired across Jordan Archer and into the far corner.