Have you given your yam a name? if so why? I call mine Marmite, it was suggested on this site I called it Winker, but that might have been a spelling mistake, LOL,
So come on and lets us know.
check side stand switch, can cause intermittent faults, also there is a large connector in the front fairing, pig to get to but if it gets damp it can cause some shyte , worth a look.