Hosts Ireland lost their 100% record in the Champions Challenge after a 1-1 draw with Spain in Dublin.
However, they still finished top of pool B after Leicester's Emma Clarke equalised just minutes after they had gone behind in the second half.
Ireland now play the United States, who finished bottom of Pool A, in their quarter-final on Thursday.
Scotland finished second in that group after South Africa matched their result to take top spot.
The Scots went ahead against Japan through Grove Menzieshill's Nikki Kidd after 13 minutes but Shiho Otsuka equalised just before the interval.
In the 5-5 draw with the USA immediately afterwards South Africa's Pietee Coetzee broke the world goalscoring record as her four goals took her to 222 in 221 matches.
That draw means Scotland face Azerbaijan, third in Pool B, in their quarter-final.
© Press Association