postnl / postnl-magento2

This is the official Magento 2 extension for the logistics company PostNL. Add shipping options and parcelshops to your checkout. Create labels with track and trace functionality from the backend.
59 stars 60 forks source link

[BUG] Cannot create shipments on Magento 2.4.4 #307

Closed Tjitse-E closed 2 years ago

Tjitse-E commented 2 years ago

To Reproduce Steps to reproduce the behavior:

  1. Create an order
  2. Invoice the order
  3. Create a shipment via the PostNL module

Expected result A postNL shipment has been created

Actual result An error has occured:

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:t="http://www.w3.org/2003/05/soap-envelope">
  <s:Body>
    <s:Fault>
      <faultcode>s:CIF Framework Message Interceptor</faultcode>
      <faultstring xml:lang="en-US">Check CIFException in the detail section</faultstring>
      <detail>
        <CifException xmlns="http://postnl.nl/cif/services/common/">
          <Errors>
            <ExceptionData>
              <Description i:nil="true"/>
              <ErrorMsg>Validation failed for shipment: XXXX, Messages:
                XXXX: {[1900302] Country with address type receiver and sender is required}
            </ErrorMsg>
              <ErrorNumber>1900302</ErrorNumber>
            </ExceptionData>
          </Errors>
        </CifException>
      </detail>
    </s:Fault>
  </s:Body>
</s:Envelope>

Workaround None

Please complete the following information

tig-jeffreybranderhorst commented 2 years ago

Hi @Tjitse-E ,

Thank you for submitting this, in our tests we were able to print labels. But I will create a new clean test environment to test this. Thank you for submitting.

Have a great day, Jeffrey

Tjitse-E commented 2 years ago

@tig-jeffreybranderhorst it could also be a setting, but I do know that this issue occured after updating to 2.4.4. When we rolled back to 2.4.3-p2 (using the same db/settings) it was fixed again.

tig-vincentthart commented 2 years ago

Hi @Tjitse-E

We just released v1.12.2 with support for Magento 2.4.4.

Have a nice day! Vincent