Comments (13)
@engcom-Dash I take it you didn't mean to add the reproduced issue label...
from magento2.
Hi @abhiramalli. 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:
@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.
Join Magento Community Engineering Slack and ask your questions in #github channel.
π 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.
from magento2.
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: π
-
- Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
-
- Verify that issue has a meaningful description and provides enough information to reproduce the issue.
-
- Add
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.
- Add
-
- Verify that the issue is reproducible on
2.4-develop
branchDetails
- Add the comment@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on2.4-develop
branch, please, add the labelReproduced 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!
- Verify that the issue is reproducible on
- Join Magento Community Engineering Slack and ask your questions in #github channel.
from magento2.
It sounds like your consumer isn't using a Factory to get the latest product data from the database before modifying the object? In this case you probably want to use a ProductInterfaceFactory
. See https://magento.stackexchange.com/a/158098
If you do use a Factory and still have this issue, you'll have to post some code here to showcase the bug.
from magento2.
Hi @abhiramalli
Thanks for reporting and collaboration.
Can you please more information on the preconditions - rabbitmq consumer to consume incoming product data from external system.
Thanks.
from magento2.
@hostep I am using factories to to fetch product
from magento2.
@engcom-Dash
I have created queue known as product import quaue in rabbitmq
My external system is adding product data in json form
And i have built custom module to consume and create product and i also added eav attribute I'm product entity add unique id for product so that my external systems product id is matched to it,
While updating I am checking that already product with external system product id exists or not if exist I am fetching product from it using factory
from magento2.
and one more case
when i create product from external system using consumer and custom logic
and delete same product from magento admin
again try to push the same data from the external system , magento says product doesnot exists instead of creating new product
after debuging i found
issue is becacuse when i send same data in the above code it checkes id present or not,
if id not present it will take sku and try to fetch from get(sku) method
when it uses get(sku) method it is returning my old product from cache which is present before deleting ,
my consumer instance is not getting to know product is deleted from admin and also class level cache is not vanishing or removing(that is $this->instance[cacheKey]
from magento2.
@engcom-Dash
any updates
from magento2.
@abhiramalli you can use custom attribute to save product from external system.
For example, external_product_id.
To update products from external system, match the SKU from Magento 2.
from magento2.
Hi @engcom-Hotel. 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
branchDetails
- Add the comment@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on2.4-develop
branch, please, add the labelReproduced 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.
from magento2.
Hello @abhiramalli,
I agree with @ananth-iyer here, please use the custom attribute to save the product from the external system.
And also if you are getting the same issue while updating the product even if you are using ProductInterfaceFactory
then can you please provide us some codebase samples and screenshots to understand the issue more?
Thanks
from magento2.
Dear @abhiramalli,
We've observed that there haven't been any updates on this issue for quite some time. Therefore, we're assuming it's been resolved and will be closing it. Feel free to open a new ticket or reopen this one if you require further assistance.
Regards
from magento2.
Related Issues (20)
- Magento Responds with 500 on certain pages if you include the "Accept: text/html" header HOT 11
- Ui Component File Field HOT 10
- [Issue] Add customer_address_id to cartAddressInterface HOT 2
- [Issue] Change status filter to state to allow cancel expired orders with allβ¦
- [Issue] Remove `Array.from` polyfill from PrototypeJS 1.7.3 included in `legacy-build.min.js` HOT 2
- Magento_MediaGalleryApi module sequences doesn't integrate Magento_MediaGallery HOT 3
- OrderGridCollectionFilter Plugin Breaks Mapping for created_at Column HOT 6
- Cannot change intermediate custom status in admin using add comment form HOT 10
- Cache Identifier different in load, save, remove functions HOT 9
- Errors on the Extensions upload on the commercedeveloper.adobe.com HOT 1
- User not able to save the Visibility attribute with the option other than the Catalog, Search HOT 3
- Putting csp_whitelist.xml in theme does not work and creates intermittent issue HOT 1
- Slow processing of attributes with Table source_model HOT 1
- Nonce for Design configuration HOT 1
- [Issue] Insufficient Attribute Error Details During Product Import in Magento 2 HOT 1
- URL Keys and redirects in multi-view stores HOT 6
- Inaccurate doc block comment in Product Stock and Price Alerts HOT 1
- [GraphQL] attributesList.items.is_filterable doesn't return true for Filterable (no results) HOT 2
- Products in Page Builder stopped working HOT 5
- Translations with \n are not translatable HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magento2.