Hello Community,
I have a GeoJSON file download from a DHIS2 Instance. I tried to import it into another instance with the same OU IDs, but it doesn’t work.
Attached are the report image captures:
Hi @Gassim ,
I use version 2.40.1 for DHIS2 and Version 100.2.2 for the Map application.
I also changed my browser, but the catchment area is still not displayed.
I did the test with the play it worked.
Were you able to resolve this? I’m not sure how come it worked on play but not your instance. Is the issue with importing or with the catchment area not displaying?
When importing (before starting dry run) could you open the Network tab and Console on the DevTools? After running it please see if there are any errors.
I installed DHIS2 v40.3.0 on my windows 11 machine.
I created a GeoJson file.
When I try to import the GeoJson file into " Organisation unit geometry import" feature, it always returns the same error “One attribute must be selected”.
I’m not able to reproduce this issue (see recording), but I assume that the reason you’re seeing the issue is because the property name is Organisation unit with the space and not including name because if we look at the GeoJSON file the id that references the OU is using that property.
Would you please insert in GeoJSON property name Organisation Unit instead of the organizationUnitName and see if that works?
I see some values are missing. I’m guessing most probably in the coordinates, you must mention the “type” (but maybe some of the “properties” are required as well), please see screenshot example:
Hmm, I’m not able to generate the error. Does your geojson looks exactly like the screenshot you shared above? In particular, the id is of number type (not in quotes), and “properties” is an empty object? Are there any other differences (ignoring coordinate values)?
Sorry, I’m unable to reproduce the issue you are having. Go ahead and submit a Jira issue and include a sample of the geojson, screenshots with the developer console open, so that any javascript or loading errors are shown. Also, if you could make a screen recording showing the error being generated, that would be helpful.
To replicate, the instance should have no attributes of type geojson associated with organization unit metadata object type. I suppose in case of Walter, it is the same as with us at PEPFAR, and unlike play.dhis2.org, which has catchment area attribute, we don’t have any geojson attributes. The issue is with the import app - even if we are not importing as associated geometry, the app is erroring if there are no attributes at all, and the workaround is to create the attribute even if not using it or resorting to using API directly and bypassing the app.