Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Nagaraju_KCS
Specialist III
Specialist III

Log File

Hi All,

I have one Application if it is fails my Document, i want store the error information in Log file..

How to create log file...

By default this is One way

Settings ---> Document Pro-----> Check GenerateLogFile and TimeStamp

any other method, i want store particular error

Thanks

Labels (1)
4 Replies
whiteline
Master II
Master II

Hi.

Generate table with errors or info messages and then store it with 'Store' statement. It would be your own log-file.

Clever_Anjos
Support
Support

You can use

SET ErrorMode='0';

and make your own error handling and logging logic as described here writing to a text file (with STORE)

Nagaraju_KCS
Specialist III
Specialist III
Author

Hi White,

please give me simple example....

whiteline
Master II
Master II

=Script=

MyLog:

LOAD

     null() as Error,

     null() as TimeStamp

Autogenerate(0);

...

IF some error is happend THEN

     Concatenate(MyLog)

     LOAD

          'The error happend' as Error,

          Now(0) as TimeStamp

     AUTOGENERATE(0);

ENDIF

=End script=

How to handle errors and turn off the default behaviour read the link Anjos provided above.