7/11/2025 4:33:18 AM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss general administration topics for SalesLogix (including LAN & remote topics). View the code of conduct for posting guidelines.
|
|
|
|
Problem with Agents
Posted: 12 May 08 2:00 AM
|
Hello,
I have a problem with running Agents. I have created Agent that should run a script once a day. But it doesn't work. I've read in help that Agents won't run without Sync Server running. But our synchronization works correctly and it synchronizes every 5 min. Also i've read that Application object can't be used in scripts run under Agents. Is it realy so? It seems to me that we can't do anything without Application object.
What should be done to run Agents? Or if it isn't correct to use Agents to run scripts schedully is there any other way to do that?
Thanks.
P.S. sorry for my english  |
|
|
|
Re: Problem with Agents
Posted: 12 May 08 11:33 PM
|
Hi Alex - your point about using the application object is probably what is causing the problems. You can, in fact, do quite a lot without using the application object - you just have to code around it.
If you provide details of what you are trying to achieve, someone here will probably know how to do it.
Phil |
|
|
|
Re: Problem with Agents
Posted: 13 May 08 11:10 AM
|
Hi Phil,
Thanks for answering.
Since i've writen this post i've changed my Agent. I created .cmd file which runs script (.vbs file). It works correctly - if i run .cmd it moves nescessery files to the speciefied folder. If i run AgentQueue manualy - the Agent works and moves files. But it don't works by schedule. First it has status 'Waiting' then 'Pending' without any action.
I've read that SyncServer should be run manualy at least one time. We did it: stoped SyncService, run Server, run Sync Cycle. But Agents hasn't worked! Even when we started Custom Sync and checked Run all pendinfg Agents, the message was - no Pending Agents. But my Agent has status Pending. It seems to me that i miss somthing but i don't know what. |
|
|
|
Re: Problem with Agents
Posted: 13 May 08 5:40 PM
|
If this is just a file-manipulation script, writing it in VBS and scheduling it via Windows Task Scheduler is a perfectly good way of doing it.
I tend to use DTS/SSIS for jobs like that, just for visibility and ease of use - keeps everything together.
Phil |
|
|
|
Re: Problem with Agents
Posted: 14 May 08 6:33 AM
|
Phil,
thanks for the idea! Using Windows Task Scheduler is possible, but our client doesn't want to use them. The task is to use Agents. Is there any specail that should be done with Agents if synchronization works correctly but they don't? Even if we won't use Agents now, we should make them work to use them in future.
Our task now is: to get files list from the table, check their last modify date, move them to the folder.
What about DTS? Can our task be done with them? |
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|