SAP Knowledge Base Article - Public

2727036 - Tax number is invalid - Error When Replicating Business Partners for Country Spain


You replicate business partners from SAP ERP to SAP Cloud for Customer (C4C) where the business partner's tax number category code belongs to Spain (ES). The message leaves your ERP system, but fails with the below error in C4C:

'Tax number is invalid'


SAP Cloud for Customer

Reproducing the Issue

Send a business partner with spanish tax number category code from ERP to C4C using interface: BusinessPartnerERPReplicationIn.

Observe the message in Administrator work center > General Settings view > Web Service Message Monitoring. The message fails with 'Tax number is invalid ' error.


The fiscal identification number for a Spanish person/company would be their DNI plus a letter, or a letter, seven digits and a check letter for the rest of


For more details about the NIF, please, check the following site (it is in Spanish): acion/NIF_de_personas_fisicas.shtml

The law that explains the composition of the NIF is Real Decreto 338/1990, article 2.

The NIF provided in the failed payload is not a valid one.


To correct the issue, you should fill the field <PartyTaxID> with a valid NIF.


Tax number is invalid, Spain, Tax number , KBA , LOD-CRM-INT-ERP , Integration of C4C with ERP , How To


SAP Cloud for Customer add-ins all versions