We were testing our implementation of DHIS2 today and we were trying a lot of scenarios. And we have come across (a bug maybe?) while working with datasets.
Here are the steps we followed.
We created new data elements
We created a new data set and added the newly created dataelements
We assigned the dataset to organisation units
We added data to the dataset
Then we deleted the dataset without deleting the data
We created a new dataset and added the same dataelements
But when we try to assign the dataset to an organisation unit an error happens
I have attached the log file of all the process I wrote above.
I have done the same thing on the demo site and the same problem happens.
I think the problem happens when you are trying to assign to an organisation unit that has recorded data for those specific data elements. When I assign the same dataset to another organisation unit, no error happens.
We were testing our implementation of DHIS2 today and we were trying a lot of scenarios. And we have come across (a bug maybe?) while working with datasets.
Here are the steps we followed.
We created new data elements
We created a new data set and added the newly created dataelements
We assigned the dataset to organisation units
We added data to the dataset
Then we deleted the dataset without deleting the data
We created a new dataset and added the same dataelements
But when we try to assign the dataset to an organisation unit an error happens
I have attached the log file of all the process I wrote above.
I have done the same thing on the demo site and the same problem happens.