# 7.2. Create missing address process

[![create missing address process.png](https://doc.rncv.lu/uploads/images/gallery/2025-10/scaled-1680-/create-missing-address-process.png)](https://doc.rncv.lu/uploads/images/gallery/2025-10/create-missing-address-process.png)

<table class="simple-table" id="bkmrk-name-create-missing-" style="width: 100%; height: 319px;"><thead class="simple-table-header"><tr id="bkmrk-name-create-missing--1" style="height: 29px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-name" style="width: 18.354901%; height: 29px;">Name</th><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-create-missing-addre" style="width: 81.645099%; height: 29px;">Create Missing Address Request</th></tr></thead><tbody><tr id="bkmrk-purpose-allow-editor" style="height: 45px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-purpose" style="width: 18.354901%; height: 45px;">**Purpose**</th><td class="align-left" id="bkmrk-allow-editors-to-add" style="width: 81.645099%; height: 45px;">Allow Editors to add missing addresses to the system, so that they are not blocked during the data ingestion processes.</td></tr><tr id="bkmrk-linked-user-stories-" style="height: 20px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-linked-user-stories" style="width: 18.354901%; height: 20px;">**Linked user stories**</th><td class="align-left" id="bkmrk-4.28.-editor---creat" style="width: 81.645099%; height: 20px;">[4.28. Editor - Create temporary address](https://doc.rncv.lu/books/architecture-documentation/page/428-editor-create-temporary-address "4.28. Editor - Create temporary address")</td></tr><tr id="bkmrk-apis-used-post-%2Faddr" style="height: 29px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-apis-used" style="width: 18.354901%; height: 29px;">**APIs used**</th><td class="align-left" id="bkmrk-post-%2Faddresses" style="width: 81.645099%; height: 29px;">POST /addresses</td></tr><tr id="bkmrk-scope-this-process-o" style="height: 77px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-scope" style="width: 18.354901%; height: 77px;">**Scope**</th><td class="align-left" id="bkmrk-this-process-only-ha" style="width: 81.645099%; height: 77px;">This process only handles the creation of the address in a temporary state. This state will allow the Editors to enter data into the vertical cabling database for that temporary address.   
  
The process of validating and approving the temporary addresses is out of the scope of this process.</td></tr><tr id="bkmrk-roles-organisation-e" style="height: 29px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-roles" style="width: 18.354901%; height: 29px;">**Roles**</th><td class="align-left" id="bkmrk-organisation-editor%2C" style="width: 81.645099%; height: 29px;">Organisation Editor, System</td></tr><tr id="bkmrk-input---address-%28man" style="height: 45px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-input" style="width: 18.354901%; height: 45px;">**Input**</th><td class="align-left" id="bkmrk---address-%28mandatory" style="width: 81.645099%; height: 45px;">- address (mandatory)  
- site structure, including site → blocks → units (optional)</td></tr><tr id="bkmrk-output---temporary-a" style="height: 45px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-output" style="width: 18.354901%; height: 45px;">**Output**</th><td class="align-left" id="bkmrk---temporary-address-" style="width: 81.645099%; height: 45px;">- temporary address  
- the given site structure or the default one if not structure was provided</td></tr></tbody></table>

## Detailed Process description

### Main process

<table class="simple-table" id="bkmrk-step-description-act" style="width: 100%; height: 802px;"><thead class="simple-table-header"><tr id="bkmrk-step-description-act-1" style="height: 29px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-step" style="width: 5.959476%; height: 29px;">Step</th><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-description" style="width: 23.599523%; height: 29px;">Description</th><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-actor%28s%29" style="width: 8.820024%; height: 29px;">Actor(s)</th><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-input%28s%29" style="width: 15.613826%; height: 29px;">Input(s)</th><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-output%28s%29" style="width: 16.686532%; height: 29px;">Output(s)</th><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-decision-points" style="width: 29.32062%; height: 29px;">Decision points</th></tr></thead><tbody><tr id="bkmrk-1-an-editor-sends-a-" style="height: 77px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-1" style="width: 5.959476%; height: 77px;">**1**</th><td class="" id="bkmrk-an-editor-sends-a-%E2%80%9Cc" style="width: 23.599523%; height: 77px;">An Editor sends a “create address request”.</td><td class="" id="bkmrk-editor" style="width: 8.820024%; height: 77px;">Editor</td><td class="" id="bkmrk---address-%28mandatory-1" style="width: 15.613826%; height: 77px;">- Address (mandatory)  
- Site structure (optional)</td><td class="" id="bkmrk--" style="width: 16.686532%; height: 77px;">-</td><td class="" id="bkmrk--1" style="width: 29.32062%; height: 77px;"></td></tr><tr id="bkmrk-2-the-system-checks-" style="height: 109px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-2" style="width: 5.959476%; height: 109px;">**2**</th><td class="" id="bkmrk-the-system-checks-if" style="width: 23.599523%; height: 109px;">The system checks if the address already exists</td><td class="" id="bkmrk-system" style="width: 8.820024%; height: 109px;">System</td><td class="" id="bkmrk---address-%28mandatory-2" style="width: 15.613826%; height: 109px;">- Address (mandatory)  
- Site structure (optional)</td><td class="" id="bkmrk---yes-%2F-no" style="width: 16.686532%; height: 109px;">- yes / no</td><td class="" id="bkmrk-if-the-address-does-" style="width: 29.32062%; height: 109px;">**If the address does not exist:**  
- the ingestion process continues (Step 3)  
**If the address exists:**  
- An error is returned (E.1. Address exists)</td></tr><tr id="bkmrk-3-the-system-checks-" style="height: 125px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-3" style="width: 5.959476%; height: 125px;">**3**</th><td class="" id="bkmrk-the-system-checks-if-1" style="width: 23.599523%; height: 125px;">The system checks if their are high confidence matches (e.g. potential spelling mistakes in the street / locality)</td><td class="" id="bkmrk-system-1" style="width: 8.820024%; height: 125px;">System</td><td class="" id="bkmrk---address" style="width: 15.613826%; height: 125px;">- Address</td><td class="" id="bkmrk---list-of-high-confi" style="width: 16.686532%; height: 125px;">- list of high confidence matches (if any)</td><td class="" id="bkmrk-if-no-high-confidenc" style="width: 29.32062%; height: 125px;">**If no high confidence matches:** - the ingestion process continues (Step 4)  
**If high confidence matches are found:**  
- Matches are returned to the Editor for verification (secondary process: S.1. High confidence address verification)</td></tr><tr id="bkmrk-4-the-system-creates" style="height: 93px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-4" style="width: 5.959476%; height: 93px;">**4**</th><td class="" id="bkmrk-the-system-creates-t" style="width: 23.599523%; height: 93px;">The system creates the address in the database with a flag indicating that it is a temporary address that is not yet validated.</td><td class="" id="bkmrk-system-2" style="width: 8.820024%; height: 93px;">System</td><td class="" id="bkmrk---address-%28with-flag" style="width: 15.613826%; height: 93px;">- Address (with flag validated=false)</td><td class="" id="bkmrk---newly-created-addr" style="width: 16.686532%; height: 93px;">- Newly created address</td><td class="" id="bkmrk--2" style="width: 29.32062%; height: 93px;"></td></tr><tr id="bkmrk-5-the-system-checks-" style="height: 77px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-5" style="width: 5.959476%; height: 77px;">**5**</th><td class="" id="bkmrk-the-system-checks-if-2" style="width: 23.599523%; height: 77px;">The system checks if a site structure was sent with the “create address request”.</td><td class="" id="bkmrk-system-3" style="width: 8.820024%; height: 77px;">System</td><td class="" id="bkmrk---create-address-req" style="width: 15.613826%; height: 77px;">- Create address request</td><td class="" id="bkmrk---yes-%2F-no-1" style="width: 16.686532%; height: 77px;">- yes / no</td><td class="" id="bkmrk-if-a-site-structure-" style="width: 29.32062%; height: 77px;">**If a site structure is provided:**  
- the provided structure is created.  
**If no site structure is provided:**  
- a default structure is created.</td></tr><tr id="bkmrk-6.a-the-system-creat" style="height: 61px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-6.a" style="width: 5.959476%; height: 61px;">**6.a**</th><td class="" id="bkmrk-the-system-creates-t-1" style="width: 23.599523%; height: 61px;">The system creates the provided site structure</td><td class="" id="bkmrk-system-4" style="width: 8.820024%; height: 61px;">System</td><td class="" id="bkmrk---requested-site-str" style="width: 15.613826%; height: 61px;">- Requested site structure</td><td class="" id="bkmrk---newly-created-site" style="width: 16.686532%; height: 61px;">- Newly created site structure</td><td class="" id="bkmrk--3" style="width: 29.32062%; height: 61px;"></td></tr><tr id="bkmrk-6.b-the-system-creat" style="height: 77px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-6.b" style="width: 5.959476%; height: 77px;">**6.b**</th><td class="" id="bkmrk-the-system-creates-t-2" style="width: 23.599523%; height: 77px;">The system creates the default site structure</td><td class="" id="bkmrk-system-5" style="width: 8.820024%; height: 77px;">System</td><td class="" id="bkmrk---1" style="width: 15.613826%; height: 77px;">-</td><td class="" id="bkmrk---newly-created-defa" style="width: 16.686532%; height: 77px;">- Newly created default site structure</td><td class="" id="bkmrk--4" style="width: 29.32062%; height: 77px;"></td></tr><tr id="bkmrk-7-the-system-returns" style="height: 77px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-7" style="width: 5.959476%; height: 77px;">**7**</th><td class="" id="bkmrk-the-system-returns-t" style="width: 23.599523%; height: 77px;">The system returns the created address and the site structure</td><td class="" id="bkmrk-system-6" style="width: 8.820024%; height: 77px;">System</td><td class="" id="bkmrk---2" style="width: 15.613826%; height: 77px;">-</td><td class="" id="bkmrk---newly-created-addr-1" style="width: 16.686532%; height: 77px;">- Newly created address and site structure</td><td class="" id="bkmrk--5" style="width: 29.32062%; height: 77px;"></td></tr><tr id="bkmrk-8-the-editor-gets-th" style="height: 77px;"><th class="simple-table-header-color simple-table-header align-left" id="bkmrk-8" style="width: 5.959476%; height: 77px;">**8**</th><td class="" id="bkmrk-the-editor-gets-the-" style="width: 23.599523%; height: 77px;">The Editor gets the newly requested address</td><td class="" id="bkmrk-editor-1" style="width: 8.820024%; height: 77px;">Editor</td><td class="" id="bkmrk---3" style="width: 15.613826%; height: 77px;">-</td><td class="" id="bkmrk---newly-created-addr-2" style="width: 16.686532%; height: 77px;">- Newly created address and site structure</td><td>  
</td></tr></tbody></table>

### Secondary Processes

#### S.1. High confidence address verification

<table class="simple-table" id="bkmrk-step-description-act-2" style="width: 100%;"><thead class="simple-table-header"><tr id="bkmrk-step-description-act-3"><th class="simple-table-header-color simple-table-header" id="bkmrk-step-1" style="width: 6.078665%;">Step</th><th class="simple-table-header-color simple-table-header" id="bkmrk-description-1" style="width: 22.765197%;">Description</th><th class="simple-table-header-color simple-table-header" id="bkmrk-actor%28s%29-1" style="width: 9.77354%;">Actor(s)</th><th class="simple-table-header-color simple-table-header" id="bkmrk-input%28s%29-1" style="width: 15.494636%;">Input(s)</th><th class="simple-table-header-color simple-table-header" id="bkmrk-output%28s%29-1" style="width: 16.448578%;">Output(s)</th><th class="simple-table-header-color simple-table-header" id="bkmrk-decision-points-1" style="width: 29.558573%;">Decision points</th></tr></thead><tbody><tr id="bkmrk-1-system-returns-a-l"><th class="simple-table-header-color simple-table-header" id="bkmrk-1-1" style="width: 6.078665%;">1</th><td class="" id="bkmrk-system-returns-a-lis" style="width: 22.765197%;">System returns a list of high confidence address matches</td><td class="" id="bkmrk-system-7" style="width: 9.77354%;">System</td><td class="" id="bkmrk---4" style="width: 15.494636%;">-</td><td class="" id="bkmrk---list-of-high-confi-1" style="width: 16.448578%;">- list of high confidence matches</td><td class="" id="bkmrk--6" style="width: 29.558573%;"></td></tr><tr id="bkmrk-2-editor-verifies-if"><th class="simple-table-header-color simple-table-header" id="bkmrk-2-1" style="width: 6.078665%;">2</th><td class="" id="bkmrk-editor-verifies-if-t" style="width: 22.765197%;">Editor verifies if the address is present in the list</td><td class="" id="bkmrk-editor-2" style="width: 9.77354%;">Editor</td><td class="" id="bkmrk---list-of-high-confi-2" style="width: 15.494636%;">- list of high confidence matches</td><td class="" id="bkmrk---yes-%2F-no-2" style="width: 16.448578%;">- yes / no</td><td class="" id="bkmrk-if-address-not-prese" style="width: 29.558573%;">**If address not present:** - the secondary process continues (S.1. Step 3)  
**If address present:**  
- the ingestion process is canceled (E.2. Address exists)</td></tr><tr id="bkmrk-3-the-editor-sends-a"><th class="simple-table-header-color simple-table-header" id="bkmrk-3-1" style="width: 6.078665%;">3</th><td class="" id="bkmrk-the-editor-sends-aga" style="width: 22.765197%;">The Editor sends again a “create address request” but this time flags it as forced (force = true)</td><td class="" id="bkmrk-editor-3" style="width: 9.77354%;">Editor</td><td class="" id="bkmrk---address-%28mandatory-3" style="width: 15.494636%;">- Address (mandatory)  
- Site structure (optional)</td><td class="" id="bkmrk---5" style="width: 16.448578%;">-</td><td class="" id="bkmrk--7" style="width: 29.558573%;"></td></tr><tr id="bkmrk-4-the-system-checks-"><th class="simple-table-header-color simple-table-header" id="bkmrk-4-1" style="width: 6.078665%;">4</th><td class="" id="bkmrk-the-system-checks-if-3" style="width: 22.765197%;">The system checks if the address already exists</td><td class="" id="bkmrk-system-8" style="width: 9.77354%;">System</td><td class="" id="bkmrk---address-%28mandatory-4" style="width: 15.494636%;">- Address (mandatory)  
- Site structure (optional)</td><td class="" id="bkmrk---yes-%2F-no-3" style="width: 16.448578%;">- yes / no</td><td class="" id="bkmrk-if-the-address-does--1" style="width: 29.558573%;">**If the address does not exist:**  
- the main process continues (Step 4)  
**If the address exists:**  
- An error is returned (E.1. Address exists)</td></tr></tbody></table>

### Error Processes

#### E.1. Address exists (System error)

<table class="simple-table" id="bkmrk-step-description-act-4" style="width: 100%;"><thead class="simple-table-header"><tr id="bkmrk-step-description-act-5"><th class="simple-table-header-color simple-table-header" id="bkmrk-step-2" style="width: 6.197855%;">Step</th><th class="simple-table-header-color simple-table-header" id="bkmrk-description-2" style="width: 22.288439%;">Description</th><th class="simple-table-header-color simple-table-header" id="bkmrk-actor%28s%29-2" style="width: 9.65435%;">Actor(s)</th><th class="simple-table-header-color simple-table-header" id="bkmrk-input%28s%29-2" style="width: 15.375447%;">Input(s)</th><th class="simple-table-header-color simple-table-header" id="bkmrk-output%28s%29-2" style="width: 17.063539%;">Output(s)</th><th class="simple-table-header-color simple-table-header" id="bkmrk-decision-points-2" style="width: 29.42037%;">Decision points</th></tr></thead><tbody><tr id="bkmrk-1-system-returns-an-"><th class="simple-table-header-color simple-table-header" id="bkmrk-1-2" style="width: 6.197855%;">1</th><td class="" id="bkmrk-system-returns-an-er" style="width: 22.288439%;">System returns an error indicating that the address already exists</td><td class="" id="bkmrk-system-9" style="width: 9.65435%;">System</td><td class="" id="bkmrk---6" style="width: 15.375447%;">-</td><td class="" id="bkmrk-error%3A-address-exist" style="width: 17.063539%;">**Error: Address exists**</td><td>  
</td></tr></tbody></table>

#### E.2. Address exists (Editor cancel)

<table class="simple-table" id="bkmrk-step-description-act-6" style="width: 100%;"><thead class="simple-table-header"><tr id="bkmrk-step-description-act-7"><th class="simple-table-header-color simple-table-header" id="bkmrk-step-3" style="width: 5.959476%;">Step</th><th class="simple-table-header-color simple-table-header" id="bkmrk-description-3" style="width: 22.646007%;">Description</th><th class="simple-table-header-color simple-table-header" id="bkmrk-actor%28s%29-3" style="width: 9.296782%;">Actor(s)</th><th class="simple-table-header-color simple-table-header" id="bkmrk-input%28s%29-3" style="width: 15.613826%;">Input(s)</th><th class="simple-table-header-color simple-table-header" id="bkmrk-output%28s%29-3" style="width: 17.043391%;">Output(s)</th><th class="simple-table-header-color simple-table-header" id="bkmrk-decision-points-3" style="width: 29.440519%;">Decision points</th></tr></thead><tbody><tr id="bkmrk-1-editor-finds-the-a"><th class="simple-table-header-color simple-table-header" id="bkmrk-1-3" style="width: 5.959476%;">1</th><td class="" id="bkmrk-editor-finds-the-add" style="width: 22.646007%;">Editor finds the address in the high confidence matches returned by the system.   
  
The process is canceled.</td><td class="" id="bkmrk-editor-4" style="width: 9.296782%;">Editor</td><td class="" id="bkmrk---7" style="width: 15.613826%;">-</td><td class="" id="bkmrk---8" style="width: 17.043391%;">-</td><td>  
</td></tr></tbody></table>

## Additional Information

### Address matching processes

Exact match (link to algorithm or process)

High confidence match (link to algorithm or process)

### Default site structure

[![default site structure.png](https://doc.rncv.lu/uploads/images/gallery/2025-10/scaled-1680-/default-site-structure.png)](https://doc.rncv.lu/uploads/images/gallery/2025-10/default-site-structure.png)

If no site structure is sent with the “address creation request”, a default site structure will be created composed of a site, to which one block is linked. No units are created by default, as more information is needed to create the units (floor, identification).

### Exceptions

#### \[400 Bad Request\] Invalid input:

If mandatory fields are missing or fields are invalid, the system returns an error message.

#### \[409 Already Exists\] Address already exists

If the **Editor** attempts to add an address that already exists, an error is returned.

#### \[300 Similar exists\] High confidence matches

If the **Editor** attempts to add an address for which the system detects high confidence matches and the force flag is set to false, the system return an error 300 and the list of high confidence matches.

#### \[500 Internal Server Error\] System Error

If the system fails to save changes due to an internal error, it displays an appropriate message and logs the error for further investigation.