The version field in the dataset table allows range between 0 - 255. Yet the version can be more than 255.
#section from dataset hbm.xml file <property name="mobile" not-null="true" /> <property name="version" /> ---- Length is default to 255 for integer <property name="expiryDays" /> Quick fix: Open the Exported file and change the version to an integer less than 255 , save and import. -- You received this bug notification because you are a member of DHIS 2 developers, which is subscribed to DHIS. https://bugs.launchpad.net/bugs/1477565 Title: Meta data Import fails with "Validation Violations: [ValidationViolation{property='version', message='Invalid range for value [0, 255], value is 422', value=422}]" Status in DHIS: New Bug description: Import on 2.19 and 2.20 fails for datasets with this error "Validation Violations: [ValidationViolation{property='version', message='Invalid range for value [0, 255], value is 422', value=422}]" 2.20 Build version:19682 2.19 build revision:19258 No error is logged in tomcat logs. Exports is successful.at Import summary shows that all other datasets were successful but that data set that is throwing that error is ignored. All its data elements, categories, etc are imported successfully. To manage notifications about this bug go to: https://bugs.launchpad.net/dhis2/+bug/1477565/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~dhis2-devs Post to : dhis2-devs@lists.launchpad.net Unsubscribe : https://launchpad.net/~dhis2-devs More help : https://help.launchpad.net/ListHelp