I've been using electric fence for over 30 years. Many different fencers, wire, and grounding setups.
don't cheap out on the fencer.
I've had the most powerful fencer Galagher makes down to a premier and a baygard. Right now I have 5 in use. three solars, one battery, and one mains. None are Galagher, Premier, or Baygard at this time.
have a solid grounding system
positive/negatively wired fence is usually most reliable
all animals have slightly different tolerance to electric and configuration of fence needs to suit the particular animal. The effectiveness of the fence varies with ground moisture conditions, type of ground, and especially installation details.
I have never had to battle raccoons, only deer, elk, bears, and a groundhog or two.
I've fenced chickens, turkeys, sheep, goats, horses and cattle
I consider myself a journeyman electric fencer.
you did something wrong