I constantly get this message on the address select drop down at the checkout pane.

Steps to reproduce:
Make sure there is at least one address in the addressbook.
On the checkout pane, select any of the previous addresses. Now select the default option (which says "-- Choose --").

This gives out a very ugly error saying: "Invalid data value given. Be sure it matches the required data type and format."

Any help would be appreciated here.

I am marking this as critical as it happens when the user is about to checkout.

Files: 
CommentFileSizeAuthor
Error.jpg87.63 KBuditmahajan

Comments

After doing some digging I found that the error is thrown on line 353 in commerce_addressbook.module file when the profile field is set to NULL.

else {
      $order_wrapper->{$field_name} = NULL;
    }

As a quick fix I replaced this line with "unset($order_wrapper->{$field_name});// = NULL;"

This seems to have stopped the error because obviously I simply removed the field from the wrapper. But I am not sure if this might have any side effects.
Kindly let me know if this should work altogether.

Status:Active» Closed (cannot reproduce)

i don't think this is still reproducible