The race to fill the seat left vacant by Rep. Joe Kennedy III in Massachusetts' Fourth Congressional District remained too close to call on Wednesday.
The top two in the crowd of candidates -- Jake Auchincloss and Jesse Mermell -- were separated by just 1% of the vote. Auchincloss was leading by about 1,500 votes with 96% of the precincts reporting, according to the Associated Press.
Get top local stories in Boston delivered to you every morning. Sign up for NBC Boston's News Headlines newsletter.
With her campaign running neck and neck with Auchincloss, Mermell on Wednesday asked city and town clerks in the Fourth Congressional District to publicly share the status of their ballot counts, including outstanding mail-in and provisional ballots that have yet to be tallied.
Mermell's campaign manager Katie Prisco-Buxbaum wrote a letter to city and town clerks asking their offices to publicly share data that will disclose current results, ballots left to be counted, the number of late ballots that were pulled from drop boxes after 8 p.m. last night and not counted or still arriving in the mail, and provisional ballots cast in each community.
"We are asking that publicly reported data be more robust to ensure the unique manner of voting is also reflected in a unique reporting which ensures the campaigns, the media and the public are confident in the results before any decision is made on further counting requests," Prisco-Buxbaum wrote.
Secretary of State William Galvin on Wednesday afternoon told communities in the district to seal ballots that had yet to be counted to make sure count is "transparent and accurate." He is asking a court to authorize local election officials to continue counting ballots that were received on time and had not yet been tallied as of 8 p.m. Tuesday.
"On Election Day, there are strict procedures in place to make sure that ballots are counted in public view, where anyone may observe the process. It is important that we preserve that same level of transparency for ballots counted after Election Day," Galvin said in a statement.
Because of the high volume of mail-in ballots and last-minute arrival of many ballots, several election officials told Galvin's office that they did not complete their final counts.
"We are pleased to see the actions being taken by the clerks and Secretary of State Galvin to secure and count all the votes in this race. This is exactly in line with the concerns our campaign raised earlier today," Mermell said.
"Every vote in the Massachusetts Fourth received before 8 p.m. last night must be counted," Auchincloss said in a statement.
Late Wednesday, at the Galvin's request, the courts ruled in favor of counting uncounted ballots in the race.
"We believe Mr. Auchincloss, at this point, has a lead of about 1,789 votes," Galvin said.
The ballots were received on time, but still haven't been tallied.
"They wanted to count them today, but that would not be in public view, and we were uncomfortable with that," Galvin said.
Franklin has about 600 uncounted ballots, Newton about 750, and Wellesley about 100.
Seven Democratic candidates sought to replace Kennedy, who opted not to seek reelection and instead challenge Sen. Ed Markey in the U.S. Senate primary. Markey defeated Kennedy, setting the stage for another possible six-year term and marking the first time a Kennedy has lost a race for Congress in Massachusetts.
Neither Auchincloss, a Newton City Councilor, nor Mermell, a progressive former business group leader, spoke Tuesday night. Instead, they both issued statements urging that all the votes be counted.
“While we always expected a competitive race, we are confident that our full-district campaign will be victorious when the results are announced," Auchincloss said.
“This is the first time Massachusetts has voted by mail and we believe there are thousands of votes still not counted," Mermell said. "We have a responsibility to see the process through and give clerks the time to do their jobs and count the votes.”
In addition to Auchincloss and Mermell, the group of candidates included Newton City Councilor Becky Grossman, City Year co-founder Alan Khazei, epidemiologist Natalia Linos, former Wall Street regulator Isshane Lecky and Ben Sigel, who worked for the Democratic National Campaign Committee.
Republican Julie Hall, a veteran, defeated David Rosa on the GOP side of the ballot.
Mermell performed well in the liberal suburbs of Boston, winning handily in her hometown of Brookline and topping the ticket in Newton. Auchincloss, meanwhile, appeared to be performing well in the southern end of the district.
A candidate may request a district-wide recount if the margin of victory is less than half of 1% of the total votes cast. Both campaigns have until three days after the primary before recount petitions are due, and those papers must be signed by one-quarter of the number of voters required to sign a nomination paper to qualify a candidate for the ballot.
In a normal year, that would be 500 signatures, but because of the COVID-19 pandemic the signature requirements were reduced by the Supreme Judicial Court to 1,000 to qualify for the ballot.
State House News Service contributed to this report.
More Coverage on the Bid for the 4th Congressional District in Massachusetts
The race for Massachusetts’ Fourth Congressional District is packed as Democrats vie to fill the seat being vacated by Rep. Joe Kennedy III