Hankintailmoitukset / hilma-api

11 stars 0 forks source link

Contract award notice (type 300) causes internal error in Hilma #136

Closed esaiko closed 1 year ago

esaiko commented 1 year ago

Use tries to validated a contract award notice (POST request). Response from Hilma is 500 internal error.

--- 2022-09-27 09:07:49 ---
POST https://api.hankintailmoitukset.fi/ets/external-api/v1/notice/1373?projectId=67727&parentId=1276
Content-Length: 10586
Ocp-Apim-Subscription-Key: ed4xx
Content-Type: application/json

{
    "type": 300,
    "totalValue": {
        "currency": "EUR",
        "type": 1,
        "value": "940000.00"
    },
    "contactPerson": {
        "name": "xxx",
        "phone": "+358 262666",
        "email": "xxx@xxxxxxx.fi"
    },
    "lotsInfo": {
        "divisionLots": true,
        "quantityOfLots": 2
    },
    "mainCPVCode": {
        "code": "85150000",
        "name": "L\u00e4\u00e4ketieteelliset kuvantamispalvelut"
    },
    "objectDescriptions": [
        {
            "title": "1. xxx",
            "lotNumber": 1,
            "additionalCpvCodes": [
                {
                    "code": "85150000",
                    "name": "L\u00e4\u00e4ketieteelliset kuvantamispalvelut"
                }
            ],
            "nutsCodes": [
                "FI196"
            ],
            "descrProcurement": [
                "xxxx. ",
                "",
                "xx ",
                "xxxx",
                "",
                "xxxx"
            ],
            "awardCriteria": {
                "criterionTypes": 4
            },
            "disagreeAwardCriteriaToBePublished": true,
            "optionsAndVariants": {
                "variantsWillBeAccepted": false
            },
            "euFunds": {
                "procurementRelatedToEuProgram": false
            }
        },
        {
            "title": "2. xxx",
            "lotNumber": 2,
            "additionalCpvCodes": [
                {
                    "code": "85150000",
                    "name": "L\u00e4\u00e4ketieteelliset kuvantamispalvelut"
                }
            ],
            "nutsCodes": [
                "FI196"
            ],
            "descrProcurement": [
                "xxxx ",
                "",
                "xxx ",
                "xxx ",
                "",
                "xxx."
            ],
            "awardCriteria": {
                "criterionTypes": 4
            },
            "disagreeAwardCriteriaToBePublished": true,
            "optionsAndVariants": {
                "variantsWillBeAccepted": false
            },
            "euFunds": {
                "procurementRelatedToEuProgram": false
            },
            "awardContract": {
                "contractAwarded": 1,
                "awardedContract": {
                    "conclusionDate": "2022-05-31T00:00:00",
                    "contractNumber": "22-xxz",
                    "contractTitle": "2. xxx",
                    "numberOfTenders": {
                        "total": 6,
                        "sme": 3,
                        "otherEu": 0,
                        "nonEu": 0,
                        "electronic": 6
                    },
                    "awardedToGroupOfEconomicOperators": true,
                    "contractors": [
                        {
                            "officialName": "xxxx",
                            "nationalRegistrationNumber": "xxxx-xxxx",
                            "nutsCodes": [
                                "FI"
                            ],
                            "postalAddress": {
                                "streetAddress": "xxxx",
                                "postalCode": "01600",
                                "town": "Espoo",
                                "country": "FI"
                            },
                            "telephoneNumber": "+358 999999",
                            "email": "xxxxx@xxxxx.fi",
                            "mainUrl": "http://www.xxxxx.fi",
                            "isSmallMediumEnterprise": true
                        },
                        {
                            "officialName": "xxxxx",
                            "nationalRegistrationNumber": "xxxxx-xxx",
                            "nutsCodes": [
                                "FI"
                            ],
                            "postalAddress": {
                                "streetAddress": "xxxxx",
                                "postalCode": "01800",
                                "town": "Vantaa",
                                "country": "FI"
                            },
                            "telephoneNumber": "+372 xxxx",
                            "email": "xxxxx@xxxxx.com",
                            "mainUrl": "http://www.xxxxx.fi",
                            "isSmallMediumEnterprise": true
                        }
                    ],
                    "initialEstimatedValueOfContract": {
                        "currency": "EUR",
                        "value": "940000.00"
                    },
                    "finalTotalValue": {
                        "type": 1,
                        "currency": "EUR",
                        "value": "940000.00"
                    }
                }
            }
        }
    ],
    "organisation": {
        "information": {
            "officialName": "xxxx",
            "nationalRegistrationNumber": "xxxxxx-xxxxxx",
            "nutsCodes": [
                "FI196"
            ],
            "postalAddress": {
                "streetAddress": "xxxxxx",
                "postalCode": "16500",
                "town": "Vaasa",
                "country": "FI"
            },
            "telephoneNumber": "+358 xxxxx",
            "email": "xxxx@xxxx.fi",
            "mainUrl": "http://www.xxxx.fi"
        },
        "contractingAuthorityType": 4,
        "mainActivity": 32
    },
    "previousNoticeOjsNumber": "2022/S 060-156861",
    "project": {
        "contractType": 2,
        "referenceNumber": "22-xxxx",
        "title": "xxxxxxxx",
        "procurementCategory": 1
    },
    "shortDescription": [
        "xxxx ",
        "",
        "xxxx",
        "xxx ",
        "",
        "xxx"
    ],
    "language": "FI",
    "procedureInformation": {
        "procedureType": 1,
        "frameworkAgreement": {
            "includesFrameworkAgreement": true,
            "frameworkAgreementType": 2
        },
        "procurementGovernedByGPA": false
    },
    "proceduresForReview": {
        "reviewBody": {
            "officialName": "Markkinaoikeus",
            "nationalRegistrationNumber": null,
            "nutsCodes": [
                "FI"
            ],
            "postalAddress": {
                "streetAddress": "Radanrakentajantie 5",
                "town": "Helsinki",
                "postalCode": "00520",
                "country": "FI"
            },
            "telephoneNumber": "+358 295643300",
            "email": "markkinaoikeus@oikeus.fi",
            "mainUrl": "http://www.oikeus.fi/markkinaoikeus"
        }
    },
    "legalBasis": "32014L0024",
    "hilmaStatistics": {
        "InnovationConsidered": false,
        "SolutionNewToBuyer": false,
        "SolutionNewToMarketOrIndustry": false,
        "EnergyEfficiencyConsidered": false,
        "LowCarbon": false,
        "CircularEconomy": false,
        "Biodiversity": false,
        "SustainableFoodProduction": false,
        "JustWorkingConditions": false,
        "EmploymentCondition": false,
        "CodeOfConduct": false,
        "SMEParticipationConsidered": false
    }
}
------ 2022-09-27 09:07:49 ---
500 Internal Server Error
Content-Length: 0
X-Cache: CONFIG_NOCACHE
X-Azure-Ref: 0NZMyYwAAAABsHamroacfRqBgw8TKxsUETE9OMjEyMDUwNzE4MDA5ADAxMTMwNGJmLWMzMTYtNDVhMC1hZWE4LTFhZDAwYzJlNmIyNw==
Request-Context: appId=cid-v1:1c7c1805-f4ec-49e2-a8f3-5993b60c63f5
Date: Tue, 27 Sep 2022 06:07:49 GMT
Connection: close
arinurkkala commented 1 year ago

Investigating

arinurkkala commented 1 year ago

objectDescriptions[0].awardContract is missing => throws exception Please add awardContract to the request

esaiko commented 1 year ago

Tack!