web
You’re offline. This is a read only version of the page.
close
Skip to main content
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. 
I have the same question (0)
  • Verified answer
    Arcadi  Profile Picture
    794 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
  • Verified answer
    Alireza Eshaghzadeh Profile Picture
    14,637 Super User 2025 Season 2 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.
     
  • 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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 747 Super User 2025 Season 2

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 743

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 528 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans