Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
lalitinmbd
Partner - Contributor III
Partner - Contributor III

Reload Failed through Scheduler.

Dear All,

I am working on QlikView 10 SR3 (64 bit) which is installed on Windows Server 2008 R2(64 bit)

and i am extracting the data from the SQL Server which is installed on 32 bit machine. When i

extract the data from the database by manually reloading the application it works perfectly. But when

i run the application through the windows schedular or through QV Server reload fails. Do anyone have any

Idea why i am facing tis problem.

Thanx In Advance.

12 Replies
sbaldwin
Partner - Creator III
Partner - Creator III

Hi, it may be an obvious one but what username are you using in your connection, is it trusted? if so does the service account have permissions to the database?

Thanks

Steve

lalitinmbd
Partner - Contributor III
Partner - Contributor III
Author

Yes the username i am using in connection string is trusted one

and have permissions to the database.

When i manually run the extraction application it runs perfectly.

If there is problem in the permissions or username then it should not reload

manually also.

Thanks

Lalit

sbaldwin
Partner - Creator III
Partner - Creator III

so are you saying that the account you are logging on and reloading is the same one that is running your publisher service?

Thanks

Steve

lalitinmbd
Partner - Contributor III
Partner - Contributor III
Author

yes i am using the same account.

But i am reloading the Applications through batch file that is scheduled through

windows scheduler. I am not using QlikView Publisher.

sbaldwin
Partner - Creator III
Partner - Creator III

have you put logging on the document? what is in that after a failed reload?

I would just try using a SQL account to log on as this has solved these sorts of issues for me in the past.

Thanks

Steve

lalitinmbd
Partner - Contributor III
Partner - Contributor III
Author

It gives an error Unexpected end of data and mostly it fails at one transaction table

that contains the transactional data of the invoices raised..

vijay_iitkgp
Partner - Specialist
Partner - Specialist

Please check in windows task scheduler is there any qv.exe is still running. if yes then kill it and then try to run with scheduler.

regards

vijay

lalitinmbd
Partner - Contributor III
Partner - Contributor III
Author

There is no qv.exe running in task schedular.

I have scheduled the Application reload through

QlikView Server when extraction process takes

place a qvb.exe runs.

I have written a subroutine to store and drop which is below

set SchedulePathMaster="D:\Qlikview\QVD\Stage0\Xplore-XploreNepal\Master";

set SchedulePathTransaction="D:\Qlikview\QVD\Stage0\Xplore-XploreNepal\Transaction";

sub StoreAndDrop (pathname, tablename)

          Store $(tablename) into $(pathname)\$(tablename).qvd;

          drop table $(tablename);

end sub

And the script of the table where reload fails is

Let Starttime=now();

ACT_VoucherLine:

SQL SELECT *

FROM Xplor.dbo."ACT_VoucherLine";

let endtime=now();

let ACT_VoucherLine=noofrows('ACT_VoucherLine');

CALL StoreAndDrop '$(SchedulePathTransaction)', 'ACT_VoucherLine';

load * inline

[

TableName,StartTime,EndTime,NoofRows

ACT_VoucherLine,'$(Starttime)','$(endtime)','$(ACT_VoucherLine)'

];

Mostly reload fails at this table all other tables are fetched and stored perfectly.

vijay_iitkgp
Partner - Specialist
Partner - Specialist

Why are you not using bacekets while calling subroutine.

CALL StoreAndDrop('$(SchedulePathTransaction)', 'ACT_VoucherLine');

Regards

Vijay