Two closely watched primary elections delivered mixed results for two state legislators who handpicked their successors.

The vote proved disappointing for Assemblywoman Alice Cancel, who won a special election in April to fill the seat vacated by Assembly Speaker Sheldon Silver, who was convicted on corruption charges. Silver had backed Cancel for the seat.

Yuh-Line Niou easily dispatched Cancel, capturing 31.5 percent of the vote. Cancel finished fourth among the six candidates vying for the Democratic Party’s nomination for the seat.

In the other notable race, Marisol Alcantara, handpicked by state Sen. Adriano Espaillat to succeed him in the office, won the Democratic nomination with 32.4 percent of the vote. Espaillat is leaving the senate to run for Rep. Charles Rangel’s seat in Washington.