q:if (exists file whose (name of it starts with “Install-CriblEdge-transcript”) of folder "C:\windows\temp") then concatenation “%0A” of lines of files whose (name of it starts with “Install-CriblEdge-transcript” AND modification time of it = maximum of modification time of files whose (name of it starts with “Install-CriblEdge-transcript”) of folder "C:\windows\temp") of folder "C:\windows\temp" else “Output file not found”
A: Output file not found
T: 20.969 ms
This worked in the Debugger and locally on the server using QnA tool. But in an analysis it shows as error
What is the error if you hover over the error, or by opening the Computer and referring to the main status page for the computer?
It looks like you are trying to retrieve an entire log file into a property result, and you may well be exceeding the string length limits of a result (this is stored in a single row in the database)
I believe the limit is something like 2048 characters.
Yes, Analyses can return “more” results, just not “larger” ones.
Analyses like “Application Information - Windows” return plural results - each application is a separate result value. In your case, by concatenating the lines, you are returning the entire file content in one long string.
Try taking the “concatenation” out and let each line be one of the plural results.
I think the “…” is that the result may not be an error, but is too large to display in the Console (and might still be usable in REST). Splitting the results may help determine if that’s the case.
I’ve encountered this when retrieving long strings but it was many versions ago, so I did some testing and it looks like the limit may be 1024 characters, which is the issues I ran into though a different use case.
I created a simple text file with 23 lines of the string “The quick brown fox jumps over the lazy dog”. Property 1 with the relevance concatenation ". " of (lines of files "C:\TEMP\longtext1.txt") results in the 3 dots where as property 2 with the relevance first 1023 of concatenation ". " of (lines of files "C:\TEMP\longtext1.txt") reports the first 1023 characters. With concatenation removed, it also reports as expected though tis then a plural result. (it & ". ") of (lines of files "C:\TEMP\longtext1.txt").
I also tried with a direct string of over 1024 characters and it also reports as 3 dots, which is also how its recorded in the QUESTIONRESULTS table.