In a pickle, and need some MAS warriors to help. We recently moved our SQL server off of our MAS server to a separate server. After the process everything is working properly except our OZlink scripts (That use vbscript and BOIs to push\pull data in and out of UPS worldship) are broke. This routine updates the order with tracking and other information (later on). ProvideX crashes with an error that requires user intervention. Problem Event Name: APPCRASH Application Name: pvxcom.exe Application Version: 9.40.5.0 Application Timestamp: 50492a62 Fault Module Name: StackHash_7fc0 I have isolated to failure to a single line of script (Creation of SO_Invoice_bus) Below is a simplified test script that produces the error (I have included return value notes, and munged some sensative info) On Error Resume Next Dim strComputer strHomeDirectory = "C:\Data\MAS 200 SQL\Version4\MAS90 " Set oScript = CreateObject ("ProvideX.Script") oScript.Init(strHomeDirectory) Set oSS = oScript.NewObject("SY_Session") ‘lasterror is blank retVal = oSS.nSetUser("ShippingX", "shipX") ‘returns 1 retVal = oSS.nLogon() ‘returns 0 and oSS last error is blank retVal = oSS.nSetCompany("XXX") ‘returns 1 retVal = oSS.nSetDate("S/O",”20141113”) ‘returns 1 retVal = oSS.nSetModule("S/O") ‘returns 1 msgbox("Set module retval = " & retVal) TaskID = oSS.nLookupTask("SO_SalesOrder_ui") ‘returns handle 12000000001 retVal = oSS.nSetProgram(TaskID) ‘returns 100009 oSS last error is blank Set oShippingBus = oScript.NewObject("SO_Invoice_bus",oSS) ‘Crashes with err.number of -2147023170 oSS last error is zero length and the message actually cause msgbox() to fail. A couple of things to keep in mind: We are on Sage ERP MAS 200 SQL (version 4.50.7.0) This routine worked for months before the switch. Call to new object for SO_InvoiceTracking_svc, SO_InvoiceTracking_bus succeed just prior to this code I have verified that the account being used has all the authority it needs. ProvideX is working properly for all the 30+ user sessions running on the machine daily I am new to MAS (this issue was dropped in my lap when our MAS consultant threw up his hands) but am a 20+ year .Net developer and network geek. Is there any logging I can turn on? Or something else I can look at to determine the problem? Thanks for taking the time to read this and hopefully helping on this one.
↧