Is the com.EikonDesktopDataAPI not available by windows task scheduler?

https://community.developers.refinitiv.com/questions/7522/unable-to-cast-com-object-of-type-system-comobject.html

↑ This is my previous problem, it is solved, thanks to Zhenya Kovalyov.

After I finished implementing the API of Eikon (RtGet , RData, TR), I met another problem, when I execute the program with calling the API by windows task scheduler, the status is always executing and non-stop.

I can make sure the program is ok when I execute stand-alone, but it will be some problems when using task scheduler.

Please refer to my attachment, thanks!!!

eikonbatch.zip

Best Answer

  • Dirk Ho
    Answer ✓

    Please refer to my attachment

    I got the problems, if I use the "Run only when user is logged on", it's ok. but when I use "Run whether user is logged on or not", the batch will freeze.

    task.zip

Answers

  • I can run the application properly when using task scheduler. It created a test.txt file with the following content.

    0-0 : PRIMACT_1
    0-1 : 0.7555
    0-0 :
    0-1 : Moody's Long-term Issuer Rating
    0-2 : Fitch Long-term Issuer Default Rating
    1-0 : AUGV5YUSAQ=R
    1-1 : Aaa
    1-2 : AAA

    Can you export the task so we will know its settings?

    image

  • Same here, I have tested it and it works fine.

  • Tthanks for yours testing, after I reboot the server and the EIKON, it's all ok. Maybe there is something wrong within the server. thank you agian!!!

  • @dirkho it is essential that Eikon can start up or run correctly during the execution of your script. I am not sure that starting up Eikon as a service will work, after all it is a desktop terminal.

    The functionality you are after (take a snapshot of fields and save them into a file) is supported in DataScope Select.

  • Just to confirm what Zhenya said, Eikon cannot possibly work outside of interactive session of Windows. Any application using any APIs currently available in Eikon will only work if the Windows domain account under which the application is running is logged on to the Windows session.

  • thanks, I will use it in interactive mode. this is just a sample, our requirement is doing some comparison and send mail for notification. i'll try the DSS, thanks!!!