tektip011266
Technical User
Hello All,
I'm new to the boards and very light with my understanding of Avaya CMS Supervisor, please pardon my ignorance as I muddle through this problem.
The problem is we can MANUALLY run this new report and produce a text file with no issues BUT when we try to create a 'Automatic script (*.acsauto') it won't work. You can open or double click on this Automatic script but nothing much happens and of course we don't have a text file created. We do have 3 automatic scripts that have worked off this Avaya switch and with upgraded versions and have for years but anytime we try to create a new script from a new report we can't get them to run automatically. Ultimately we'll place these jobs in a scheduler. FYI, we left the original reports alone in Avaya that do work but we tried to clone them and add additional fields as needed but this hasn't worked. Additionally we've try to clone the scripts that have worked for years and just substitute the report names as needed, this hasn't worked either.
If it's off any value below is the code with-in this script that won't work, the skill range isn't an issues and they work with other automated jobs:
'LANGUAGE=ENU
'SERVERNAME=t-###-cms2
Public Sub Main()
'## cvs_cmd_begin
'## ID = 2001
'## Description = "Report: Historical: Designer: ###CMD *** Daily Dashboard Data V5: Export Data"
'## Parameters.Add "Report: Historical: Designer: ###CMD *** Daily Dashboard Data V5: Export Data","_Desc"
'## Parameters.Add "Reports","_Catalog"
'## Parameters.Add "2","_Action"
'## Parameters.Add "1","_Quit"
'## Parameters.Add "Historical\Designer\###CMD *** Daily Dashboard Data V5","_Report"
'## Parameters.Add "1","_ACD"
'## Parameters.Add "780","_Top"
'## Parameters.Add "2145","_Left"
'## Parameters.Add "23910","_Width"
'## Parameters.Add "11175","_Height"
'## Parameters.Add "default","_TimeZone"
'## Parameters.Add "The report Historical\Designer\###CMD *** Daily Dashboard Data V5 was not found on ACD 1.","_ReportNotFound"
'## Parameters.Add "*","_BeginProperties"
'## Parameters.Add "1-900","Splitt(s)"
'## Parameters.Add "-1","Date(s);"
'## Parameters.Add "*","_EndProperties"
'## Parameters.Add "*","_BeginViews"
'## Parameters.Add "*","_EndViews"
'## Parameters.Add "K:\%%%\Short_Calls\xx_DTC_***.txt","_Output"
'## Parameters.Add "9","_FldSep"
'## Parameters.Add "0","_TextDelim"
'## Parameters.Add "True","_NullToZero"
'## Parameters.Add "True","_Labels"
'## Parameters.Add "True","_DurSecs"
On Error Resume Next
cvsSrv.Reports.ACD = 1
Set Info = cvsSrv.Reports.Reports("Historical\Designer\###CMD *** Daily Dashboard Data V5")
If Info Is Nothing Then
If cvsSrv.Interactive Then
MsgBox "The report Historical\Designer\###CMD *** Daily Dashboard Data V5 was not found on ACD 1.", vbCritical Or vbOKOnly, "Avaya CMS Supervisor"
Else
Set Log = CreateObject("ACSERR.cvsLog")
Log.AutoLogWrite "The report Historical\Designer\###CMD *** Daily Dashboard Data V5 was not found on ACD 1."
Set Log = Nothing
End If
Else
b = cvsSrv.Reports.CreateReport(Info,Rep)
If b Then
Rep.Window.Top = 780
Rep.Window.Left = 2145
Rep.Window.Width = 23910
Rep.Window.Height = 11175
Rep.TimeZone = "default"
Rep.SetProperty "Splitt(s)","1-900"
Rep.SetProperty "Date(s);","-1"
b = Rep.ExportData("K:\%%%\Short_Calls\xx_DTC_***.txt", 9, 0, True, True, True)
Rep.Quit
If Not cvsSrv.Interactive Then cvsSrv.ActiveTasks.Remove Rep.TaskID
Set Rep = Nothing
End If
End If
Set Info = Nothing
'## cvs_cmd_end
End Sub
Any help or suggestions that anyone could offer would be appreciated. My telecom folks are trying to work with Avaya directly on this issue and I've been ask to find other avenues of help.
Thank you.
I'm new to the boards and very light with my understanding of Avaya CMS Supervisor, please pardon my ignorance as I muddle through this problem.
The problem is we can MANUALLY run this new report and produce a text file with no issues BUT when we try to create a 'Automatic script (*.acsauto') it won't work. You can open or double click on this Automatic script but nothing much happens and of course we don't have a text file created. We do have 3 automatic scripts that have worked off this Avaya switch and with upgraded versions and have for years but anytime we try to create a new script from a new report we can't get them to run automatically. Ultimately we'll place these jobs in a scheduler. FYI, we left the original reports alone in Avaya that do work but we tried to clone them and add additional fields as needed but this hasn't worked. Additionally we've try to clone the scripts that have worked for years and just substitute the report names as needed, this hasn't worked either.
If it's off any value below is the code with-in this script that won't work, the skill range isn't an issues and they work with other automated jobs:
'LANGUAGE=ENU
'SERVERNAME=t-###-cms2
Public Sub Main()
'## cvs_cmd_begin
'## ID = 2001
'## Description = "Report: Historical: Designer: ###CMD *** Daily Dashboard Data V5: Export Data"
'## Parameters.Add "Report: Historical: Designer: ###CMD *** Daily Dashboard Data V5: Export Data","_Desc"
'## Parameters.Add "Reports","_Catalog"
'## Parameters.Add "2","_Action"
'## Parameters.Add "1","_Quit"
'## Parameters.Add "Historical\Designer\###CMD *** Daily Dashboard Data V5","_Report"
'## Parameters.Add "1","_ACD"
'## Parameters.Add "780","_Top"
'## Parameters.Add "2145","_Left"
'## Parameters.Add "23910","_Width"
'## Parameters.Add "11175","_Height"
'## Parameters.Add "default","_TimeZone"
'## Parameters.Add "The report Historical\Designer\###CMD *** Daily Dashboard Data V5 was not found on ACD 1.","_ReportNotFound"
'## Parameters.Add "*","_BeginProperties"
'## Parameters.Add "1-900","Splitt(s)"
'## Parameters.Add "-1","Date(s);"
'## Parameters.Add "*","_EndProperties"
'## Parameters.Add "*","_BeginViews"
'## Parameters.Add "*","_EndViews"
'## Parameters.Add "K:\%%%\Short_Calls\xx_DTC_***.txt","_Output"
'## Parameters.Add "9","_FldSep"
'## Parameters.Add "0","_TextDelim"
'## Parameters.Add "True","_NullToZero"
'## Parameters.Add "True","_Labels"
'## Parameters.Add "True","_DurSecs"
On Error Resume Next
cvsSrv.Reports.ACD = 1
Set Info = cvsSrv.Reports.Reports("Historical\Designer\###CMD *** Daily Dashboard Data V5")
If Info Is Nothing Then
If cvsSrv.Interactive Then
MsgBox "The report Historical\Designer\###CMD *** Daily Dashboard Data V5 was not found on ACD 1.", vbCritical Or vbOKOnly, "Avaya CMS Supervisor"
Else
Set Log = CreateObject("ACSERR.cvsLog")
Log.AutoLogWrite "The report Historical\Designer\###CMD *** Daily Dashboard Data V5 was not found on ACD 1."
Set Log = Nothing
End If
Else
b = cvsSrv.Reports.CreateReport(Info,Rep)
If b Then
Rep.Window.Top = 780
Rep.Window.Left = 2145
Rep.Window.Width = 23910
Rep.Window.Height = 11175
Rep.TimeZone = "default"
Rep.SetProperty "Splitt(s)","1-900"
Rep.SetProperty "Date(s);","-1"
b = Rep.ExportData("K:\%%%\Short_Calls\xx_DTC_***.txt", 9, 0, True, True, True)
Rep.Quit
If Not cvsSrv.Interactive Then cvsSrv.ActiveTasks.Remove Rep.TaskID
Set Rep = Nothing
End If
End If
Set Info = Nothing
'## cvs_cmd_end
End Sub
Any help or suggestions that anyone could offer would be appreciated. My telecom folks are trying to work with Avaya directly on this issue and I've been ask to find other avenues of help.
Thank you.