You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Traceback (most recent call last):
File "r:\SharedLocal\ECFIN-DEV\fastop\python\.venv\Lib\site-packages\sdmx\reader\xml.py", line 254, in read_message
result = func(self, element)
^^^^^^^^^^^^^^^^^^^
File "r:\SharedLocal\ECFIN-DEV\fastop\python\.venv\Lib\site-packages\sdmx\reader\xml.py", line 1171, in _ms
cl, values_for = _ms_component(reader, elem, kind)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "r:\SharedLocal\ECFIN-DEV\fastop\python\.venv\Lib\site-packages\sdmx\reader\xml.py", line 1141, in _ms_component
return cl, cl.get(elem.attrib["id"])
^^^^^^^^^^^^^^^^^^^^^^^^^
File "r:\SharedLocal\ECFIN-DEV\fastop\python\.venv\Lib\site-packages\sdmx\model.py", line 879, in get
raise KeyError(id)
KeyError: 'BS_REP_SECTOR'
> The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "r:\SharedLocal\ECFIN-DEV\fastop\python\.venv\Lib\site-packages\sdmx\client.py", line 485, in get
msg = reader.read_message(response_content, dsd=kwargs.get("dsd", None))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "r:\SharedLocal\ECFIN-DEV\fastop\python\.venv\Lib\site-packages\sdmx\reader\xml.py", line 271, in read_message
raise XMLParseError from exc
sdmx.exceptions.XMLParseError: KeyError: 'BS_REP_SECTOR'
sdmx1 version: 2.7.0
python: 3.11.2
The text was updated successfully, but these errors were encountered:
Confirmed. This occurs because the reader is trying to actually look up the corresponding DataflowDefinition, DSD, dimension, and associated Codelist. Handy when those objects are present in the message, but we have no fallback behaviour when they're not.
Hello,
Here's simple code snippet to reproduce the problem:
import sdmx
import logging
logging.basicConfig()
logging.root.setLevel(logging.NOTSET)
client = sdmx.Client('ECB')
c=client.contentconstraint('BSI_CONSTRAINTS')
Result:
sdmx1 version: 2.7.0
python: 3.11.2
The text was updated successfully, but these errors were encountered: