Issues with using Custom Counter in Goal Based Load Pattern inside Load Test

If you are using custom counter in goal based load pattern inside load test then you may come across this kind of error while running load test: Exception        LoadTestGoalCounterNotFoundException        1        A goal based load pattern can not be applied because it specifies a performance counter (RUBELSVM1\MyCategory1\MyCounter1\) that could not be read: Category does not exist….