You are here:Home>Missing ‘)’ in Expression

Missing ‘)’ in Expression

When I place an action logic line that contains the word TIME (e.g. VATIME) before my actual TIME statement, I get an error saying “Missing ‘)’ in expression”.

This error is caused by a very specific set of conditions.

  1. You must have an action logic line that contains the word TIME (e.g. v_CheckTime)
  2. That same line of code must also include parentheses following the word “time”
  3. That line must appear before an actual TIME statement

For example:

v_Check_Time = Clock() – CycleStart
Time(1 Min)

The TIME statement is being parsed for proper syntax. But because of a bug where only the first occurrence of the word TIME is being checked, the actual time statement is misinterpreted, producing the syntax error.

If possible, move the action logic containing the word TIME (prior to the actual TIME statement) to the route or activity prior to the problem location. Or, if you can, change the name of the variable or attribute containing the word TIME.

By |Comments Off on Missing ‘)’ in Expression

About the Author:

Scott Baird has been president of ProcessModel for more than 15 years. His focus has been to teach others how to improve processes dramatically. He has been successful in transferring these skills to over 200 companies, including ESPN, NASA, GE, Nationwide, Cendant, SSA and many more. Specialties: Group facilitation for process improvement, process design and simulation, simulation modeling, business management and training others to see opportunities. Scott loves to teach process improvement and has often been heard to say, “Of all the things I do, training others to improve processes is my favorite.” Scott is a father of four and a grandfather of eight. He is an avid woodworker, designing and creating presentation boxes. In his spare time, he volunteers in a college preparation program.