Was that a BMW supplied horn? As posted above, had the same with ones off of eBay, but the ones from the parts dept have been fine for years. That was on a 1200RT and a 1250RTFitted mine with some bending of the bracket. Quick test and it worked well. First ride out and had someone pull out in front of my justifying a longer blast of the horn but instead it was on-off-on-off-on toot toot toot style. Very odd. tested in again on a quiet stretch of road and nothing no sound at all. Stopped for a break, restarted the bike and horn test had it working again.
My guess is the power draw is different and it confuses the ECU so stops working. Either way I swapped the old one back on when I get home.