<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SQL Error : SQL Scriptline SQL State:00000 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Error-SQL-Scriptline-SQL-State-00000/m-p/158610#M33615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;I am getting this error when I am loading it in Qlikview. When I run the same query in Toad, the query works fine. I am not able to locate the problem here. Any help would be really appreciated.&lt;/P&gt;&lt;P&gt;SQL Error:&lt;BR /&gt;SQL Scriptline:&lt;BR /&gt;SQL State:00000&lt;BR /&gt;Decline_Chart:&lt;/P&gt;&lt;P&gt;SQL select nvl(sp_user.middle,'Not Available') SP_USER,nvl(sp_user2.middle,'Not Available') SP_USER_COMPLETE,&lt;BR /&gt;res_first_name || ' ' || res_last_name RES_NAME, decode(flat_request.req_type,1,'SP','TP') || req_oid ORDER_NUM,&lt;BR /&gt;decode(flat_request.req_type,1,'SP','TP') || nvl(main_req_oid,req_oid) MAIN_ORDER,&lt;BR /&gt;order_stat(req_status) ORDER_STAT, audit_date_mpsent ORDER_DATE, TIMES_IN_PUF PUF_NUMBER,&lt;BR /&gt; HOURS_MINS_SECS_BETWEEN(audit_date_msent,audit_date_mpsent,'N/A') TIME_TO_OPEN,&lt;BR /&gt; HOURS_MINS_SECS_BETWEEN(nvl(nvl(audit_date_accept,audit_date_decline),audit_date_cancel),audit_date_msent,&lt;BR /&gt; 'N/A') TIME_TO_PROCESS, HOURS_MINS_SECS_BETWEEN(nvl(nvl(audit_date_accept,audit_date_decline),&lt;BR /&gt; audit_date_cancel),audit_date_mpsent,'N/A') TOTAL_TIME, svc_prov_name SP_NAME,&lt;BR /&gt; svc_cat_prov_name || ' (' || svc_cat_name || ')' SCP_NAME, RESPONSE, PCOMMENT, parent.name REGION,&lt;BR /&gt; svc_address_State, SVC_ADDRESS_ZIPCODE ZIP9, SVC_ADDRESS_CITY, decode(psr.DECLINED_BY_PUF_FLAG, 1, 'PUF Cutoff', ref.name) DECLINE_REASON,&lt;BR /&gt; nvl(REF_PUF.NAME,' ') PUF_REASON, decode(psr.DECLINED_BY_PUF_FLAG,1,'X',' ') PUF_DECLINE,&lt;BR /&gt; decode(ORDER_TYPE,'M','P','B','S','I','S',' ') ORDER_TYPE&lt;BR /&gt; from flat_request, sp_user, sp_user sp_user2,&lt;BR /&gt; (Select oid, error_info response, PROVIDER_COMMENT pcomment from psr_account) pa,&lt;BR /&gt; configuration_manager_new cmn, configuration_manager_new parent, REF_DECLINE_CODE REF, system_request psr,&lt;BR /&gt; ref_puf_reason REF_PUF&lt;BR /&gt; where req_oid = psr.oid and pa.oid = decode(ORDER_TYPE,'I', req_oid, nvl(main_req_oid,req_oid))&lt;BR /&gt; and psr.OID_DECLINE_CODE = ref.oid (+) and psr.OID_PUF_CODE = REF_PUF.OID (+)&lt;BR /&gt; and SPUSER_COMPLETE_OID = sp_user2.oid (+) and SPUSER_OID = sp_user.oid (+)&lt;BR /&gt; and req_status in (9,14,16) and audit_date_mpsent is not null and flat_request.req_type = 1&lt;BR /&gt; and cmn.oid = cm_oid and cmn.oid_parent = parent.oid&lt;BR /&gt; and flat_request.SVC_PROV_OID = 1000494&lt;BR /&gt; and trunc(flat_request.REQ_ORDER_DATE) between trunc(last_day(Add_Months(sysdate-395,-1))+1) and trunc(last_day(Add_Months(sysdate,-1)))&lt;BR /&gt; order by svc_prov_oid, svc_cat_prov_oid, sp_user.middle desc, req_status, req_order_date desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Oct 2010 17:40:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-25T17:40:32Z</dc:date>
    <item>
      <title>SQL Error : SQL Scriptline SQL State:00000</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Error-SQL-Scriptline-SQL-State-00000/m-p/158610#M33615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;I am getting this error when I am loading it in Qlikview. When I run the same query in Toad, the query works fine. I am not able to locate the problem here. Any help would be really appreciated.&lt;/P&gt;&lt;P&gt;SQL Error:&lt;BR /&gt;SQL Scriptline:&lt;BR /&gt;SQL State:00000&lt;BR /&gt;Decline_Chart:&lt;/P&gt;&lt;P&gt;SQL select nvl(sp_user.middle,'Not Available') SP_USER,nvl(sp_user2.middle,'Not Available') SP_USER_COMPLETE,&lt;BR /&gt;res_first_name || ' ' || res_last_name RES_NAME, decode(flat_request.req_type,1,'SP','TP') || req_oid ORDER_NUM,&lt;BR /&gt;decode(flat_request.req_type,1,'SP','TP') || nvl(main_req_oid,req_oid) MAIN_ORDER,&lt;BR /&gt;order_stat(req_status) ORDER_STAT, audit_date_mpsent ORDER_DATE, TIMES_IN_PUF PUF_NUMBER,&lt;BR /&gt; HOURS_MINS_SECS_BETWEEN(audit_date_msent,audit_date_mpsent,'N/A') TIME_TO_OPEN,&lt;BR /&gt; HOURS_MINS_SECS_BETWEEN(nvl(nvl(audit_date_accept,audit_date_decline),audit_date_cancel),audit_date_msent,&lt;BR /&gt; 'N/A') TIME_TO_PROCESS, HOURS_MINS_SECS_BETWEEN(nvl(nvl(audit_date_accept,audit_date_decline),&lt;BR /&gt; audit_date_cancel),audit_date_mpsent,'N/A') TOTAL_TIME, svc_prov_name SP_NAME,&lt;BR /&gt; svc_cat_prov_name || ' (' || svc_cat_name || ')' SCP_NAME, RESPONSE, PCOMMENT, parent.name REGION,&lt;BR /&gt; svc_address_State, SVC_ADDRESS_ZIPCODE ZIP9, SVC_ADDRESS_CITY, decode(psr.DECLINED_BY_PUF_FLAG, 1, 'PUF Cutoff', ref.name) DECLINE_REASON,&lt;BR /&gt; nvl(REF_PUF.NAME,' ') PUF_REASON, decode(psr.DECLINED_BY_PUF_FLAG,1,'X',' ') PUF_DECLINE,&lt;BR /&gt; decode(ORDER_TYPE,'M','P','B','S','I','S',' ') ORDER_TYPE&lt;BR /&gt; from flat_request, sp_user, sp_user sp_user2,&lt;BR /&gt; (Select oid, error_info response, PROVIDER_COMMENT pcomment from psr_account) pa,&lt;BR /&gt; configuration_manager_new cmn, configuration_manager_new parent, REF_DECLINE_CODE REF, system_request psr,&lt;BR /&gt; ref_puf_reason REF_PUF&lt;BR /&gt; where req_oid = psr.oid and pa.oid = decode(ORDER_TYPE,'I', req_oid, nvl(main_req_oid,req_oid))&lt;BR /&gt; and psr.OID_DECLINE_CODE = ref.oid (+) and psr.OID_PUF_CODE = REF_PUF.OID (+)&lt;BR /&gt; and SPUSER_COMPLETE_OID = sp_user2.oid (+) and SPUSER_OID = sp_user.oid (+)&lt;BR /&gt; and req_status in (9,14,16) and audit_date_mpsent is not null and flat_request.req_type = 1&lt;BR /&gt; and cmn.oid = cm_oid and cmn.oid_parent = parent.oid&lt;BR /&gt; and flat_request.SVC_PROV_OID = 1000494&lt;BR /&gt; and trunc(flat_request.REQ_ORDER_DATE) between trunc(last_day(Add_Months(sysdate-395,-1))+1) and trunc(last_day(Add_Months(sysdate,-1)))&lt;BR /&gt; order by svc_prov_oid, svc_cat_prov_oid, sp_user.middle desc, req_status, req_order_date desc;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 17:40:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Error-SQL-Scriptline-SQL-State-00000/m-p/158610#M33615</guid>
      <dc:creator />
      <dc:date>2010-10-25T17:40:32Z</dc:date>
    </item>
    <item>
      <title>SQL Error : SQL Scriptline SQL State:00000</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Error-SQL-Scriptline-SQL-State-00000/m-p/158611#M33616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When QlikView returns a SQL error, it usually orginates from the ODBC driver and not QlikView.&lt;/P&gt;&lt;P&gt;There could be a function that the ODBC driver doesn't support. Try taking apart the SQL statement and running is in parts to see what function or column is causing the problem.&lt;/P&gt;&lt;P&gt;Also check that you have the proper permissions and that all the columns have an alias.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 18:10:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Error-SQL-Scriptline-SQL-State-00000/m-p/158611#M33616</guid>
      <dc:creator>pover</dc:creator>
      <dc:date>2010-10-25T18:10:27Z</dc:date>
    </item>
    <item>
      <title>SQL Error : SQL Scriptline SQL State:00000</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Error-SQL-Scriptline-SQL-State-00000/m-p/158612#M33617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karl,&lt;/P&gt;&lt;P&gt;Thanks for the suggestion. I did exactly what you said and identified that there were two columns which were of CLOB datatypes and were not being handled by Qliview. I changed the ODBC driver to OLEDB driver and it is working fine now. So, as you mentioned the problem was not with qlikview but the driver.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 18:23:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Error-SQL-Scriptline-SQL-State-00000/m-p/158612#M33617</guid>
      <dc:creator />
      <dc:date>2010-10-25T18:23:46Z</dc:date>
    </item>
  </channel>
</rss>

