Label Not Found Error Message

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
edgordo
Newbie
Posts: 3
Joined: Tue Apr 20, 2004 1:42 pm

Label Not Found Error Message

Post by edgordo » Tue Apr 20, 2004 1:54 pm

I keep getting Error - Label xxxx not found! when running my script in debug mode from the editor. The Label is definitely there and I do not get the error when just running the script from the scheduler. Anyone know how to get rid of these messages?

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Apr 20, 2004 2:28 pm

I suspect you are suffering from Trailing Spaces. The compiler considers those spaces as real characters, so you must be sure to remove them or include them in all references. Most times it is desired to remove them.

In the Editor, click on Edit, Show All Chars, and use Edit, Remove Trailing Spaces. Save the script.

If you create and look at a Log file, you will probably see that the label is not read properly when you run from the scheduler either. But it does not generate a message, it just continues processing.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

edgordo
Newbie
Posts: 3
Joined: Tue Apr 20, 2004 1:42 pm

Post by edgordo » Tue Apr 20, 2004 2:59 pm

Thanks for the suggestion. I tried it, but it didn't stop the message. I've even tried changing the name and making sure the original name is not in the script and the message still comes up with the original name in it.

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Tue Apr 20, 2004 3:32 pm

We may be able to help more if you provide sample of the script. And point out the specific problem you are having and the section of code where you think the problem is.

A sample from a log file might also be helpful.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

edgordo
Newbie
Posts: 3
Joined: Tue Apr 20, 2004 1:42 pm

Post by edgordo » Tue Apr 20, 2004 4:55 pm

Found this problem. There was another reference to it that was miss-spelled with a g instead of b. Tunnel vision kept me from seeing it and doing a search didn't find the label either. Thanks for the help.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts