Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magento 2 REST API / UPDATE CUSTOMER (The %fieldName value is invalid. Set the correct value and try again. / fieldName": "default_billing") #38878

Open
1 of 5 tasks
dariovranjkovic opened this issue Jun 26, 2024 · 9 comments
Labels
Area: Content Component: Api Use with concrete module component label E.g. "Component: Api" + "Catalog" Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. Progress: ready for dev Reported on 2.4.7 Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch

Comments

@dariovranjkovic
Copy link

Preconditions and environment

  • Magetno 2.4.7
  • PHP 8.2

Steps to reproduce

  1. Send request for update customer to rest API
    URL: https://shop.com/rest/V1/customers/3420
    Body:
    {
    "customer": {
    "firstname": "Company Name AB",
    "lastname": "Location",
    "addresses": [
    {
    "defaultShipping": "false",
    "defaultBilling": "false",
    "firstname": "Company Name AB",
    "lastname": "-",
    "postcode": "XXXXX",
    "street": [
    "Street Address"
    ],
    "city": "CITY",
    "telephone": "+XX XXX XXX XXX",
    "countryId": "XX"
    },
    {
    "defaultShipping": "true",
    "defaultBilling": "true",
    "firstname": "Company Name AB",
    "lastname": "-",
    "postcode": "XXXXX",
    "street": [
    "Street Address"
    ],
    "city": "CITY",
    "telephone": "+XX XXX XXX XXX",
    "countryId": "XX"
    }
    ]
    }
    }

or

{
"customer": {
"firstname": "Company Name AB",
"lastname": "Location",
"addresses": [
{
"default_shipping": "false",
"default_billing": "false",
"firstname": "Company Name AB",
"lastname": "-",
"postcode": "XXXXX",
"street": [
"Street Address"
],
"city": "CITY",
"telephone": "+XX XXX XXX XXX",
"countryId": "XX"
},
{
"default_shipping": "true",
"default_billing": "true",
"firstname": "Company Name AB",
"lastname": "-",
"postcode": "XXXXX",
"street": [
"Street Address"
],
"city": "CITY",
"telephone": "+XX XXX XXX XXX",
"countryId": "XX"
}
]
}
}

Expected result

Updated customer

Actual result

{
"message": "The %fieldName value is invalid. Set the correct value and try again.",
"parameters": {
"fieldName": "default_billing"
}
}

Additional information

It was working before upgrade on version 2.4.3 but now is not working on version 2.4.7

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Copy link

m2-assistant bot commented Jun 26, 2024

Hi @dariovranjkovic. Thank you for your report.
To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:


Join Magento Community Engineering Slack and ask your questions in #github channel.
⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
🕙 You can find the schedule on the Magento Community Calendar page.
📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

Copy link

m2-assistant bot commented Jun 26, 2024

Hi @engcom-Dash. 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: 👇

    1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
    1. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
    1. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
    1. Verify that the issue is reproducible on 2.4-develop branch
      Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
      - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
      - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

@engcom-Dash engcom-Dash added the Reported on 2.4.7 Indicates original Magento version for the Issue report. label Jun 27, 2024
@frostitution
Copy link

We are having the same issue on 2.4.6-p5, we figured we were pushing data incorrectly, but it may be a bug with Magento itself?

@engcom-Dash engcom-Dash removed their assignment Jun 28, 2024
@engcom-Delta engcom-Delta self-assigned this Jun 28, 2024
Copy link

m2-assistant bot commented Jun 28, 2024

Hi @engcom-Delta. 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: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
  • 3. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
  • 4. Verify that the issue is reproducible on 2.4-develop branch
    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.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. Add label Issue: Confirmed once verification is complete.
  • 6. Make sure that automatic system confirms that report has been added to the backlog.

@engcom-Delta
Copy link
Contributor

Hi @dariovranjkovic ,

Verified the issue on 2.4.7 and it is reproducible.

Steps to reproduce:-

1.Send request for update customer to rest API

Screenshot 2024-06-28 at 9 00 43 PM

@engcom-Delta engcom-Delta added the Issue: needs update Additional information is require, waiting for response label Jun 28, 2024
@m2-community-project m2-community-project bot moved this from Ready for Confirmation to Needs Update in Issue Confirmation and Triage Board Jun 28, 2024
@engcom-Delta
Copy link
Contributor

Hi @dariovranjkovic ,

Verified this issue on 2.4.3 and 2.4.7 and it is reproducible on 2.4.7.

Hence confirming this issue.

Steps to reproduce:-

1.Send request for update customer to rest API

2.4.3 ,working fine

Screenshot 2024-07-01 at 7 24 04 PM

2.4.7, error

Screenshot 2024-07-01 at 7 26 48 PM

@engcom-Delta engcom-Delta added Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Component: Api Use with concrete module component label E.g. "Component: Api" + "Catalog" Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch Area: Content labels Jul 1, 2024
@m2-community-project m2-community-project bot removed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed labels Jul 1, 2024
@m2-community-project m2-community-project bot moved this from Needs Update to Confirmed in Issue Confirmation and Triage Board Jul 1, 2024
@engcom-Delta engcom-Delta added Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed and removed Issue: needs update Additional information is require, waiting for response labels Jul 1, 2024
@github-jira-sync-bot
Copy link

✅ Jira issue https://jira.corp.adobe.com/browse/AC-12318 is successfully created for this GitHub issue.

Copy link

m2-assistant bot commented Jul 1, 2024

✅ Confirmed by @engcom-Delta. Thank you for verifying the issue.
Issue Available: @engcom-Delta, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

@github-jira-sync-bot
Copy link

❌ Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/AC-12318

@engcom-Hotel engcom-Hotel added the Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. label Jul 2, 2024
@m2-community-project m2-community-project bot added this to Ready for Development in High Priority Backlog Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Content Component: Api Use with concrete module component label E.g. "Component: Api" + "Catalog" Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. Progress: ready for dev Reported on 2.4.7 Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch
Projects
High Priority Backlog
  
Ready for Development
Development

No branches or pull requests

6 participants