What was the condition of the bike prior to this? Sat for a while? New to you? Modifications?
Right off the bat I would say check your charging system. But I would also make sure the carbs are clean, the plugs are new, and the jetting is correct.
And when I say "carbs are clean" I mean ALL passageways are free and clear. I'm chasing random plug fouling on my recently resurrected RRX track bike. Found all sorts of debris in the float bowls.
The bowls were clean:
But this is what came out of them, lots of black spec:
Make sure you remove all the jets, and the one that doesn't come out affects idle, and is minutely small and gets clogged very easily:
