Skip to content

Limitation in RegionCode Pattern results in failure while BPN Generation #121

@sourabhpatil178

Description

@sourabhpatil178

With upgrade to Tractus-X 23.12 release, we are not able to onboard a new company into Portal as the Registration Service does not supports adding RegionCode/regionPattern for eg. DE-BY codes
According to regionPattern defined as /^[a-zA-Z0-9,"\s()']*$/ we can add Region as DEBY or DE BY or empty value, etc but it eventually results in failure at BPN Generation, since this region code is not defined/accepted in the BPDM Pool regions.
Thus, a new company onboarding results in failure.

Current Behavior

With Portal 1.7.0 release (Registration: 1.5.4) it is not possible to add region code in format like DE-BY.

image

Instead, we can pass/store the region code as: “DEBY” or “DE BY” .
And that’s what is causing the issue while Generating the BPN in the BPDM Pool.

Since we have passed the region code as: “DEBY” or “DE BY”, the BPDM fails to create a Legal Entity in BPDM Pool, with following error:

image

image

And if we pass empty region code, we get below error:

image image

For region as Berlin:

image

The BPDM release 3.1.2, now has region codes as:

image

Expected Behavior

Registration form should accept region DE-BY as valid entry and pass the same to Portal-backend (/api/registration/application/{application_id}/companyDetailsWithAddress)

image

It would be nice if we modify the regex as valid regionPattern to something like ^[a-zA-Z0-9,-"\s()']*$ which will allow region code with example like DE-BY

Tractus-x release: 23.12

Portal: 1.7.0
BPDM: 3.1.2

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

Status

IN PROGRESS

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions