Set configurations "createStubCategory" to "false" and "StructureUsage" to "dataflow"
2 configuration properties should be changed in the .Stat Suite context:
-
According to https://gitlab.com/sis-cc/eurostat-sdmx-ri/nsiws.net.mirrored/-/blob/master/doc/CONFIGURATION.md#create-automatic-category-from-categorisation, there is a feature to create a stub Category for any missing categories when it imports a SDMX v2.1 Categorisation or SDMX v2.0 Dataflow/Metadataflow with CategoryReference. By default this feature is enabled and to disable it, the value categorisation.createStubCategory
must be set to false or the setting file must be removed.Config file:
Properties.json
Current default NSI configuration:"categorisation": { "createStubCategory": "true" }
This feature enabled leads to errors such as reported in dotstatsuite-core-transfer#133 (closed). Therefore, in the context of the usage with .Stat Suite, the .Stat Suite default is to be set to "false". This should prevent from these type of errors happening.
Expected default .Stat Suite configuration:"categorisation": { "createStubCategory": "false" }
-
According to https://gitlab.com/sis-cc/eurostat-sdmx-ri/nsiws.net.mirrored/-/blob/master/doc/CONFIGURATION.md#structure-usage-for-response-header, there is a new feature to set the Structure reference in NSI data extractions to use the Dataflow instead of the DSD that is again the NSI default. However, in .Stat Suite, we need the Dataflow being the default reference. Config file:
sdmx-header.json
Default default NSI configuration:{ "structureUsage": { "structureType": "datastructure" } }
This default leads to errors in the sdmxFile method of the transfer service (in DLM: copy from external space to internal space), e.g.:
Request URL: http://transfer-qa-oecd.redpelicans.com/1.2/import/sdmxFile Request Method: POST Form data: dataspace: qa:stable filepath: http://nsi-stable-siscc.redpelicans.com/rest/data/OECD.CFE,DF_DOMESTIC_TOURISM,5.0/all
Error response: Status Code: 400 Bad Request
{"success":false,"message":"Dataset references CategorisationStructure that is not defined in the Header of the message. CategorisationStructure reference defined by Dataset is:OECD.CFE_DF_DOMESTIC_TOURISM_5_0","detail":null}
Therefore, in the context of the usage with .Stat Suite, the .Stat Suite default is to be set to "dataflow". This should prevent from these type of errors happening.
Expected default .Stat Suite configuration:{ "structureUsage": { "structureType": "dataflow" } }