Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

GetBatchByKey throws exception An ISO 4217 Currency Code must be three characters long; your value is

Posted on by Microsoft Employee

I am using Web Services of GP 2010 to get Batch using ID/Key. It thorows exception and when I look at DynamicsWebServicesExceptionsConsole it shows An ISO 4217 Currency Code must be three characters long; your value is 

Batch.Read18_MoneyAmount(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderBatch.Read26_Batch(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderBatch.Read27_Batch()

Upon googling I saw https://support.microsoft.com/en-us/kb/924546 KB. I see currencies having duplicate ISO currency codes but they are for AUD and Z-AUD currency. What am I supposed to do fix my error?

*This post is locked for comments

  • Bill Campbell Profile Picture
    Bill Campbell 22,647 on at
    RE: GetBatchByKey throws exception An ISO 4217 Currency Code must be three characters long; your value is

    Which machine needed the re-start?

    Good news that it works. Just a follow on question for you to complete the case notes.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GetBatchByKey throws exception An ISO 4217 Currency Code must be three characters long; your value is

    Interestingly, the issue is resolved now. Machine restart did the trick, I guess.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: GetBatchByKey throws exception An ISO 4217 Currency Code must be three characters long; your value is

    Hi Bill,

    select CURNCYID, CURRNIDX, ISOCURRC from DYNAMICS..MC40200

    CURNCYID CURRNIDX ISOCURRC
    Z-AUD 1000 ZAU
    Z-C$ 1001 ZCD
    Z-DM 1002 DKK
    Z-NZD 1003 ZNZ
    Z-SA 1004 ZAR
    Z-SGD 1005 ZSG
    Z-UK 1006 ZGB
    Z-US$ 1007 ZUS
    HKD 1008 HKD
    AUD 1009 AUD
    USD 1010 USD
    SGD 1011 SGD
    NZD 1012 NZD


    select FUNLCURR, FUNCRIDX from MC40000

    FUNLCURR FUNCRIDX
    AUD 1009

    Above query output does not show any duplicate Currency Code.

    Thanks,

    Sai

  • Suggested answer
    Bill Campbell Profile Picture
    Bill Campbell 22,647 on at
    RE: GetBatchByKey throws exception An ISO 4217 Currency Code must be three characters long; your value is

    If memory servers correctly, you have to have a 'unique three' digit code for each currency, regardless of the fact that one is Z-AUD and the other is AUD.

    Which one you use, make the correct ISO, the other, chose 3 digits (not already used)

    Let us know if that resolves.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans