Error parsing session log file

Advertisement

GRR3
Joined:
Posts:
10

Error parsing session log file

We have a number of Powershell scripts using the library. We recently updated to 5.13.

Since update, I've seen a few (three) errors of "Error parsing session log file".

Each time, I've enabled debug logs, but have not seen the error occur again on the same script.

Do you have any general thoughts on why this might occur or know of any steps I can take to prevent this?

Thanks.

Reply with quote

Advertisement

GRR3
Joined:
Posts:
10

Adding logs and script (private data removed, but please don't repost)

The session log doesn't show an error, but I catch errors and send them in an email.
Error: Error parsing session log file
Line number 57: $session.Open($sessionOptions)

Maybe I should catch these types of errors or do something different?

Thanks.
  • Script.txt (4.49 KB, Private file)
Description: Script
  • 2018-Mar-20_11-04-03_Script_session_log.txt (7.61 KB, Private file)
Description: Session log
  • 2018-Mar-20_11-04-03_Script_log.txt (188 Bytes, Private file)
Description: Script log

Reply with quote

martin
Site Admin
martin avatar

We need to see the "inner exception": $_.Exception.InnerException.Message.

It would also help, if you set $session.DebugLogPath and attach that log too.

Reply with quote

GRR3
Joined:
Posts:
10

Thank you, I have added the collection of the inner error to all my scripts.
I have not yet set all the scripts up with debug logs.
This is the first error I was able to collect.
Error: Error parsing session log file
Inner Exception: Root element is missing.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum