Is it possible to execute a Dataport from the Job Queue ?
Tarek_Demiati
Member Posts: 112
I've got a customer for which I've developped a bunch of dataports for
importing and exporting data.
I've tried to automatized the import/export by setting up the Job Queue
module, however I ran into a silly problem, the job queue is returning me
the following error :
"You cannot use C/AL variables of type DATAPORT when running the Microsoft
Dynamics NAV Application Server."
From the job queue I did setup Codeunit X to be scheduled, and it's within
Codeunit X that Dataport Y is executed ...
My main constraints are that the dataports import quite complicated file
structure and it took me 3 months to develop and test, so I can't really
tell my customer that we must through away all this work ...
How come the Job Queue(Version 5) is not able to perform what the Job
Scheduler(Version 4) was able to do which is scheduling a dataport ? Sure being able to run as a service is an upgrade compared to V4 ...
Does anyone know if there's a work around to this problem ?
importing and exporting data.
I've tried to automatized the import/export by setting up the Job Queue
module, however I ran into a silly problem, the job queue is returning me
the following error :
"You cannot use C/AL variables of type DATAPORT when running the Microsoft
Dynamics NAV Application Server."
From the job queue I did setup Codeunit X to be scheduled, and it's within
Codeunit X that Dataport Y is executed ...
My main constraints are that the dataports import quite complicated file
structure and it took me 3 months to develop and test, so I can't really
tell my customer that we must through away all this work ...
How come the Job Queue(Version 5) is not able to perform what the Job
Scheduler(Version 4) was able to do which is scheduling a dataport ? Sure being able to run as a service is an upgrade compared to V4 ...
Does anyone know if there's a work around to this problem ?
0
Comments
-
-
You can move the code to a process only report so the Job Queue can be used.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
matttrax wrote:Have you tried calling a codeunit that calls the dataport in OnRun?
Yes it does not work either0 -
Yes I could, but since there are a dozen of dataports and considering the time constraints I have, I won't be able to convert everything.
For now on I will just install the the Job Scheduler.
I think I will no longer use dataport and develop my own mapping tool, so I've got a good generic tool that will simulate what the dataport was good for (setting the delimiter, fixe/variable lengh ...)
Many of my customers are asking me about using the Job Queue, unfortunatly many of them have got zillions of middle aged dataports ...Alex Chow wrote:You can move the code to a process only report so the Job Queue can be used.0 -
Why not use XML ports. You should be able ot find software that converts CSV to XML easy enough.David Singleton0
-
Sorry, but the NAS can't run Dataports. A Client which run the job sheduler can rund dataports (because the GUID)
so, if you need to import / export Datas use a report / Codeunit or XMLPort.
RegardsDo you make it right, it works too!0 -
Yep, the job scheduler will be able to run dataports. However, job scheduler is not available in version 5.x so I'm assuming you need to do some code merging to get the granule in there.
If so, you're probably better off just migrating the dataports into reports that WRITE into a file. I highly doubt that MSFT will add dataports to be able to run in Job Queue anytime soon.Confessions of a Dynamics NAV Consultant = my blog
AP Commerce, Inc. = where I work
Getting Started with Dynamics NAV 2013 Application Development = my book
Implementing Microsoft Dynamics NAV - 3rd Edition = my 2nd book0 -
Have you tried to run the Job Queue Dispacher codeunit instead of using NAS? The drawback is you have to keep one active session for this method.0
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
- 322 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

