[Bug 1477565] [NEW] Meta data Import fails with "Validation Violations: [ValidationViolation{property='version', message='Invalid range for value [0, 255], value is 422', value=422}]"

Public bug reported:

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.

** Affects: dhis2
     Importance: Undecided
         Status: New

** Tags: 2.19 2.20 data import meta

···

--
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

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

This should now be fixed in 2.19, 2.20 and trunk. Please try it out.

** Changed in: dhis2
     Assignee: (unassigned) => Morten Olav Hansen (mortenoh)

** Changed in: dhis2
   Importance: Undecided => Low

** Changed in: dhis2
       Status: New => Fix Committed

** Changed in: dhis2
    Milestone: None => 2.21

···

--
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:
  Fix Committed

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

** Changed in: dhis2
       Status: Fix Committed => Fix Released

···

--
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:
  Fix Released

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