The danger of a hashtag in a marketing campaign

A successful hashtag can generate a huge amount of positive publicity and brand awareness if executed correctly. But if it goes wrong – it can generate even more publicity for all of the wrong reasons and alienate potential customers. Is it just the luck of the draw whether it succeeds or fails or is there a clear strategy that works?