Job queue error on using Shell

chiosan
Member Posts: 5
Hi everyone 
My client has just upgraded from NAV 2009 classic to NAV2013R2.
And some of the job queue tasks got the error of "Client Callbacks are not supported on Microsoft Dynamics NAV server".
I know the COM automation is not supported and need to use Dotnet.
But I can't find a replacement of the Shell script automation. Can anyone give me a suggestion?
Here's the code using. Many thanks.

My client has just upgraded from NAV 2009 classic to NAV2013R2.
And some of the job queue tasks got the error of "Client Callbacks are not supported on Microsoft Dynamics NAV server".
I know the COM automation is not supported and need to use Dotnet.
But I can't find a replacement of the Shell script automation. Can anyone give me a suggestion?
Here's the code using. Many thanks.
WshShell@1011 : Automation "{F935DC20-1CF0-11D0-ADB9-00C04FD58A0B} 1.0:{72C24DD5-D70A-438B-8A42-98424B88AFB8}:'Windows Script Host Object Model'.WshShell"; WshExec@1009 : Automation "{F935DC20-1CF0-11D0-ADB9-00C04FD58A0B} 1.0:{08FED191-BE19-11D3-A28B-00104BD35090}:'Windows Script Host Object Model'.WshExec"; IF ISCLEAR(WshShell) THEN CREATE(WshShell,FALSE,TRUE); ConsolidatedReportingSetup.GET; IF GUIALLOWED THEN BEGIN ConsolidatedReportingSetup.TESTFIELD("FTP Client Path"); ConsolidatedReportingSetup.TESTFIELD("FTP Log File Path"); ConsolidatedReportingSetup.TESTFIELD("Site Name"); IF FTPDirectory = '' THEN ERROR(Text50030); END; WshExec := WshShell.Exec(ConsolidatedReportingSetup."FTP Client Path" + ' -s -O -site ' + ConsolidatedReportingSetup."Site Name" + ' -u ' + ConsolidatedReportingSetup."BI XML Path" + '*.xml' + ' -p ' + FTPDirectory + ' -log ' + ConsolidatedReportingSetup."FTP Log File Path"); WHILE (FORMAT(WshExec.Status) = '0') DO SLEEP(100); CLEAR(WshExec); CLEAR(WshShell);
0
Answers
-
0
-
ftornero wrote:
Thanks ftornero! It's solved0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions