question

Upvotes
Accepted
3 0 0 2

Exception Type='OmmInaccessibleLogFileException', Text='Failed to open emaLog_xxxxx.log'

Hi,

A price feed program is built and run properly. However, when I set a window schedule to run the exe it throw an exception - Exception Type='OmmInaccessibleLogFileException', Text='Failed to open emaLog_xxxxx.log'...

Any idea about it ?

Thanks and regards,

Jason

elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Hello @jason.ng

What EMA edition that you are using? Is it C/C++ or Java?

Upvote
Accepted
20.3k 73 10 20

Hi @jason.ng

My initial thought would be that this is some kind of Windows permissions issue.

Have you confirmed which windows user account this scheduled task is executed with?

Try explicitly setting the user - when creating your task.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Issue fixed by setting to run the exe as administrator. Thx

Upvote
4.4k 10 6 9

Hi @jason.ng

This could also be the current directory issue.

Some versions of Task Scheduler will run the application in C:\Windows\System32, which prevents EMA from creating the log file.

You have to either set the "Start in" option of your task, or specify the log file location in EMA config.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

issue fixed~Thanks a lot~

Click below to post an Idea Post Idea