Hello everyone. Currently, I am been working on initializing Reference Application modules on PostgreSQL and I am facing problems with initializing Reference Metadata module on PostgreSQL.
Caused by: org.openmrs.api.ValidationException: ‘One time’ failed to validate with reason: concept: Concept should be of class Frequency
This is throw when Metadata Deploy service is being called here in Reference Metadata Activator. No such validation exception is being thrown on MySQL.
Hi guys, the problem is resolved. Here is the reason for this problem:
UUID is field is set as char(38) everywhere in OpenMRS. But UUID are of length 36. When fetching from MySQL using service classes we get uuid of exact 36 length but in case of PostgreSQL it return 2 additional blank spaces and that was causing the validation error here. So I had to trim the blank spaces.
This actually brings up a question I’ve had for a while: do we have any actual need to support 38-character UUIDs, given that the canonical representation of UUIDs is 36 characters?