SQL Statement Malformed Error in Appl. Server Task - JobType = QuickReport Hi, I have an application-server-task setup for job-type = ‘QuickReport’. When the I runt the task, the generated excel file tell error: “SQL Statement malformed: [..select statement in quick report..]” Executing the quick report manually doesn’t have any error. Does anybody know about this error and how to handle it? The QR-sql-statement: SELECT job_id, state, t.description, procedure_name, t.queue_id, B.DESCRIPTION, B.PROCESS_NUMBER, B.EXECUTION_PLAN, arguments_string, LAG (executed,1) OVER (PARTITION BY t.queue_id ORDER BY started) prev_job_executed, (started - (LAG (executed,1) OVER (PARTITION BY t.queue_id ORDER BY created)))*24*60*60 time_since_prev_job_executed, (started-posted)*24*60*60 wait_for_start, (executed-started)*24*60*60 exec_time, posted, created, started, executed, error_text, username, t.lang_code, progress_info, process_id, inst_id, lang_indep, sid, serial#, schedule_id, argument_type, long_op_id, slno, total_work, so_far, exclude_cleanup FROM ifsapp.deferred_job t