Elering / estfeed-datahub-docs

Estfeed Datahub Documentation
0 stars 0 forks source link

[EDH-2391] "opp.error.business.agreement-cannot-be-found" while adding JOINT_INVOICE agreement #18

Closed EinarArro closed 2 months ago

EinarArro commented 2 months ago

Summary

It seems, that the agreements validator of JOINT_INVOICE agreement is not working as expected: https://confluence.elering.sise/display/EAL/Joint+Invoice+processes Although it seems, that JOINT_INVOICE and SUPPLY agreements are in the Database, then the joint-invoice message gets an error

Request

b'--f41065e2eb46382386cc0c440e1935f8\r\nContent-Disposition: form-data; name="invoiceList"; 
filename="example_joint_invoice_file_small.xml"\r\n\r\n<xml>\r\n--f41065e2eb46382386cc0c440e1935f8\r\nContent-Disposition: form-data; name="jointInvoiceHeadersList"\r\nContent-Type: 
application/json\r\n\r\n[{"senderEic": "38X-EIN-GO-----0", "receiverEic": "38X-EIN-OS-----J", "customerEic": "38X-AVP-ZW6700C6", "commodityType": "ELECTRICITY", "meterEics": ["28ZEE-1000006G-C"], 
"dataPeriodStart": "2024-03-15T00:00:00+02:00", "dataPeriodEnd": "2024-04-01T00:00:00+03:00", "fileName": 
"example_joint_invoice_file_small.xml"}]\r\n--f41065e2eb46382386cc0c440e1935f8\r\nContent-Disposition: form-data; name="marketParticipantContext"\r\nContent-Type: 
application/json\r\n\r\n{"marketParticipantIdentification": "38X-EIN-GO-----0", "marketParticipantRole": "GRID_OPERATOR", "commodityType": "ELECTRICITY"}\r\n--f41065e2eb46382386cc0c440e1935f8--\r\n'

Response

{
  "successful": [],
  "unsuccessful": [
    {
      "fileName": "example_joint_invoice_file_small.xml",
      "code": "opp.error.business.agreement-cannot-be-found",
      "message": "Agreement cannot be found"
    }
  ]
}
EinarArro commented 2 months ago

Tester problem