KANSAS CITY, Mo. — Moments after making a plea for people to get out and vote in the Missouri primary Tuesday, Kansas City Mayor Quinton Lucas was turned away from the polls and told he “wasn’t in the system,” the mayor said on Twitter.

“I made a video this morning about the importance of voting and then got turned away because I wasn’t in the system even though I’ve voted there for 11 years, including for myself four times!” Lucas said.

Lucas tried to cast his vote before 7 a.m. at Mount Pleasant Baptist Church at 22nd and Olive streets, where he said he has voted since 2009.

Missouri Democrats were headed to the polls Tuesday to choose a nominee for president. More than twenty names were listed on the ballots, but the chief contenders were expected to be former Vice President Joe Biden and Vermont Sen. Bernie Sanders.

When Lucas tried to vote, a poll worker searched his name using a utility bill he brought but came up empty as if Lucas wasn’t registered.

After waiting a few minutes, Lucas showed his Kansas City Board of Police Commissioners’ ID. But he was told that they still were not finding him.

About 10 minutes later, poll workers offered a provisional ballot to the mayor, who refused, saying he wanted to make sure his vote was registered so that if anyone checked his record it would show he voted.

“If the mayor can get turned away, that would mean anybody can … so it’s something we all need to try to address,” Lucas said.

Lucas said he planned to return to his polling location later Tuesday to try again, but that the experience was frustrating.

“A lot of people won’t come back either because they have to go to work or because it has the opportunity to be a slightly embarrassing experience,” Lucas said.

Lauri Ealom, the Democratic director of the Kansas City Board of Elections, said the poll worker entered Lucas’ first and last names in the wrong order.

“He put his last name in as his first name and his first name in as his last name,” she said. Ealom said no one else had been turned away from Lucas’ polling place and that voting was running smoothly early Tuesday morning. “That’s the only issue that we’ve had this morning,” Ealom said.