My Oracle Support Banner

Switzerland EAN-13 national id ends in a 0 system rejecting (Doc ID 2567039.1)

Last updated on NOVEMBER 26, 2021

Applies to:

PeopleSoft Enterprise HCM Human Resources - Version 9 to 9 [Release 9]
Information in this document applies to any platform.

Symptoms

On : 9 version, Job / Personal Information

ACTUAL BEHAVIOR
---------------
FUNCLIB_HR_CHE.NATIONAL_ID.FieldFormula errors on the check digit because there isn't any code to handle a national_id ending in 0.


EXPECTED BEHAVIOR
-----------------------
Handle the entry of NI ending in 0

Switzerland uses an EAN-13 check digit which calculates by taking the remainder of the result (sum of evens*3 and odds) divided by 10 (modulo operation).
If the remainder is equal to 0 then use 0 as the check digit, and if not 0 subtract the remainder from 10 to derive the check digit.


So 0 is a valid check digit but not according to the PeopleCode. There needs to be some code to handle having a check digit = 0.

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.