I'm trying to find/create a contact in Xero, using data from a woocommerce order. The error says:
“Failed to find or create a contact in Xero A contact person must have at least one of: FirstName, LastName, or EmailAddress”
But the available required fields as inputs are named first_name, last_name, email_address
So it seems it's sending the wrong data to xero and failing because of that. Am I missing something obvious?
This post has been edited by a moderator to remove personally identifiable information (PII). Please remember that this is a public forum and avoid sharing sensitive details.
Best answer by SamB
Hey @AustenBolle 👋
Just came across this and saw you reached out to our Support team and they were able to help get things sorted! 🎉
Sharing the solution they provided here in case its helpful to others that might be running into that same error:
It seems the issue is caused by selecting an option in the "Include secondary person in emails sent to contact?" field, which then requires the Secondary Person fields to be filled out as well.
To resolve this, please follow these steps:
1. Clear the selection in the "Include secondary person in emails sent to contact?" field. 2. Ensure that any data entered in the Secondary Person fields is also cleared.
Just came across this and saw you reached out to our Support team and they were able to help get things sorted! 🎉
Sharing the solution they provided here in case its helpful to others that might be running into that same error:
It seems the issue is caused by selecting an option in the "Include secondary person in emails sent to contact?" field, which then requires the Secondary Person fields to be filled out as well.
To resolve this, please follow these steps:
1. Clear the selection in the "Include secondary person in emails sent to contact?" field. 2. Ensure that any data entered in the Secondary Person fields is also cleared.