NewObject Error: 200 on new workstation

SOLVED

I have a script that has been running for years to verify login credentials in Sage. I just setup a new workstation and am getting the following error when running this script.

Error: <NewObject Error: 200>

Below is the code leading up to this. It's erroring on the last line.

Set oScript = CreateObject("ProvideX.Script")
oScript.Init("\\10.0.0.206\Sage\MAS90\Home")
Set oSS = oScript.NewObject("SY_Session")

Does anyone have any idea what could be causing this?

Parents Reply Children
  • 0 in reply to dmilner

    i doubt the lack of the DSN is the issue since you are actually specifying the path.

    I don't have much experience dealing with the SQL version of sage 100 and so i don't know what components are required for an external script to be able to start the SY_Session class

    Typically, the first thing to check is the path, then making sure that the company you want to access has the "Allow External Access" check box checked under Company Maintenance. 

    Can you launch sage 100 normally from the new workstation and perform tasks like item inquiry or sales order entry?

  • 0 in reply to David Speck

    Yes, Sage launches and I don't have any issues performing any tasks.