Automatic Currency Rate Update with Job Queue
Jaanu
Member Posts: 44
Hi All,
I was assign to a task of Automatic Currency Rate Update for a client.
I have done the Currency Rate update to Currency Exchange Rate Table by creating CodeUnit, which consumes the rate from the URL http://www.floatrates.com/daily/USD.xml. But When I run job queue with Codeunit for automatic update, I receive error message as
Microsoft Dynamics NAV
Microsoft Dynamics NAV Server attempted to issue a client callback to create an Automation object: afba6b42-5692-48ea-8141-dc517dcf0ef1 (CodeUnit 50010 Currency Rate Updation). Client callbacks are not supported on Microsoft Dynamics NAV Server.
OK
When I search for solution, I found the below information as resolve for the issue. But in my case, that is the main process of my task - Currency rate update in Currency Exchange Rate Table without user interface as mentioned below. Kindly suggest me a solution for the automatic update for Currency rate.
Resolving a web service exception about callback functions
When using Microsoft Dynamics NAV web services, the web service call may return a fault with one of the following messages:
Client callback (such as showing Pages) is not supported when executing custom Web services. <Additional information about the error from the dialog box>
Callback functions are not allowed.
The first error generally occurs because the web service has accessed application code that contains either a Confirm or StrMenu dialog box or a Page type. These types of dialog boxes require user input, which cannot be handled when using the web service. The web service call then includes a detailed message with information from the dialog box, which you can then use to analyze the reason for the callback.
To resolve this error, make sure that the web service call does not call code that contains a Confirm or StrMenu dialog box or a Page type, or modify your Microsoft Dynamics NAV solution to allow data to be inserted or modified without any user interaction.
I was assign to a task of Automatic Currency Rate Update for a client.
I have done the Currency Rate update to Currency Exchange Rate Table by creating CodeUnit, which consumes the rate from the URL http://www.floatrates.com/daily/USD.xml. But When I run job queue with Codeunit for automatic update, I receive error message as
Microsoft Dynamics NAV
Microsoft Dynamics NAV Server attempted to issue a client callback to create an Automation object: afba6b42-5692-48ea-8141-dc517dcf0ef1 (CodeUnit 50010 Currency Rate Updation). Client callbacks are not supported on Microsoft Dynamics NAV Server.
OK
When I search for solution, I found the below information as resolve for the issue. But in my case, that is the main process of my task - Currency rate update in Currency Exchange Rate Table without user interface as mentioned below. Kindly suggest me a solution for the automatic update for Currency rate.
Resolving a web service exception about callback functions
When using Microsoft Dynamics NAV web services, the web service call may return a fault with one of the following messages:
Client callback (such as showing Pages) is not supported when executing custom Web services. <Additional information about the error from the dialog box>
Callback functions are not allowed.
The first error generally occurs because the web service has accessed application code that contains either a Confirm or StrMenu dialog box or a Page type. These types of dialog boxes require user input, which cannot be handled when using the web service. The web service call then includes a detailed message with information from the dialog box, which you can then use to analyze the reason for the callback.
To resolve this error, make sure that the web service call does not call code that contains a Confirm or StrMenu dialog box or a Page type, or modify your Microsoft Dynamics NAV solution to allow data to be inserted or modified without any user interaction.
0
Answers
-
The error message could also be interpreted as if you are using an automation variable in your codeunit. Automations are not supported on the server - only .net variables. So, if you have used the XMLDOM 6.0 automation, then change your code to use the .net XML document instead.Bardur Knudsen
Microsoft - Dynamics NAV0 -
Hi BardurKnudsen,
Thank you. I have done with my task.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 328 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