The results of the caucuses in Iowa were marred by the use of a technology platform that may have been based on code from an external contractor.

At least some of the results from the Iowa caucuses were botched because the voter data they were fed used software that was not vetted by the Iowa caucuses system, sources have told Politico.

The Iowa Republican Party's internal metrics showed Donald Trump with the biggest win, while the final results posted by the state's Democratic party showed Bernie Sanders' victory over Hillary Clinton, despite Iowa's first-in-the-nation caucuses being won by Clinton.

That breach of data control set off alarm bells inside the Iowa Republican Party because it raises serious questions about the propriety of the use of technology to help make election decisions, Politico reported.

The Iowa GOP has not responded to requests for comment.

After a series of political mishaps, the party got rid of the long-troubled software, which some officials blamed on a young staffer on the RNC platform team.

The software, called Excelon, was built by Bytecode, a firm started by Democratic operatives and co-founded by Clinton campaign veterans. The problems were first noticed by John Burton, a Democratic power broker in Iowa.

Political consultant Jim Dyke told Politico that he never would have used the software if he had known of its past shortcomings.

“I think there were some politics involved, too,” he said. “It just doesn’t feel right. And if I had done it, I would have kept it a secret.”