The shipping information was unable to be saved. verify the input data and try again.
Additional Details
Detailed explanation and result of the investigation https://github.com/magento/magento2/issues/23908#issuecomment-538087658
Preconditions (*)
- Magento 2.3.2, 2.3-develop
Steps to reproduce (*)
- Create a customer account
- Go to my account, and add a shipping address 2.5. Enable Persistent Shopping Cart (updated Oct 10.2019)
- Add any product and ~go to the checkout~ !Impotent: wait until the customer session expires (one hour by default) but no longer than Persistence Lifetime is set to (updated Oct 10.2019) 3.5 Reload the page so that somewhere in the upper-right corner You get "Not You?" link next to the welcome message (updated Oct 10.2019) 3.6 Clik on "Not You?" enter the credentials of the customer and log in (updated Oct 10.2019) 3.6 Go to Mini Cart end press Precede to Checkout (updated Oct 10.2019)
- Select the address you have just added
- Select a shipping method and click next button
Expected result (*)
- Payment page should show up
Actual result (*)

Hi @mehmetuygun. Thank you for your report. To help us process this issue please make sure that you provided the following information:
- [ ] Summary of the issue
- [ ] Information on your environment
- [ ] Steps to reproduce
- [ ] Expected and actual results
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento give me 2.3-develop instance - upcoming 2.3.x release
For more details, please, review the Magento Contributor Assistant documentation.
@mehmetuygun do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
- [ ] yes
- [ ] no
- Join Magento Community Engineering Slack and ask your questions in #github channel.
Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
-
[ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
Details
If the issue has a valid description, the labelIssue: Format is validwill be added to the issue automatically. Please, edit issue description if needed, until labelIssue: Format is validappears. -
[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add
Issue: Clear Descriptionlabel to the issue by yourself. -
[ ] 3. Add
Component: XXXXXlabel(s) to the ticket, indicating the components it may be related to. -
[ ] 4. Verify that the issue is reproducible on
2.3-developbranchDetails
- Add the comment@magento give me 2.3-develop instanceto deploy test instance on Magento infrastructure.
- If the issue is reproducible on2.3-developbranch, please, add the labelReproduced on 2.3.x.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
-
[ ] 5. Verify that the issue is reproducible on
2.2-developbranch.Details
- Add the comment@magento give me 2.2-develop instanceto deploy test instance on Magento infrastructure.
- If the issue is reproducible on2.2-developbranch, please add the labelReproduced on 2.2.x -
[ ] 6. Add label
Issue: Confirmedonce verification is complete. -
[ ] 7. Make sure that automatic system confirms that report has been added to the backlog.
@magento give me 2.3.2 instance
Hi @mehmetuygun. Thank you for your request. I'm working on Magento 2.3.2 instance for you
Hi @mehmetuygun, here is your Magento instance.
Admin access: https://i-23908-2-3-2.instances.magento-community.engineering/admin
Login: admin Password: 123123q
Instance will be terminated in up to 3 hours.
Hello @mehmetuygun. Thanks for applying. We've been not able to reproduce Your issue on a vanilla magento instance. Please confirm You are able to to so.
I couldn't reproduce issue on magento instance either.
After I adding $customerId = $this->customerSession->getId(); in to begging of the function private function doValidate(AddressInterface $address, ?int $customerId): void in the file magento/module-quote/Model/QuoteAddressValidator.php the error stop showing up. And I could pass to payment page. How is possible customerId passing as null? it happens when I logged in and trying place order with saved address.
@mehmetuygun, if an issue is not reproduced on a fresh magento instance, free from any custom code, third party extensions, etc., then it is not a core magento bug this repository is intended for reporting. Please refer to the Community Forums or the Magento Stack Exchange site for advice or general discussion about this issue. Thus we are supposed to close this issue but please feel free to reopen it if deem necessary. Thanks for applying.
This issue is related to this issue: https://github.com/magento/magento2/issues/23618
I created https://github.com/magento/magento2/issues/23618# and there is a reference to this issue. So I check and the first I see is that this issue is closed here as well. I understand that you are eager to close issues to keep numbers low but clearly this issue can have a huge impact: Customers can not checkout. Is there anyone from the magento core team that is willing to take time to find out what is the root of this issue as it is not entirely clear why people are getting this message.
We've been seeing this as well on a 2.3.2 install. Our data was imported from a Magento 1.9.x install using the Magento Data Migration Tool. We were originally suspecting something to do with the data migration, but it still happens when you create a new account. At the moment we're disabling our 3rd party modules one by one to see if we can narrow it down, but this behavior seems to have been around since before we added our 3rd party modules.
I imported the customer data via CSV as I have bad experiences with the data migration tool. The account that had problems was a testing account. So I deleted it and re-created it. But it happened again after that with the new testing account (with the same email).
Disabled all third party modules and still seeing same behavior. Traced things back through the code and found some interesting things happening:
exception.log shows the error coming from [2019-08-06 22:05:07] main.CRITICAL: Invalid customer address id 160022 {"exception":"[object] (Magento\Framework\Exception\NoSuchEntityException(code: 0): Invalid customer address id 160022 at .... vendor/magento/module-quote/Model/QuoteAddressValidator.php:79)"}
That's QuoteAddressValidator::doValidate(AddressInterface $address, ?int $customerId), which is being called by line 130 in the same file. The second parameter for doValidate is set as: $cart->getCustomerIsGuest() ? null : $cart->getCustomer()->getId()
However, $cart->getCustomerIsGuest() is reporting me as a guest, when in fact I'm not. I logged in during checkout, and I'm continuing to refresh the checkout page, so it should be pretty apparent by now that I'm logged in. It is actually showing me all of my addresses, so it clearly thinks I'm logged in.
Ultimately, getCustomerIsGuest() pulls the information from the quote table, which I checked and found that for my customer_id, my active quote had customer_is_guest column set to 1. I'm not sure how the quote (merged from my guest cart) ended up with customer_is_guest still set to 1, but after clearing it, the problem vanished (at least for now).
The following query helped me find the other quotes in the same situation:
SELECT entity_id, customer_id FROM quote WHERE customer_id != 0 AND customer_is_guest = 1;
Then I reset them to the proper status:
UPDATE quote SET customer_is_guest = 0 WHERE customer_id != 0 AND customer_is_guest = 1;
The only quotes I could find in this state belonged to test accounts. I'll continue with testing with 3rd party modules enabled, and comment back if I find anything else improperly messing with the customer_is_guest field.
@sbrendtro, this is a good catch! I was not getting this critical message. But I was having the same in the quote table customer_is_guest was 1 with this testing customer. Setting it to 0 fixed things. The root cause is yet unclear. I will keep an eye on this.
@sbrendtro
Do you mean
UPDATE quote ...
rather than
UPDATE entity ...
?
@sbrendtro
Do you mean
UPDATE quote ...rather than
UPDATE entity ...?
Yes, thanks for pointing that out. Just edited my comment.
No, thank you for pointing out the fix for what was turning out to be a massive pain in the backside for a client!
@onepack I think you should put this solution in your issue too because I believe it will help many people including me.
This is an issue that effects both Magento 2.2.9 and 2.3.2
It is also pretty disturbing to see Magento team denies that such issue exist. I can also confirm that the issue occurs on a clean installation.
Thanks to @sbrendtro we corrected the issue on our shop but denying such important issues on an Enterprise solution is not acceptable on magento teams behalf.
Dear members of this conversation. Please provide the steps following which we can reproduce the issue on a vanilla Magento installation of 2.3-develop version - the issue will be immediately reopened and confirmed. Dear @onepack, we are not eager to close the issues. We just follow our workflow (please see details to step 4 of this comment above https://github.com/magento/magento2/issues/23908#issuecomment-515489471). Thank You all for understanding.