If you enter a state code longer than 3 characters (some foreign countries- Australia/New South Wales) you get:

a:2:{s:8:“@message”;s:83:“The length of the destination state or province exceeds the limit of 2 characters. “;s:5:“@code”;s:3:“840";}

Comments

rynnnner created an issue. See original summary.

rynnnner’s picture

Version: 8.x-1.x-dev » 8.x-1.0-alpha1
mikelutz’s picture

Can you test out the attached patch?

mikelutz’s picture

This seems to be a difference in the way the commerceguys addressing subdivides Australia and the way FedEx Handles it. Australian provences use 2-3 letter codes, and FedEx only wants 2 letter codes, so I made a new trait to resolve addresses on a country by country basis for situations like this. If other countries have issues with the address mapping, we can add them to the trait in the future.

mikelutz’s picture

Status: Active » Needs review

  • mlutz committed 4685d2c on 8.x-1.x
    Issue #2933218 by rynnnner: state codes longer than 3 characters
    

Status: Needs review » Needs work
mikelutz’s picture

Status: Needs work » Fixed
rynnnner’s picture

Add hong kong resolver.

mikelutz’s picture

Status: Fixed » Needs work
mikelutz’s picture

Title: state codes longer than 3 characters » Inconsistencies between FedEx and Commerce addresses for certain countries

I'm switching this to 'needs work' since we are finding more countries with issues, and we will fix as we go.

  • mikelutz committed bd117d6 on 8.x-1.x authored by rynnnner
    Issue #2933218 by rynnnner: Inconsistencies between FedEx and Commerce...
mikelutz’s picture

Status: Needs work » Fixed

We seem to be stable, so closing this issue. Please create a new issue with any further discovered address formatting discrepancies.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

argogi’s picture

I'm seeing the same error for South Korea and Malaysia.