Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Error - Bank account number must be 20 digits (Spain)

(0) ShareShare
ReportReport
Posted on by 27
Hello Community, I am experiencing an issue in D365FO regarding the entry of the IBAN code for a customer. The customer's IBAN is Spanish, which consists of 24 digits. The current structure of IBANs in the /Cash and bank management//Setup/Iban structure module suggests the following configurations:
 
As can be seen from the screenshot above, the IBAN code must be 24 characters long (and no problem here). In addition, the account number must start at the 15th digit (inclusive) and be 10 digits long: this is where my problem arises. 
When I enter the /bank account number/ in the /Vendor bank accounts/ section, I enter the 10 digits but the system tells me there is an error as I should enter 20 digits. I have tried deleting the address, and the problem would seem to be bypassable, but this may ineffect then in the future with my client's operation. 
If any of you had the same problem as me, please ask how you solved it, without deleting the address. 
Thank you very much in advance for your answers. 
  • Community member Profile Picture
    2 on at
    Error - Bank account number must be 20 digits (Spain)
    Hey all,
     
    so as I think "Arcadi" is right by saying
     
    "IBAN = ES + XX + CCC
    Where XX are control digits and CCC the account number"
     
    but Spain additionally has the two check digits inside the CCC, which are not part of the *bank account Number* nor the *Bank routing number* so the field validation may only count 18 digits instead of the 20 
     
    Did you find a way out? The only chance I see is to change the ESP IBAN structure by saying the two controll digits are part of the Bank account number to increase the excepted digits to 12 - which is actually false
  • Verified answer
    Alireza Eshaghzadeh Profile Picture
    13,585 Super User 2025 Season 1 on at
    Error - Bank account number must be 20 digits (Spain)
    .Hi Antonio,
    We have the same challenge for Norway and we have resolved the issue by rectifying "Account number start position", "Account number length", "Routing number start position", and "Routing number length" on IBAN structure.
     
  • Verified answer
    Arcadi  Profile Picture
    786 on at
    Error - Bank account number must be 20 digits (Spain)
    In Spain Bank Accounts have 20 positions while IBANs 24
     
    IBAN = ES + XX + CCC
    Where XX are control digits and CCC the account number
     
    The CCC is 
    AAAABBBBYY0000000000
     
    Where As are Bank number, Bs are Bank office number, Ys are control digits and 0s the "account number". 
     
    And you never use the "account number" (10) by itself, you use either the IBAN or the CCC

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,278 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,011 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans