Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data parsing is failing due to an invalid xml file #172

Closed
Tracked by #170
charphi opened this issue Nov 24, 2021 · 1 comment
Closed
Tracked by #170

Data parsing is failing due to an invalid xml file #172

charphi opened this issue Nov 24, 2021 · 1 comment
Labels
bug Something isn't working FORMAT
Milestone

Comments

@charphi
Copy link
Member

charphi commented Nov 24, 2021

DataflowRef: StatCan:DF_10100139(1.0)

Xml file is invalid because the series headers are missing:

<?xml version='1.0' encoding='UTF-8'?>
<message:StructureSpecificData xmlns:ss="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/data/structurespecific" xmlns:footer="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message/footer" xmlns:ns1="urn:sdmx:org.sdmx.infomodel.datastructure.Dataflow=StatCan:DF_10100139(1.0):ObsLevelDim:TIME_PERIOD" xmlns:message="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/message" xmlns:common="http://www.sdmx.org/resources/sdmxml/schemas/v2_1/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xml="http://www.w3.org/XML/1998/namespace">
	<message:Header>
		<message:ID>DS1598331006473</message:ID>
		<message:Test>false</message:Test>
		<message:Prepared>2020-08-25T04:50:06</message:Prepared>
		<message:Sender id="MetadataTechnology"/>
		<message:Structure structureID="StatCan_DF_10100139_1_0" namespace="urn:sdmx:org.sdmx.infomodel.datastructure.Dataflow=StatCan:DF_10100139(1.0):ObsLevelDim:TIME_PERIOD" dimensionAtObservation="TIME_PERIOD">
			<common:StructureUsage>
				<Ref agencyID="StatCan" id="DF_10100139" version="1.0"/>
			</common:StructureUsage>
		</message:Structure>
	</message:Header>
	<message:DataSet ss:dataScope="DataStructure" xsi:type="ns1:DataSetType" ss:structureRef="StatCan_DF_10100139_1_0">
		<Series/>
	</message:DataSet>
</message:StructureSpecificData>
@charphi charphi added bug Something isn't working PROVIDER labels Nov 24, 2021
@charphi charphi added this to the 3.0.0-beta.6 milestone Nov 24, 2021
@charphi
Copy link
Member Author

charphi commented Nov 24, 2021

Done in 2db111f

@charphi charphi closed this as completed Nov 24, 2021
@charphi charphi added FORMAT and removed PROVIDER labels Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working FORMAT
Projects
None yet
Development

No branches or pull requests

1 participant