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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

mail macro not working on scheduling.

Hi all,

I have written macro for mailing. When i reload manually or do test it works and send mail.

but when i schedule, its not able to sned mail.Because it opens document in safe mode.

I have set module security and local security both to "Allow system acess" but still it resets to "safe mode".

What could be the prob?

19 Replies
amars
Specialist
Specialist

Hi Monica,

If you are scheduling it on Qlikview Server, it won't work since post Qlikview 10 the macro's on reload doesn't work on Qlikview Server. You can try scheduling a batch file.

Thanks..

vikasmahajan

PFA for Scheduling and running Macros.

Hope this helps you a lot

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
vikasmahajan

Also find screens for scheduling jobs.

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Not applicable
Author

Hi Michael,

i am scheduling batch file only.

Do i have to check "macro override secuirty" in secuirty tab ?

amars
Specialist
Specialist

Yes Monica, you can enable that option.

Also try enabling User Preferences -> Security -> Module (Allow Createobject and File Access)


Not applicable
Author

Hi Vikas,

I have done everything but still facing same prob. when i reload manually ,am getting mails but in case of sheduled batch file ,mails are not coming.

Need help..

vikasmahajan

Please check whether log file is generated after scheduled. Also check following setting in your documents

Requested Module Security -> System Access

Curr. Local Security -> Allow Sys access

also Setting -> Document Properties -> untick macro override Security option

also setting -> user Pref. -> Save After Reload

Hope this helps you

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Not applicable
Author

Hi Monica,

Plz use this code for schedule this Macro Application.

"C:\Program Files\QlikView\qv.exe "  /l /NoSecurity "D:\New Folder\Pending_Summary.qvw"

use /l instead of /r ....then macro will run automatically & Mail too......try it

Thanks & Regards,

Parag Patil

Not applicable
Author

thnx parag..will try this..