I appreciate your answer, however, I was able in recent days to solve the problem. Install an older version of dhis2, specifically DHIS2 version 39.5.0. Then how do I create a GeoJSON type attribute within the organizational units? First I imported the metadata of said attribute, then I proceeded to import the organizational units, the option sets, the data elements, the programs with their respective variables and program rules, indicators, dashboards, etc., import everything with the Skip sharing and access settings option and regardless of the users with their user groups, I left the users for last. Everything was consecutively accepting the import and also then I imported the users and carried out the import process again only with the update option. It was the way in which I was able to restore a significant amount of metadata. As a second option that I later tried and it worked, I created a file using the pg_dump command and that way I was also able to backup and then restore the entire database. I will do this entire procedure with more recent versions of dhis2 to check if the export and import of the metadata is executed satisfactorily.
2 Likes