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: Script error: Expecting a factor
Topic Summary: Script error
Created On: 01/22/2013 08:45 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.
 01/22/2013 08:45 AM
User is offline View Users Profile Print this message

Author Icon
PennyKenney
Journeyman (50-99)

Posts: 55
Joined: 03/12/2007

Automate 7 on Win 2003
The following line causes a script error: "Expecting a factor." (code 15544) when the task is running, but tests fine in the expression builder.
%02/28/%datepart("yyyy",dateadd("m",1,date()))%%

What is wrong with the expression?

 Category Survey
 01/22/2013 09:15 AM
User is offline View Users Profile Print this message

Author Icon
Leonard Amabile
HelpSystems

Posts: 5454
Joined: 05/15/2007

Hi Penny,

I believe your expression should look like this:

02/28/%datepart("yyyy",dateadd("m",1,date()))%

You have extra percent symbols enclosing the expression unnecessarily.

 Category Survey
AutoMate 7 version:
Windows version:


-------------------------

Leonard Amabile | Director, Cross Platform Support
AutoMate | InterMapper | Skybot | Divisions of HelpSystems
T: +1.213.738.1700 | F: +1.213.738.7665
 01/22/2013 11:18 AM
User is offline View Users Profile Print this message

Author Icon
PennyKenney
Journeyman (50-99)

Posts: 55
Joined: 03/12/2007

Thanks...looks like when I would test it, it would add the extra set automatically, so I deleted them without testing and it worked fine.

 Category Survey
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 1410 guests browsing this forum, which makes a total of 1410 users using this forum.

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

Sitemap Network Automation Software Blog