Allow indexing dataflows that are categorised in Categories at lower levels of the CategoryScheme
ILO issue:
I have tried to index my local dotstat_v7 dataflows through the SFS service in order to view dotstat_v7 dataflows in the new DE.
Unfortunately the indexing failed with the following message. It used to work with the September release’s corpusemanager.
{ "message": "Dataflow [\"http://gva-dap-10.ad.ilo.org:7828/rest/dataflow/ILO/DF_DEAP/1.0/?references=all\"]: Cannot find categorisation urn:sdmx:org.sdmx.infomodel.categoryscheme.Category=ILO:CAS_1(1.0).CAT_3 in categorySchemes", "url": "http://gva-dap-10.ad.ilo.org:7828/rest/dataflow/ILO/DF_DEAP/1.0/?references=all", "loadingId": 1559550336715, "time": "2019-06-03T08:30:50.959Z" }
The issue is related to the urn in the above code. I also attached my full xml message for this dataflow.
dotstat-v7-df.xml
The problem is the CAT_3 category under CAS_1 categoryscheme. It is a second level category so the urn for this category is urn:sdmx:org.sdmx.infomodel.categoryscheme.Category=ILO:CAS_1(1.0).CAT_1.CAT_3. You can see it contains the parent category ID. I believe this is automatically done by the SDMXSource library. However, when SFS tries to index, it is trying to identify an urn with the wrong path, so it throws this error message.