A GPS snafu almost led a groom to marry the wrong woman in Indonesia.

On April 4, the groom, whose identity has not been disclosed, used Google Maps to get to his wedding venue in Magelang, a city in Central Java. However, the engaged man wound up at the wrong address, according to local outlet TribunNews.com.

Instead of the arriving at the venue where his wedding was supposed to take place, the groom and his entourage stopped at the house that was highlighted on the location app. Unbeknownst to the group, an engagement party was being hosted at the house for another couple couple, complete with loved ones and photographer present.

‘ROGUE MINISTER’ GOES OFF-SCRIPT AT WEDDING, VIRAL TIKTOK VIDEO SHOWS

The groom’s entourage reportedly shook hands with the family, exchanged offerings and took what they thought were their seats.

A GPS snafu almost led a groom to marry the wrong woman in Indonesia. (iStock)

It was not clear to the two groups that a mishap had occurred since the groom’s guests assumed the attendees who were already there were family members of the bride. Meanwhile, the woman’s family assumed the new arrivals were family members of the fiancé.

WEDDING CAKE DECORATOR SEEMINGLY MISHEARS REQUEST, CREATES HILARIOUS MESSAGE INSTEAD

The fiancé and his family were actually late for the event, which didn’t help either, according to bride-to-be Ulfa. She told TribunNews.com that she had been getting her makeup done at the time of her lost groom’s arrival.

When the mistake was finally discovered, the groom and his wedding party promptly exited the home with their offerings in tow.

“[The groom] said that the share location point stopped near my house,” Ulfa, 27, told the Indonesian news outlet. “Sometimes the internet can shift if it is not smooth.”

WEDDING VIDEO OF ‘FLOWER MAN’ WALKING DOWN THE AISLE WINS REDDIT’S HEART

Photos and videos of their hilarious exit were shared on Twitter and Instagram.

One clip posted by the Borobudur News Instagram account has gone viral with more than 35,475 views so far.

CLICK HERE TO GET THE FOX NEWS APP

“It’s a shame,” an Instagram commenter wrote in Javanese alongside a laughing emoji.

“There may have to be a pick-up team,” another user joked.

CLICK HERE TO SIGN UP FOR OUR LIFESTYLE NEWSLETTER

As for the groom and his family, Tribun reports they quickly left to find their correct wedding venue, which was being hosted in another part of the Losari Village.