Hi, I’m new using ParaView so I don’t really know how to describe the error I got. But basically I’m trying to use the ParaView calculator and I’m getting the following error:
ERROR: In C:\glr\builds\paraview\paraview-ci\build\superbuild\paraview\src\VTK\Common\Misc\vtkExprTkFunctionParser.cxx, line 491
vtkExprTkFunctionParser (0000015B652AE810): Err: 0 Type: [Syntax Error] Msg: ERR201 - Undefined symbol: 'Field3' Expression: (iHat*Field 3)+(jHat*Field 4)+(kHat*Field 5)
ERROR: In C:\glr\builds\paraview\paraview-ci\build\superbuild\paraview\src\VTK\Common\Misc\vtkExprTkFunctionParser.cxx, line 491
vtkExprTkFunctionParser (0000015B652AE810): Err: 0 Type: [Syntax Error] Msg: ERR201 - Undefined symbol: 'Field3' Expression: (iHat*Field 3)+(jHat*Field 4)+(kHat*Field 5)
Warning: In C:\glr\builds\paraview\paraview-ci\build\superbuild\paraview\src\VTK\Filters\Core\vtkArrayCalculator.cxx, line 502
vtkPVArrayCalculator (0000015B767F09B0): An error occurred when parsing the calculator's function. See previous errors.
ERROR: In C:\glr\builds\paraview\paraview-ci\build\superbuild\paraview\src\VTK\Common\Misc\vtkExprTkFunctionParser.cxx, line 491
vtkExprTkFunctionParser (0000015B652AE810): Err: 0 Type: [Syntax Error] Msg: ERR201 - Undefined symbol: 'Field3' Expression: (iHat*Field 3)+(jHat*Field 4)+(kHat*Field 5)
ERROR: In C:\glr\builds\paraview\paraview-ci\build\superbuild\paraview\src\VTK\Common\Misc\vtkExprTkFunctionParser.cxx, line 491
vtkExprTkFunctionParser (0000015B652AE810): Err: 0 Type: [Syntax Error] Msg: ERR201 - Undefined symbol: 'Field3' Expression: (iHat*Field 3)+(jHat*Field 4)+(kHat*Field 5)
Warning: In C:\glr\builds\paraview\paraview-ci\build\superbuild\paraview\src\VTK\Filters\Core\vtkArrayCalculator.cxx, line 502
vtkPVArrayCalculator (0000015B767F09B0): An error occurred when parsing the calculator's function. See previous errors.
Does anyone know the reason for the error and how to solve it?
Thank you very much in advance.
OBS: If anyone wants to see the data or how I did the process, attached is the image.
Curiously, I have been having the same issue with version 5.11.0 and followed your instructions it worked once, only. Then the error message came back up again every time I tried to upload a new table.
In an attempt to clear this suspicion of mine about the latest version I then installed the one before last, but the problem still persists.
Here is the error message:
Err: 0 Type: [Lexer Error] Msg: ERR004 - General token error: "V Expression: iHat*“Vx”+jHat*“Vy”+kHat*“Vz”
Would you be able to give me any advice on this please?
Thanks in advance
The calculator filter is having trouble parsing the names of your fields (e.g., c_voro[1]) because it is parsing the angle brackets as an array index and not finding a field named c_voro. You can fix the problem by wrapping your field names in quotes to tell the parser that the whole string should be taken as the variable name.
"c_voro[1]" - "c_voro[2]"
Note that if you add variables to your expression using the Scalars combo box, it will automatically add quotes around the variable name, so that can be a helpful guide on how to add your variables to the expression.