The parishes of Repola and Porajärvi of the Olonets Governorate had voted in favor of secession from Bolshevist Russia and had been occupied by Finland later that year. In late 1919 the Russian White Army retreated towards the Finnish border to the Repola-Porajärvi area. The Finnish government led by Juho Vennola decided in February 1920 that Finland should intervene to help the dissidents by diplomatic means. Foreign minister Rudolf Holsti sent a message to his counterpart Georgy Chicherin stating that Finland would disarm the retreating Russian White troops if the Red Army does not occupy the parishes. Agreement was honoured by both parties, although there were minor skirmishes between Finnish troops and the Red Army. These fights led to armistice negotiations in Rajajoki, which ended unsuccessfully after two weeks. There had been uprisings in White Karelia as early as 1920. After British forces left Karelia, Karelian ethnic nationalists arranged a meeting in Ukhta  in March-April 1920 where they elected 117 representatives. In the meeting they decided that White Karelia should become an independent nation. Some parishes of Olonets Karelia joined in and the Väliaikainen toimikunta  renamed itself to Karjalan väliaikainen hallitus . However, the Red Army suppressed this uprising and in summer 1920 the Temporary Government fled to Finland. In its place, the Karelian Worker's Commune was formed, an autonomous oblast of the RSFSR. During the treaty negotiations, Finland proposed a referendum in East Karelia, through which its residents could choose whether they wanted to join Finland or Soviet Russia. Due to opposition from Russia, Finland had to withdraw the initiative. In return of ceding Repola and Porajärvi back to Russia, Finland acquired Petsamo and a promise of cultural autonomy for East Karelia. However this cultural autonomy was poorly carried out.
What happened first uprisings in Karelia or elections?
uprisings in White Karelia