I am trying to import previously exported Object schema, but an error appears. Log can be downloaded via link: https://goo.gl/1ipD5p
Hi Artem,
I could not download the log from the link.
Could you report this object schema export issue as an bug report at https://portal.riada.se/servicedesk/customer/portal/12 and also attach the log there?
Best RegardsAlexander
https://pastebin.com/C6XnDLQJ - this resource is available from everywhere. i attached log here
Hi Artem!
Looking at the log I think I know the why it fails.
Error: ValidationInsightException: Validation errors were found: Errors: {name=Name has to be unique within the same object type}
This validation messages is thrown multiple times and indicates that you have names that are not unique in your object type(s). Basically this is a normal scenario under certain conditions.
This causes the possibility to have more than one object with the same name as the unique check was added after objects been created, possibly with the same name, and this will cause this error on import.
A possible way to solve this is to remove the unique checkbox on the object types in the original schema and do another export, and then set the checkboxes back again.
Well, Alexander, I understand a possible way to solve this problem, but how can I easily find the objects with setted unique checkbox? I have tried to find this setted checkbox at more than 50 object types, but I haven't found it. I have also tried to find this parameter at XML-configuration of exported scheme,<uniqueAttribute>false</uniqueAttribute> is everywhere in the configuration. Can you show me step-by-step, how to find setted unique checkbox?
Looking at the link to the log you mentioned, I can see statements like this:
2018-02-07 04:34:20,923 [insight-ObjectSchemaImportServiceImpl-0-thread] | Unable to insert object type ObjectTypeBean [id=null, name=Contractor] will skip this object type, Error: ValidationInsightException: Validation errors were found: Errors: {name=Name has to be unique within the same object type}
So I would look at the mentioned Object Types, and review this setting, i.e check the configuration for the Name attribut.
Let us know the result.
Thanks! There were 3 pairs of object types with the same name. Import of scheme has been done successfully!
It looks like you're new here. Sign in or register to get started.