Job Queue/NAS questions

Djou2424Djou2424 Member Posts: 76
I'm pretty sure the answer is no but I will ask anyway.

We have setup the job queue to run with 2 instances of NAS and loop through multiple companies to run a task.
This is done through a windows scheduler who launches NAS overnight to launch the job queue that calls our function in each company with the 2nd NAS.

The client would like now to be able to also call the same process on demand by pressing a button. I added the code at the bottom of the job queue entry card and the code behind it loops through all the job queue entry and calls the job queue start codeunit. This works fine when they are pressing the button from the Navision client where NAS is installed and configured (same computer that runs the process every night through the windows scheduler)

However, if someone tries to push that button from another computer, they get an error message:
"This message is for C/AL programmers:
The call to member send failed. msxml3.dll returned the following message:
A connection with the server could not be established"

I guess this is because NAS is not installed and configured on the computer from where they are pushing the button.
Am I correct?
Is there a way around it without having to install NAS on every user' computers?

Comments

  • ara3nara3n Member Posts: 9,256
    You need to install MS XMLDom from microsoft site. I think if you install the latest version it will have the older if not, then you need to install version 3.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Djou2424Djou2424 Member Posts: 76
    And how can I install that/where do I find it?

    I looked at one of the computer that is getting the error message listed above, in the system32 folder, and there are a bunch of msxml*.dll files there already.

    Just installing that MS XMLDom will allow them to use the job queue from their computer calling the NAS on the server?
  • ara3nara3n Member Posts: 9,256
    I usually just add a button called Run manually and add the following code
    if type = type::report then
      Report.runmodal("Object ID to Run",false,true,rec)
    else
      CODEUNIT.RUN("Object ID to Run",rec);
    
    
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Djou2424Djou2424 Member Posts: 76
    But this won't work through all the companies setup in the job queue, only the company I'm logged in.

    I want to know if it's doable to run it for all companies from any computer, not only the server where NAS is installed
  • ara3nara3n Member Posts: 9,256
    Do you have a mod to do it for all companies? NAS only runs for one company.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Djou2424Djou2424 Member Posts: 76
    I'm using the job queue and 2 NAS license.
    This is working fine. My only question is, is it possible to run that from another computer by pressing a button, instead of running it on the server where NAS is installed.

    When doing it right now, I get the error listed in my first message.
  • ara3nara3n Member Posts: 9,256
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Djou2424Djou2424 Member Posts: 76
    but if there is already a msxml6.dll in the system32 folder, I guess this is already installed, no?
  • ara3nara3n Member Posts: 9,256
    It's worth a try. You can also install v 3

    http://www.microsoft.com/en-us/download ... px?id=4608
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Djou2424Djou2424 Member Posts: 76
    It didn't make any difference.
    Any other ideas?
  • ara3nara3n Member Posts: 9,256
    Can I see your 2 nas solution? did you use the solution provided on mibuso?

    If yes, In order for the client to run it. They need to have NAS folder locally and you have to change the code to where NAS is installed.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Djou2424Djou2424 Member Posts: 76
    Do I have to install install the NAS folder on the client's computer locally? Or do I have to run it as a service as well?
  • manisharma31manisharma31 Member Posts: 285
    Can't you just skip the calling of jobqueue codeunit and directly call the code which actually does the required task from the client PC, with a new object or saveas the current object and modify it.
    Regards,
    Manish
  • Djou2424Djou2424 Member Posts: 76
    No, the job queue lets you do stuff in multiple companies using 2 nas license instead of calling the changecompany function, which is a lot easier when posting processes are involved.
  • ara3nara3n Member Posts: 9,256
    Djou2424 wrote:
    Do I have to install install the NAS folder on the client's computer locally?
    install nas locally,
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • Djou2424Djou2424 Member Posts: 76
    Installing NAS locally didn't work.
    Any other idea?!?
  • ara3nara3n Member Posts: 9,256
    Get your solution center to take a look at it.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.