Qlik Community

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Support Case Portal has moved to Qlik Community! Read the FAQs to start exploring Support resources.
cancel
Showing results for 
Search instead for 
Did you mean: 
shubham_kumar
Creator III
Creator III

How to customize the log file error message to specific error message

Dear QV Expert,

Today I was looking for a possibility to customize the log file error at the end of the file should be showing the message which we want to show.

2017-11-24 14:12:29      Error: Cannot open file: 'path'

2017-11-24 14:12:29      Execution Failed

2017-11-24 14:12:29      Execution finished.

instead of this

2017-11-24 14:12:29      Error: My Personal Message to appear here...

2017-11-24 14:12:29      Execution Failed

2017-11-24 14:12:29      Execution finished.

Something like updating the

ScriptErrorList=' Custom Message'

Also, we want to fail the QV reload and send the log message accordingly.

To do so we have Set the ErrorMode =2 which is also not working as intended. Any Idea or help.

1 Reply
marcus_sommer
MVP & Luminary
MVP & Luminary

AFAIK it's not possible. But you could create an own logic by using trace to return customized error-messages. This meant using the ErrorMode 0 and querying the ScriptError after each essential load-step. To not cluttering the script too much you could put those logic into a sub-routine similar to this one: Re: TRACE - directly enter an expression which returned the ScriptError and maybe some further results and could also contain an exit script; to break the script on this point.

- Marcus