Is the oScript.Init path correct on that workstation?
My other dumb thought is that "oBusObj" is somehow conflicting/corrupted with another object, though I don't know how or why that would be workstation-specific. Do you get the same errors if you rename oBusObj to oSO. I have no justification for this, just grasping at straws....
My normal initialization routine is this:
'Create ProvideX COM Object and Session
oScript = 0 ' MAS Primary Object #1
oSession = 0 ' MAS Primary Object #2
Set oScript = CreateObject ("ProvideX.Script")
oScript.Init(strPathRoot & "\Home")
Set oSession = oScript.NewObject("SY_Session")
------------------------------
Steve Iwanowski, NextStep Technology Advisors, aka DSD Lancaster PA ¯\_(ツ)_/¯
------------------------------
Original Message:
Sent: 02-21-2024 16:53
From: Dan Burleson
Subject: Need ideas why a NewObject method starts failing in a proven script
MAS90 Mode gets "Unlock Region Error", second attempt got in to Sage 100, but accessing Sales Order gives errors then more "Unlock Region Error"'s.
------------------------------
Dan Burleson
Software Consultant
Connex Software
Corvallis OR
541-224-6642
------------------------------