Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Europe/EU: Exchange rates from "Central Bank of Europe" are incorrectly imported into Microsoft Dynamics AX


This article applies to Microsoft Dynamics AX for all regions.

↑ Back to the top


Symptoms

The exchange rates are being published by the Central Bank of Europe (“ECB”) daily, after 16-00 CET. That means that those rates can be considered as the rates which are valid for the following day. But on “ECB” web site the rates are indicated as valid for the day of announcement. At the same time companies use published rates doing their daily business even before 16-00 CET. In most of case it creates an ambiguous situation with exchange rates the current day.

↑ Back to the top


Resolution

To fix the problem, one day shift is implemented during the import of exchange rates from the Central Bank of Europe to Microsoft Dynamics AX.
The rates published by “ECB” for “Day N” will be imported to Microsoft Dynamics AX as valid from “Day N+1”.

This behavior is considered by Microsoft as covering the most the business scenarios across Europe.

If these changes included in the hotfix don’t fit with current company’s processes, then the fix can be reverted as suggested below. Microsoft provides this code suggestion "as-is" to illustrate possible way for the changes reversion. You bear the risk and understand all the potential consequences of using this code. Microsoft gives no warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability or fitness for a particular purpose.

The following code must be replaced in method TryForUrl (\Visual Studio Projects\C Sharp Projects\exchangerateprovider\Project Content\providers\CentralBankOfEuropeProvider.cs)

     DateTime.TryParseExact(dateString,"yyyy-MM-dd",CultureInfo.InvariantCulture,DateTimeStyles.None,outdateStringParsed);
        if(nextStringDay==DateTime.MinValue)
         {
             nextWorkingDay=getNextWorkingDay(dateStringParsed);
                 if(nextWorkingDay<=DateTime.Today)
                 {
                   dateValue=nextWorkingDay;
                  }
          }
          else
         {
                   dateValue=nextStringDay;
         }
         nextStringDay=dateStringParsed;

With the code:

      DateTime.TryParseExact(dateString,"yyyy-MM-dd",CultureInfo.InvariantCulture,DateTimeStyles.None,outdateValue);
      dateValue=dateValue+TimeSpan.FromDays(1);


Note: the change will make some pieces of code non-used, those can be removed or left as is – per your discretion.

Method TryForUrl

            DateTime nextStringDay = DateTime.MinValue;
            DateTime dateStringParsed;
            DateTime nextWorkingDay;

Method getNextWorkingDay (i.e. it can be removed completely)

        private DateTime getNextWorkingDay(DateTime _date)
        {
            do
            {
                _date = _date + TimeSpan.FromDays(1);
            } while (_date.DayOfWeek == DayOfWeek.Saturday || _date.DayOfWeek == DayOfWeek.Sunday);
            return _date;
        }

↑ Back to the top


Installation information

If you have customizations for one or more of the methods or the tables that are affected by this hotfix, you must apply these changes in a test environment before you apply the hotfix in a production environment.
For more information about how to install this hotfix, click the following article number to view the article in the Microsoft Knowledge Base:
893082 How to install a Microsoft Dynamics AX hotfix

Prerequisites

You must have Microsoft Dynamics AX 2012 R2 installed to apply this hotfix.

Restart requirement

You must restart the Application Object Server (AOS) service after you apply the hotfix.

File information

