Hello all,
I want to ask if there is any way we can show a friendly error message or limit the available items for the 1-n relationship.
I have a GroupCompany relationship like this
In Group form I can choose companies. When I choose a company which already map to another company, an error will be shown
I want it to show something like “Company ABC already has a group”.
Can I customize this error message? If not, is there anyway to prevent the “already map company” out of the available items when selecting companies?
Tks a lot!
Hi @quynh-wintry-root,
You can’t change this default error text through modeling. You need to speak to a developer to do this, as you would with any of the default error messages shown in A12.
The only way that we can model rules relating to relationships and the number of links is by using a Composed Data Model. Please note that this is still an experimental feature and would lead to significantly more modeling effort.
In your case, I would recommend speaking to a developer.
I’ve changed the category of this question and you should get an answer from a developer showing you how to do this soon.
Moin @quynh-wintry-root,
I had a look into your case, was able to reproduce it using the Project Template and investigated/debugged the source code. I am checking with the related development team on how this could be solved in the easiest way.
Sorry for the delay and thank you for your patience.
Kind regards 
Moin @quynh-wintry-root,
you can customize the title and message of the error message as follows:
- Add the resource key to your
localization/keys.ts
error: {
link_validation: {
"title": "",
"description": ""
}
}
- Add the resource to each of your locales in e.g.
localization/resources/en_US.ts
error: {
link_validation: {
title: "Error title in english",
description: "Error message in english"
}
}
These files should be present in the respective folders when you used the A12 Project Template.
Currently this is the recommended way. There’s no out of the box solution in A12 for handling relationship errors or other custom server-side exceptions.
I am going to create a ticket for introducing such consistent error handling concept for A12.
The result should then look like this:


Kind regards 
FYI: Created new requirement ticket A12-15373.