Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
schultem
Contributor III
Contributor III

Reload document fails while scheduled, manual is successful

Hi all,

I have a problem with one of my documents: scheduled reload fails while manual reload from Qlikview Developer runs fine. Here is my tasklog.txt:

9-5-2011 13:31:01.6334827 Information Executing ClusterID=1, QDSID=148ad0db-2796-d90b-d5a7-d36a04a50a20 QDSMain.ReloadTask

9-5-2011 13:31:01.6334827 Information Starting task "Docman rappellijst v1 0.qvw" (Attempt 1 of 1)

9-5-2011 13:31:01.6334827 Information Max run time: 06:00:00

9-5-2011 13:31:01.6491080 Information Opening "D:\QlikView\QvPortal\Docman rappellijst v1 0.qvw"

9-5-2011 13:31:01.6491080 Information Allocating QlikView Engine

9-5-2011 13:31:01.6491080 Information Allocating new QlikView Engine. Current usagecount=1 of 2

9-5-2011 13:31:01.6491080 Information An instance of the QlikView Engine is being created

9-5-2011 13:31:01.6491080 Information Starting QlikView Engine

9-5-2011 13:31:02.5397501 Information The QlikView Engine was started successfully. Version=9.00.7469.8, ProcessID=1088

9-5-2011 13:31:02.5397501 Information Allocated QlikView Engine successfully. Current usagecount=1 of 2, Ticket=182

9-5-2011 13:31:02.5553754 Information Loading document "D:\QlikView\QvPortal\Docman rappellijst v1 0.qvw" (1.06 Mb)

9-5-2011 13:31:03.2272633 Information Physical FileSize=1.06 Mb. Memory Allocation Delta for this file=12.36 Mb. Available Physical Memory Before Open=2445.41 Mb. Available Physical Memory After Open=2433.88 Mb. Total Physical Memory=3839.55 Mb.

9-5-2011 13:31:03.2272633 Information The document was loaded successfully.

9-5-2011 13:31:03.2272633 Information Initializing Checkout (0), Loading document (890), Initializing load (906), Checking read (906), Creating QlikView Engine (906), Checking Size (1031), Load (1046), Load Completed (1328), Tables read (1546), Opened successfully (1578)

9-5-2011 13:31:03.2272633 Information Document was opened successfully

9-5-2011 13:31:03.2272633 Information Opened successfully (0)

9-5-2011 13:31:03.2272633 Information Starting reload

9-5-2011 13:31:03.2428886 Information QlikView->Settings->Document Peferences->Generate Logfile in document is not set.

9-5-2011 13:31:03.2585139 Information The Source Document is being reloaded. DocumentPath=D:\QlikView\QvPortal\Docman rappellijst v1 0.qvw

9-5-2011 13:31:03.2585139 Information The Source Document reload complete. DocumentPath=D:\QlikView\QvPortal\Docman rappellijst v1 0.qvw

9-5-2011 13:31:03.2741392 Information Memory Allocation Delta for this file=0.48 Mb. Available Physical Memory Before Reload=2433.87 Mb. Available Physical Memory After Reload=2434.26 Mb. Total Physical Memory=2434.26 Mb.

9-5-2011 13:31:03.4303922 Error The Source Document was NOT reloaded successfully. DocumentPath=D:\QlikView\QvPortal\Docman rappellijst v1 0.qvw.

9-5-2011 13:31:03.4303922 Information Initializing Reload (0), Finished (203)

9-5-2011 13:31:03.4303922 Error Reload failed.

9-5-2011 13:31:03.4616428 Information Closing the document.

9-5-2011 13:31:03.6178958 Information Closed the QlikView Engine successfully. ProcessID=1088

9-5-2011 13:31:03.6178958 Information Initializing (0), Finished (187)

9-5-2011 13:31:03.6178958 Error The task "Docman rappellijst v1 0.qvw" failed. ErrorCount=2

Since it says"The Source Document reload complete" and after that it says "Error The Source Document was NOT reloaded successfully" I don't know what the problem is. The document makes connection to an Oracle database with ODBC.

Thanks in advance for your help!

7 Replies
Not applicable

Hi,

Could it be that a version of this document is still open, so i cannot save the document.

Your logfile says:

"

9-5-2011 13:31:03.2272633 Information Document was opened successfully

9-5-2011 13:31:03.2272633 Information Opened successfully (0)

9-5-2011 13:31:03.2272633 Information Starting reload

9-5-2011 13:31:03.2428886 Information QlikView->Settings->Document Peferences->Generate Logfile in document is not set.

9-5-2011 13:31:03.2585139 Information The Source Document is being reloaded. DocumentPath=D:\QlikView\QvPortal\Docman rappellijst v1 0.qvw

9-5-2011 13:31:03.2585139 Information The Source Document reload complete.

"

But when it tries to finish it, it fails, so it looks that the document can't be saved or something.

Regards,

Reyman

schultem
Contributor III
Contributor III
Author

No I'm sure that's not the problem. I have generated the documentlog and it says this:

9-5-2011 14:00:10.8233165 Information 9-5-2011 14:00:10:       Error: SQL Error:[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

9-5-2011 14:00:10.8233165 Information 9-5-2011 14:00:10:       SQL State:IM002

So it looks like my service account which is running the QVS is not allowed to user ODBC. I run Qlikview Developer as another user and that works fine.

erichshiino
Partner - Master
Partner - Master

It seems that the user running the service can not 'see' the odbc connection as you suspect.

Check if you create this as a System DSN (datasource) this is the only way the connection can be used by any user on the machine.

Hope it helps,

Erich

Not applicable

Also make sure, that the system user which runs the QV reload task is autorised to perform a databaseread.

else the database will deny access to it.

Regards,

Reyman

Not applicable

Hi,

The Qlikview Server and Qlikview developer are 32 or 64 bits? Client Oracle?

All programs need have some version.

schultem
Contributor III
Contributor III
Author

***

Hi,

The Qlikview Server and Qlikview developer are 32 or 64 bits? Client Oracle?

All programs need have some version.

***

Yes, both are 64 bits.

I am sure the problem is caused by the way I created the odbc connection. Since it is a user dsn the service account does not have privilege on the created user dsn. I asked the server administrator to create a system dsn for me.

Not applicable

I had the same issue and struggled with it for a long time.

I eventually found the solution to my problem hope it helps you as well.

Check that the System DSN "Data Source Name" is exactly the same on both servers.

Start-->Control Panel --> Administrative tools --> Data sources (ODBC) --> System DSN

Select the dataq source , Click configure and check the "Data source Name"

Hope it helps.