The global version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
File nameFile versionFile sizeDateTimePlatform
Aximpactanalysis.exeNot Applicable62,14420-Jul-201423:16x86
Axupdate.exeNot Applicable61,61620-Jul-201423:16x86
Dynamicsax2012r2-kb3030992.exe6.3.15.011,786,95229-Jan-201512:56x86
Licensetermsar.rtfNot Applicable2,17320-Jul-201423:16Not Applicable
Licensetermscs.rtfNot Applicable91,24720-Jul-201423:16Not Applicable
Licensetermsda.rtfNot Applicable101,18120-Jul-201423:16Not Applicable
Licensetermsde.rtfNot Applicable116,64220-Jul-201423:16Not Applicable
Licensetermsen.rtfNot Applicable102,37420-Jul-201423:16Not Applicable
Licensetermses.rtfNot Applicable96,98520-Jul-201423:16Not Applicable
Licensetermset.rtfNot Applicable102,89520-Jul-201423:16Not Applicable
Licensetermsfi.rtfNot Applicable106,10120-Jul-201423:16Not Applicable
Licensetermsfr.rtfNot Applicable130,01120-Jul-201423:16Not Applicable
Licensetermshu.rtfNot Applicable93,01020-Jul-201423:16Not Applicable
Licensetermsis.rtfNot Applicable36,45820-Jul-201423:16Not Applicable
Licensetermsit.rtfNot Applicable115,08620-Jul-201423:16Not Applicable
Licensetermsja.rtfNot Applicable105,91720-Jul-201423:16Not Applicable
Licensetermslt.rtfNot Applicable122,67420-Jul-201423:16Not Applicable
Licensetermslv.rtfNot Applicable105,40120-Jul-201423:16Not Applicable
Licensetermsnb-no.rtfNot Applicable115,70020-Jul-201423:16Not Applicable
Licensetermsnl.rtfNot Applicable110,04020-Jul-201423:16Not Applicable
Licensetermspl.rtfNot Applicable116,32220-Jul-201423:16Not Applicable
Licensetermspt-br.rtfNot Applicable101,51420-Jul-201423:16Not Applicable
Licensetermsru.rtfNot Applicable148,57720-Jul-201423:16Not Applicable
Licensetermssv.rtfNot Applicable115,45320-Jul-201423:16Not Applicable
Licensetermsth.rtfNot Applicable153,76820-Jul-201423:16Not Applicable
Licensetermszh-hans.rtfNot Applicable99,24520-Jul-201423:16Not Applicable
Dynamicsax2012r2-kb2858835-foundation.axmodel6.2.1000.367050,41620-Jul-201423:16Not Applicable
Dynamicsax2012r2-kb2909140-foundation.axmodel6.2.1000.474817,13620-Jul-201423:16Not Applicable
Dynamicsax2012r2-kb3030992-foundation.axmodel6.2.1000.983733,00029-Jan-201512:50Not Applicable
Dynamicsax2012r2-kb3030992-fpplabels.axmodel6.2.1000.983719,68829-Jan-201512:50Not Applicable
Dynamicsax2012r2-kb3030992-syplabels.axmodel6.2.1000.983713,957,86429-Jan-201512:49Not Applicable
Axsetupsp.exe6.2.1000.84591,886,88820-Jul-201423:16x86
Axsetupsplib.dll6.2.1000.845980,04820-Jul-201423:16x86
Axsetupui.exe6.2.1000.5369211,63220-Jul-201423:16x86
Axutillib.dll6.2.120.0929,96029-Jan-201512:49x86
Install-dixfservice.ps1Not Applicable19,29829-Jan-201512:49Not Applicable
Microsoft.dynamics.servicing.operations.dll6.2.1000.317441,71220-Jul-201423:16x86
Axsetupsp.resources.dll6.2.147.8303387,76829-Jan-201512:49x86
Axsetupsp.resources.dll6.2.147.8303375,48029-Jan-201512:49x86
Axsetupsp.resources.dll6.2.147.8303375,48029-Jan-201512:49x86
Axsetupsp.resources.dll6.2.147.8303379,57629-Jan-201512:48x86
Axsetupsp.resources.dll6.2.147.8303379,57629-Jan-201512:48x86
Axsetupsp.resources.dll6.2.147.8303371,38429-Jan-201512:49x86
Axsetupsp.resources.dll6.2.147.8303375,48029-Jan-201512:49x86
Axsetupsp.resources.dll6.2.147.8303383,67229-Jan-201512:49x86
Axsetupsp.resources.dll6.2.147.8303395,96029-Jan-201512:49x86
Axsetupsp.resources.dll6.2.147.8303375,48029-Jan-201512:48x86
Axsetupsp.resources.dll6.2.147.8303379,57629-Jan-201512:49x86
Axsetupsp.resources.dll6.2.147.8303387,76829-Jan-201512:49x86
Axsetupsp.resources.dll6.2.147.8303375,48029-Jan-201512:49x86
Axsetupsp.resources.dll6.2.147.8303375,48029-Jan-201512:49x86
Axsetupsp.resources.dll6.2.147.8303375,48029-Jan-201512:49x86
Axsetupsp.resources.dll6.2.147.8303379,57629-Jan-201512:49x86
Axsetupsp.resources.dll6.2.147.8303379,57629-Jan-201512:49x86
Axsetupsp.resources.dll6.2.147.8303379,57629-Jan-201512:49x86
Axsetupsp.resources.dll6.2.147.8303395,96029-Jan-201512:49x86
Axsetupsp.resources.dll6.2.147.8303375,48029-Jan-201512:49x86
Axsetupsp.resources.dll6.2.147.8303416,44029-Jan-201512:48x86
Axsetupsp.resources.dll6.2.147.8303371,38429-Jan-201512:49x86

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained here in is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

↑ Back to the top


Keywords: kbexpertiseinter, kbexpertisebeginner, kbexpertiseadvanced, kbmbspartner, kbmbsquickpub, kbqfe, kbsurveynew, kb, kbnoloc, kbhotfixserver, kbautohotfix, kbmbsmigrate

↑ Back to the top

Article Info
Article ID : 3030992
Revision : 2
Created on : 2/17/2017
Published on : 2/17/2017
Exists online : False
Views : 64