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

Requested product doesn't exist #67

Closed
mamreezaa opened this issue Aug 13, 2017 · 13 comments
Closed

Requested product doesn't exist #67

mamreezaa opened this issue Aug 13, 2017 · 13 comments
Assignees

Comments

@mamreezaa
Copy link

I have the following error when cron runs
'[Magento\Framework\Exception\NoSuchEntityException]
Requested product doesn't exist'

i can make sure this comes from Model/Api/Orders.php

Note : i think we need to skip the order if the product does not exist instead if breaking the process.

@mikehenze
Copy link

@mamreezaa
After implementing your changes from #58 I actually now get the same error.

I have many orders where the product does not exist anymore.

@mamreezaa
Copy link
Author

The problem is
$productData = $this->_apiProduct->sendModifiedProduct($order, $mailchimpStoreId, $magentoStoreId); in order.php

i did try and catch this statement to make sure not to break the loop.
try { $productData = $this->_apiProduct->sendModifiedProduct($order, $mailchimpStoreId, $magentoStoreId); if (count($productData)) { foreach ($productData as $p) { $batchArray[$this->_counter] = $p; $this->_counter++; } } }catch (\Exception $e){ $this->_helper->log($e->getMessage()); continue; }

NOte: there are two places we have to do the same fix in order.php

@mikehenze
Copy link

mikehenze commented Aug 18, 2017

The commit does not fix this for me.
My log is filled with "Requested product doesn't exist" and the orders are not send to mailchimp.
Subscribers and products work fine.

Note: I have many orders (8000+) with products that do not exist anymore.

Edit: If i set the data to a couple of months ago it will add new orders again so I am guessing it hits a timeout error when trying to add many orders with the products deleted from it.

Please investigate,

@msawyers
Copy link

msawyers commented Feb 8, 2018

Hi, any fix for this issue?

@msawyers
Copy link

msawyers commented Feb 8, 2018

I am receiving same on version mc-magento 1.0.26

[2018-02-08 16:20:39] main.CRITICAL: Requested product doesn't exist {"exception":"[object] (Magento\Framework\Exception\NoSuchEntityException(code: 0): Requested product doesn't exist at /home/public_html/vendor/magento/module-catalog/Model/ProductRepository.php:240)"} []

@sneha-sukumaran
Copy link

Issues exists in version 1.0.29 too. When can we expect a fix for this?

@khnaim
Copy link

khnaim commented Jul 25, 2018

I have this Issues in version 1.0.28 and 1.0.29 , did you find a solution for this fix ?

@GideonBabu
Copy link

Hi @gonzaloebiz it looks like this issue still persist even after the commit code is implemented. Do we have any patch code to get this fixed in our environment also we are facing this issue?

We have migrated a website from Magento 1 to Magento 2. Many orders are with products that do not exist in the new store. So the logs are filled with requested product doesn't exist

If you could provide us with a patch or code fix, that is appreciatable.

@cclohman
Copy link

cclohman commented Oct 29, 2018

@gonzaloebiz Same here for us @GideonBabu. We've been working extensively with Pablo @ ebizmarts customer support on several issues and now that we are updated to 1.0.30, we are seeing our cron table fill with this error as well. We are on Mage 2.2.1, Mailchimp 4 Magento 1.0.30, Mailchimp Lib 3.0.28.

@cjbelo
Copy link

cjbelo commented Nov 8, 2018

I am also getting this error "Requested product doesn't exist" with my Magento 2.1.7 & MailChimp 1.0.27. Any update regarding this? Thanks!

@gonzaloebiz
Copy link
Collaborator

Hi @cjbelo

yes sure, update the extension to the current version

Best

@duckchip
Copy link

@gonzaloebiz I still have this issue with 1.1.32 and Magento 2.1.11

@gonzaloebiz
Copy link
Collaborator

@duckchip if you have an issue, please open a new issue with all the corresponding data

Best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants