This is likely a permissions issue on the destination file share. When you run the ACE module in debug mode it is running with your credentials and permissions. Once the module is registered and executed by the ACE Scheduler it is running with the credentials and permissions of the scheduler service. You will need to make sure that the ACE Scheduler service is running as a domain account that has write permission to the destination location. By default the scheduler runs under a local account such as LOCALSYSTEM.
I apologize for taking so much time to reply, I had differents issues, so I was off of the office for last 3 weeks.
I'm not sure about how to change permissions of ACE Scheduler. So, I tried with differents ways to be sure, that my program had permissions to write on differents locations.
I tried using:
and a few more.
I noticed that I have issues on same code, because I divided my program depending of the schedule I need to send by e-mail and sharing files through the local network. In the first two scheduled times it works good but last shift it failed even the code for sending emails it's identically than the first 2.
I appreciate any help for solving this. I wish that I could explain my problem well.
Thanks in advance,
1 of 1 people found this helpful
To change the permissions of the ACE Scheduler you really need to just change the account under which the PI ACE Scheduler service runs. In your scenario, you would typically change the Windows service to run under a domain account (such as a service account) that has the appropriate permissions (read/write) to the network file share that you want your ACE code to access.
I agree with John, I think first thing to check is that the service account running the PI ACE Scheduler has access to that file share.
I'm not sure if you were aware of this, but with Notifications Rules in PI AF, you can configure emails to be sent based on triggering conditions, and these emails can contain attached files and/or links to PI Vision displays.
You can find more information here in this Youtube playlist: OSIsoft: What are Notifications? - YouTube