Symptom
 Check Digit Calculation for new 13 digit Swiss Social Insurance Number
 Warning Message Displayed on New hire
Environment
SAP SuccessFactors Employee Central  National Id
Cause
This AHV number, it is a unique identification number that is centralized at the federal level and issued by the Swiss Compensation Office in Geneva (CCO). The AHV Number is systematically used for social security matters but it can  to a limited extent  also be used for other purposes (i.e. for tax matters, the military administration, education), the new 13digit social insurance number format has been used from 01Jul2008.
The deep validation algorithm for AHV of CHE has been implemented as of the 1808 release.
Resolution
Deep Validation National ID  AHV/AVS NUMBER
The existing validation for the AHV/AVS NUMBER of Switzerland:
The whole number consists of 13 digits, no other character types allowed.
 The 1^{st} to 3^{rd} digits must be 756, which is the ISO code for Switzerland
 The 6^{th} to 12^{th} digits are a generated number to identify the person
 The 13^{th} digit is a check digit following the validation algorithm of EAN13
Validation Algorithm of EAN13:
 Multiply the digits in the oddnumbered positions (1^{st}, 3^{rd}, 5^{th}, 7^{th}, 9^{th}, 11^{th}) by 1 and add the values to get the sum (1).
 Multiply the digits in the evennumbered positions (2^{nd}, 4^{th}, 6^{th}, 8^{th}, 10^{th}, 12^{th}) by 3 and add the values to get the sum (2)
 Add the results together (sum 1 and sum 2) as final sum.
 Take the remainder of the final sum divided by 10 (modulo operation) as check digit. If the remainder is 0, the check digit would be 0.
The following table gives an example to illustrate how a check digit works
Positions 
No.1 
No.2 
No.3 
No.4 
No.5 
No.6 
No.7 
No.8 
No.9 
No.10 
No.11 
No.12 
No.13 
Number without Check Digit 
7 
5 
6 
1 
0 
4 
1 
5 
0 
0 
2 
1 

Multiply by 
1 
3 
1 
3 
1 
3 
1 
3 
1 
3 
1 
3 

Result for oddnumbered positions 
7 

6 

0 

1 

0 

2 


Result for evennumbered positions 

15 

3 

12 

15 

0 

3 

Final sum 
7+15+6+3+0+12+1+15+0+0+2+3=64 


Remainder of final sum divided by 10 
7064=6 


Number with Check Digit 
7 
5 
6 
1 
0 
4 
1 
5 
0 
0 
2 
1 
6 
Keywords
Switzerland, National ID, Deep Validation, Insurance, Certificate, Number, Failed, Error, the check digit in the national id of type, for country/region is not valid, please correct your entry, , KBA , LODSFECPERNAT , National ID  Config, Rules, RBP, UI , Problem