Hankintailmoitukset / hilma-api

12 stars 0 forks source link

TED rejects notice #165

Closed anttiremesmercell closed 1 year ago

anttiremesmercell commented 1 year ago

etsidentifier: production_137799

BadRequest The notice cannot be published to TED: The element 'CONTRACTING_BODY' in namespace 'http://publications.europa.eu/resource/schema/ted/R2.0.9/reception' has invalid child element 'CA_TYPE' in namespace 'http://publications.europa.eu/resource/schema/ted/R2.0.9/reception'. List of possible elements expected: 'URL_PARTICIPATION, ADDRESS_PARTICIPATION_IDEM, ADDRESS_PARTICIPATION' in namespace 'http://publications.europa.eu/resource/schema/ted/R2.0.9/reception'. , TED message formed:

hilma json "ContractingAuthorityType": 4, "MainActivity": 1
Havunen commented 1 year ago

Hi,

How is this different from the issues you posted previously? Can you apply the same fix?

https://github.com/Hankintailmoitukset/hilma-api/issues/133 https://github.com/Hankintailmoitukset/hilma-api/issues/150

anttiremesmercell commented 1 year ago

Different form now it is F02

Havunen commented 1 year ago

Ok, I will check

Havunen commented 1 year ago

In the JSON payload which you are sending to Hilma, SendTendersOption is 0 which is error case (undefined). You need to explicitly specify how you want the tenders to be sent. I'm guessing you need to select 1 which is the state for receiving tenders electronically because you have provided value for ElectronicAddressToSendTenders

Here is list of all possible values for SendTendersOption:

/// <summary>
///     Default value, error state.
/// </summary>
Undefined = 0,   // 0 (int)

/// <summary>
///     Send tenders to a electronic address defined separately.
/// </summary>
[CorrigendumLabel("address_send_tenders", "I.3")]
AddressSendTenders = 1 << 0,   // 1 (int)

/// <summary>
///     Send tenders to a physical address given for the organisation earlier.
/// </summary>
[CorrigendumLabel("address_organisation_above", "I.3")]
AddressOrganisation = 1 << 1,   // 2 (int)

/// <summary>
///     Send tenders to physical address defined separately.
/// </summary>
[CorrigendumLabel("address_following", "I.3")]
AddressFollowing = 1 << 2,   // 4 (int)

/// <summary>
/// Send tenders to given email address. Only for national notices
/// </summary>
EmailSendTenders = 1 << 3,   // 8 (int)