magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.56k stars 9.32k forks source link

Magento Community Edition: Version 2.4.5 - Import Status Showing Wrong Count #36472

Closed RocktechnolabsDev closed 1 month ago

RocktechnolabsDev commented 2 years ago

Preconditions and environment

Steps to reproduce

  1. Login into admin > System > Data Transfer > Import, Select "Customer Main File" from entity type drop down.

  2. Select "Add/Update Complex Data" option from Import Behaviour drop down.

  3. Rest of fields leave as it is.

  4. Upload prepared csv for import the customer

  5. Click on check data, CSV data validation success, Validation result says: Checked rows: 1707, checked entities: 1707, invalid rows: 0, total errors: 0

  6. While click on import button, Showing status: "Created: 0, Updated: 7, Deleted: 0", "Import successfully done" message. but Updated count show 7 which is from last bunch of import data.

Please check attached screenshot

Screenshot from 2022-11-14 16-49-24 Untitled

Expected result

Created: 0, Updated: 1707, Deleted: 0

Actual result

Created: 0, Updated: 7, Deleted: 0

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 2 years ago

Hi @utsavDarji9395. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:

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:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, review the Magento Contributor Assistant documentation.

Add a comment to assign the issue: @magento I am working on this

To learn more about issue processing workflow, refer to the Code Contributions.


:clock10: You can find the schedule on the Magento Community Calendar page.

:telephone_receiver: 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.

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

m2-assistant[bot] commented 2 years ago

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:

engcom-Bravo commented 2 years ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 2 years ago

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 2 years ago

Hi @engcom-Bravo, here is your Magento Instance: https://f7658729c873db13cd42e674ed58c808.instances.magento-community.engineering Admin access: https://f7658729c873db13cd42e674ed58c808.instances.magento-community.engineering/admin_55b5 Login: f76f02e8 Password: 8e96710e3e37

engcom-Bravo commented 2 years ago

Hi @UtsavRock1811,

Thank you for reporting and collaboration.

Verified the issue on Magento 2.4-develop instance and the issue is not reproducible.Kindly refer the screenshots.

Steps to reproduce

1.Login into admin > System > Data Transfer > Import, Select "Customer Main File" from entity type drop down.

2.Select "Add/Update Complex Data" option from Import Behaviour drop down.

3.Rest of fields leave as it is.

4.Upload prepared csv for import the customer

Screenshot 2022-11-15 at 2 43 42 PM Screenshot 2022-11-15 at 2 48 07 PM

Kindly Provide your CSV file.

Kindly recheck the behavior on Magento 2.4-develop instance and elaborate steps to reproduce if the issue is still reproducible.

Thanks.

RocktechnolabsDev commented 2 years ago

Hi @engcom-Bravo,

Can you please check with more then the 100 records please? As magento divide the CSV data in bunch of 100 limit, So while you import the data more then the 100 count, You are able to reproduce the issue.

Also please find attachment of CSV file. customer.csv

Thank you

engcom-Bravo commented 2 years ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 2 years ago

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 2 years ago

Hi @engcom-Bravo, here is your Magento Instance: https://f7658729c873db13cd42e674ed58c808.instances.magento-community.engineering Admin access: https://f7658729c873db13cd42e674ed58c808.instances.magento-community.engineering/admin_5e7f Login: 57825ff9 Password: 8578cf3437a8

engcom-Bravo commented 2 years ago

Hi @UtsavRock1811,

Thanks for your update.

Verified the issue on Magento 2.4-develop instance.As per steps to reproduce issue is reproducible, but can you please confirm in your case customers are created or not (i.e.108).We are able to create the customers(108) as per your CSV file.Kindly refer the screenshots. There is no issue in creating customers and the issue is in import status.

Before importing we have 1 Customer.

Screenshot 2022-11-16 at 12 07 24 PM Screenshot 2022-11-16 at 11 53 05 AM Screenshot 2022-11-16 at 1 28 59 PM

After Importing we have 109 Customers.

Screenshot 2022-11-16 at 12 09 20 PM

Thanks.

RocktechnolabsDev commented 2 years ago

Hi @engcom-Bravo,

For your information customer create/update action is working fine, Just having issue in import status summary count.

Thanks.

engcom-Bravo commented 2 years ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 2 years ago

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 2 years ago

Hi @engcom-Bravo, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.

engcom-Bravo commented 2 years ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 2 years ago

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 2 years ago

Hi @engcom-Bravo, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.

engcom-Bravo commented 2 years ago

Hi @UtsavRock1811,

Thanks for your Update.

Verified the issue on Magento 2.4-develop instance and the issue is reproducible.Kindly refer the screenshots.

Steps to reproduce

1.Login into admin > System > Data Transfer > Import, Select "Customer Main File" from entity type drop down.

2.Select "Add/Update Complex Data" option from Import Behaviour drop down.

3.Rest of fields leave as it is.

4.Upload prepared csv for import the customer

We have used below CSV file to import customer records.we are able to create the customers but error in after importing the file in import status count.

1736.csv

Screenshot 2022-11-16 at 11 53 05 AM Screenshot 2022-11-16 at 1 28 59 PM

Hence confirming the issue.

Thanks.

github-jira-sync-bot commented 2 years ago

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

m2-assistant[bot] commented 2 years ago

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

Vasudev-22 commented 1 year ago

@magento I am working on this

hostep commented 1 year ago

Looks to be fixed in https://github.com/magento/magento2/commit/e4b7b7c8c8287c3002ba12fb44df27f962984503

engcom-Bravo commented 1 month ago

@hostep Thanks for your Contribution!!.

As per this comment https://github.com/magento/magento2/issues/36472#issuecomment-1377807533 issue got already fixed hence we are closing this issue.

Thanks.