(imported topic written by tharryman91)
- Resolved ****
When all else fails, question your assumptions. I was pasting this in the wrong property, so of course the one I was NOT pasting it in had an issue.
Never underestimate the power of human stupidity
So, here is this relevance statement.
if (exists file “c:\windows\temp\test.txt”)
then
if((it > 0) of number of lines whose (it contains “Unable to communicate”) of file “C:\Windows\Temp\test.txt”)
then "COMM"
else
if ((it > 0) of number of lines whose (it contains “ERROR”) of file “C:\Windows\Temp\test.txt”)
then "ERROR"
else ""
else “Run Fixlet”
This works fine in QNA, returning the desired output for different scenarios. However, when I try to use this as an analysis property, I get “Property contains relevance that has a syntax error: This expression could not be parsed”
Isnt the purpose of QNA to make sure the relevance is good to go before you put it into BigFix? I thought if it worked there it would be okay.
Can anyone let me know what I am missing here?
Thanks in advance, I appreciate any assistance!
Timothy