Magento Connector - 404 Not Found Error on Import Operation

Document created by chris_fagan Employee on Jan 17, 2017Last modified by chris_stevens on Feb 2, 2017
Version 2Show Document
  • View in full screen mode

Issue

When using Boomi's Magento Connector and trying to import an operation, after choosing your object type (Products, Customers, Orders, or Invoice), the Import Operation throws an "Unable to browse connector: Error generating profile: 404 Not Found" error message.

 

 

 

Cause

When performing an Import Operation, Boomi's Magento Connector first uses the Magento connection to perform a token based authentication with the Magento environment using the following URL format:

http://abc.com/magentosite/index.php/rest/V1/integration/admin/token

In most cases, the "/rest/V1" path specifically is what the Magento environment is configured to use when calling upon REST based procedures, but is something to look into when we see the 404 errors. 

 

After performing the token based authentication, our Connector then proceeds to retrieve data based on the Object Type selected in the Import Operation. However, this step uses a slightly different URL path:

http://abc.com/magentosite/index.php/rest/default/schema

In this case, we're specifically using a "/rest/default" path to pull back the data from the Magento site, which is slightly different than the "/rest/V1" path used in the token based authentication step.

 

Ultimately, when we see the 404 Not Found Error being thrown on an Import, it's typically failing due to it not being able to hit the "default" path. 

 

 

Solution

Generally, when a Magento environment is created and configured, it's often only configured to include the "/rest/V1" path, but a "default" path may not be created or configured. This needs to be resolved on the Magento side by completing the following steps:

  1. Log onto your Magento Backend / Admin Panel.
  2. Navigate to Stores -> All Stores.
  3. Click on the Store View you'd like to modify.
  4. In the Code Field, change the value to "default". 

 

This should allow the Magento store to use the /rest/default URL and resolve the 404 error being seen in the import operation.

Attachments

    Outcomes