Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: Operand /operator mismatch
Topic Summary:
Created On: 10/28/2014 10:44 AM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by LaurieBeffa, on Wednesday, October 29, 2014 10:54 AM

Answer:
Gijs

Thank you,

I had disabled those variables and didn't include them in the code attached.

The script is working with those enabled.

Appreciate your help.
Laurie
 10/28/2014 10:44 AM
User is offline View Users Profile Print this message

Author Icon
LaurieBeffa
Student (5-19 posts)

Posts: 18
Joined: 01/25/2011

In a task set to Find text in a file, getting Syntax Error: Script error: "(10538) Operand/operator type mismatch." at script line 2.

The Variables tab show the correct Value for the find text command, but the Get subtext command is where the error occurs.

See code.

The code for Get Sub Text was copied from a Sample script and changed to the variables in this script.

Thank you for any help


 Category Survey
AutoMate 7 version: 7.0.8
Windows version: Windows 7



Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder)
 10/28/2014 02:43 PM
User is offline View Users Profile Print this message

Author Icon
Mary Manzano
HelpSystems

Posts: 280
Joined: 03/10/2014

Hello Laurie,

 

Can you elaborate a bit more? What step is the one that fails? You have a few Get Sub Text actions.



 Category Survey
AutoMate 7 version:
Windows version:


-------------------------
Mary Manzano | Technical Consultant
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665
 10/29/2014 02:04 AM
User is offline View Users Profile Print this message

Author Icon
Gijsberth de Ruiter
Artisan (200-499)

Posts: 455
Joined: 03/30/2005

I will test later, but just from your task, it looks like you store a 'text' piece that is found in your index variables, not the index position. To have the position in the variable, it shoud look like this:
RESULTVARIABLE="varname"

If you open teh action in the task builder, you should be easily able to correct this.

 Category Survey


-------------------------
I am an A-Team Member

Edited: 10/29/2014 at 02:29 AM by Gijsberth de Ruiter
 10/29/2014 05:50 AM
User is offline View Users Profile Print this message

Author Icon
LaurieBeffa
Student (5-19 posts)

Posts: 18
Joined: 01/25/2011

I changed the task to store the variable with first index rather than store the text. The script still fails at the Get Text task but there is no error now. The output just shows the step in Red, then ends the task.
The value for the variable is now a position number. The number of characters for the text between the two variables is correct.

Laurie

 Category Survey
AutoMate 7 version: 7.0.8
Windows version: Windows 7
 10/29/2014 07:50 AM
User is offline View Users Profile Print this message

Author Icon
Gijsberth de Ruiter
Artisan (200-499)

Posts: 455
Joined: 03/30/2005

Laurie,
If I look at your task, you have result variables in teh getsubtext action that are not craeted. You need to create the variables first, e.g. roomnumber, attending, patient and freq. Maybe I missed one.
Gijs

 Category Survey


-------------------------
I am an A-Team Member
 10/29/2014 10:54 AM
User is offline View Users Profile Print this message

Author Icon
LaurieBeffa
Student (5-19 posts)

Posts: 18
Joined: 01/25/2011

Answer Answer
Gijs

Thank you,

I had disabled those variables and didn't include them in the code attached.

The script is working with those enabled.

Appreciate your help.
Laurie

 Category Survey
AutoMate 7 version: 7.0.8
Windows version: Windows 7
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 1488 guests browsing this forum, which makes a total of 1488 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2020 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog