Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL forum
Unanswered

Task Scheduler and Automating SL

Posted on by 4,757

I have a VB app that scripts some SL 2011 SP2 actions running without errors from the command line.

I want to run it via task scheduler but it fails with: 
Did not receive signal from MSDynamicsSL.

It fails at object creation on the line:

dim sivtb as New SIVToolbar

The only search results I get are some SL related items related to disconnecting from RDP. Has anybody else tried this?

 

 

  • Erich Strelow F Profile Picture
    Erich Strelow F 1,642 on at
    RE: Task Scheduler and Automating SL

    I've found this issue a few times. I still don't really get it.

    As I've seen, SL is strictly a 2tier application. The SL client works as a presentation layer only. You can do automation and scheduling, but that means we are talking about a presentation layer on steroids, not really a separated layer where you can instantiate business objects.

    Operating system wise, this means you got to have a Window station to really make things work. The internal messaging between SL executables need this. No Window station, no message pass through. The web apps manage to bypass this

    As a workaround, I setup a separated Application Server to perform the actual tasks. You can still trigger actions through the Application Server task queue. The triggering process can be scheduled and doesn't need the Window Station, but the actual Application Server session does.

    Each task under SL could be classified such as:

    - Doesn't require a Window Station (i.e.: App Server automation, Web service).

    - Requires Window station, but could be minimized or stand by (i.e.: Transaction Import on GL journal, PATRN).

    - Requires a Window station with an active Window. (i.e.: Transaction Import on Purchase Orders)

    Screen customization may change some screens behavior on this.

    As a weird suggestion, watch Inception. Transaction Import, scheduling and automation are all trying to work with a slept SL client and make it work as if an actual user is interacting with it. Sometimes you need to trigger a screen to call on another screen... that's second level dreaming.

  • Butch Adams Profile Picture
    Butch Adams 4,757 on at
    RE: Task Scheduler and Automating SL

    Mark,

    The only answer I came up with is that it will not work without a logged in interactive session. I failed at getting it to run in any way except to log into a console or rdp session and then disconnecting it.

  • Mark E Profile Picture
    Mark E 6,405 on at
    RE: Task Scheduler and Automating SL

    Butch,

    I am about to embark on a similar project, creating some SDK .exes that I wan't to run via Windows Task Scheduler.  Before I get too far, and run into issues, did you ever get this resolved?

    Any tricks to getting the SDK .exe to run?  Mine will be running on a PC with SL already running Process Mgr, so I would think it should be fine.

    Thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans