Hankintailmoitukset / hilma-api

12 stars 0 forks source link

Hilma rejects notice and gives error #112

Closed anttiremes closed 3 years ago

anttiremes commented 3 years ago

ATTENTION! Fill in the following information but DO NOT include any non-public information such as API keys or actual notice data.

Notice ets: production_66901

Describe the bug The notice cannot be published to TED: The element 'CPV' in namespace 'http://publications.europa.eu/resource/schema/ted/R2.0.8/reception' has invalid child element 'CPV_ADDITIONAL' in namespace 'http://publications.europa.eu/resource/schema/ted/R2.0.8/reception'. List of possible elements expected: 'CPV_MAIN' in namespace 'http://publications.europa.eu/resource/schema/ted/R2.0.8/reception'. , The element 'CPV' in namespace 'http://publications.europa.eu/resource/schema/ted/R2.0.8/reception' has incomplete content. List of possible elements expected: 'CPV_MAIN' in namespace 'http://publications.europa.eu/resource/schema/ted/R2.0.8/reception'.

"LotNumber": "1",
"MainCpvCode": {
  "Code": "18143000",
  "Name": "Suojavaatteet ja -varusteet",
  "VocCodes": []
},
"AdditionalCpvCodes": [
  {
    "Code": "33000000",
    "Name": "Lääketieteelliset laitteet, farmaseuttiset valmisteet ja henkilökohtaiseen hygieniaan liittyvät tuotteet",
    "VocCodes": []
  }
],
"LotNumber": "2",
"MainCpvCode": {
  "Code": "18143000",
  "Name": "Suojavaatteet ja -varusteet",
  "VocCodes": []
},

To Reproduce Steps to reproduce the behavior:

Expected behavior A clear and concise description of what you expected to happen.

API response No response

Additional context Add any other context about the problem here.

jannef commented 3 years ago

There was an error when mapping object descriptions for defence notices: MainCpvCode was truncated. There is a fix pending deployment.

jannef commented 3 years ago

The fix will be deployed today afternoon.

jannef commented 3 years ago

Fix was deployed yesterday afternoon.