Base table or view not found: 1146 Table 'amazon_sales_order' doesn't existIs there any known way to create a cart item that doesn't exist as a product?Payment processes, but order doesn't show up in backend?Magento 2: Carrier with such method not foundPlugin class …DirectoryDataProcessorPlugin doesn't existMagento 2.2.5: How Cms Page Search Work?Custom Module Grid/Collection class not foundMagento 2: Requested store is not found in productMagento 2.3 Checkout success page 302 not foundMagento2.2.5 amazon_sales_order table does not exist?Error Class not found before deleting generated folder
What is this little owl-like bird?
Having decision making power over someone's assets
Postgres trigram match acting strange for specific characters
Party going through airport security at separate times?
Why is the ladder of the LM always in the dark side of the LM?
Why archangel Michael didn't save Jesus when he was crucified?
Why did Harry Potter get a bedroom?
What attributes and how big would a sea creature(s) need to be able to tow a ship?
How do we handle pauses in a dialogue?
Are there any sports for which the world's best player is female?
The three greedy pirates
The rigidity of the countable product of free groups
Why does the Antonov AN-225 not have any winglets?
A horrible Stockfish chess engine evaluation
"was fiction" vs "were fictions"
When an electron changes its spin, or any other intrinsic property, is it still the same electron?
Did the Ottoman empire suppress the printing press?
What are the original Russian words for a prostitute?
When did "&" stop being taught alongside the alphabet?
What is the right approach to quit a job during probation period for a competing offer?
Why did Old English lose both thorn and eth?
Could you brine steak?
Misrepresented my work history
How quality assurance engineers test calculations?
Base table or view not found: 1146 Table 'amazon_sales_order' doesn't exist
Is there any known way to create a cart item that doesn't exist as a product?Payment processes, but order doesn't show up in backend?Magento 2: Carrier with such method not foundPlugin class …DirectoryDataProcessorPlugin doesn't existMagento 2.2.5: How Cms Page Search Work?Custom Module Grid/Collection class not foundMagento 2: Requested store is not found in productMagento 2.3 Checkout success page 302 not foundMagento2.2.5 amazon_sales_order table does not exist?Error Class not found before deleting generated folder
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm using Magento 2.2.5 Cloud commerce version and at success page I'm getting following error
2019-07-01T13:35:09+00:00 INFO (6): SQLSTATE[42S02]: Base table or
view not found: 1146 Table 'm2.amazon_sales_order' doesn't exist,
query was: SELECTmain_table
.*,
extension_attribute_amazon_order_reference_id
.amazon_order_reference_id
AS
extension_attribute_amazon_order_reference_id_amazon_order_reference_id
,
extension_attribute_amazon_order_reference_id
.order_id
AS
extension_attribute_amazon_order_reference_id_order_id
FROM
sales_order
ASmain_table
LEFT JOINamazon_sales_order
AS
extension_attribute_amazon_order_reference_id
ON
main_table.entity_id =
extension_attribute_amazon_order_reference_id.order_id WHERE
((increment_id
= '14000018349'))
I've checked database and amazon_sales_order
isn't exist.
I can't update the Amazon module version nor Magento 2.
Does any have SQL Script to create this table? or any other solution?
checkout magento-2.2.5 amazon-payment
add a comment |
I'm using Magento 2.2.5 Cloud commerce version and at success page I'm getting following error
2019-07-01T13:35:09+00:00 INFO (6): SQLSTATE[42S02]: Base table or
view not found: 1146 Table 'm2.amazon_sales_order' doesn't exist,
query was: SELECTmain_table
.*,
extension_attribute_amazon_order_reference_id
.amazon_order_reference_id
AS
extension_attribute_amazon_order_reference_id_amazon_order_reference_id
,
extension_attribute_amazon_order_reference_id
.order_id
AS
extension_attribute_amazon_order_reference_id_order_id
FROM
sales_order
ASmain_table
LEFT JOINamazon_sales_order
AS
extension_attribute_amazon_order_reference_id
ON
main_table.entity_id =
extension_attribute_amazon_order_reference_id.order_id WHERE
((increment_id
= '14000018349'))
I've checked database and amazon_sales_order
isn't exist.
I can't update the Amazon module version nor Magento 2.
Does any have SQL Script to create this table? or any other solution?
checkout magento-2.2.5 amazon-payment
add a comment |
I'm using Magento 2.2.5 Cloud commerce version and at success page I'm getting following error
2019-07-01T13:35:09+00:00 INFO (6): SQLSTATE[42S02]: Base table or
view not found: 1146 Table 'm2.amazon_sales_order' doesn't exist,
query was: SELECTmain_table
.*,
extension_attribute_amazon_order_reference_id
.amazon_order_reference_id
AS
extension_attribute_amazon_order_reference_id_amazon_order_reference_id
,
extension_attribute_amazon_order_reference_id
.order_id
AS
extension_attribute_amazon_order_reference_id_order_id
FROM
sales_order
ASmain_table
LEFT JOINamazon_sales_order
AS
extension_attribute_amazon_order_reference_id
ON
main_table.entity_id =
extension_attribute_amazon_order_reference_id.order_id WHERE
((increment_id
= '14000018349'))
I've checked database and amazon_sales_order
isn't exist.
I can't update the Amazon module version nor Magento 2.
Does any have SQL Script to create this table? or any other solution?
checkout magento-2.2.5 amazon-payment
I'm using Magento 2.2.5 Cloud commerce version and at success page I'm getting following error
2019-07-01T13:35:09+00:00 INFO (6): SQLSTATE[42S02]: Base table or
view not found: 1146 Table 'm2.amazon_sales_order' doesn't exist,
query was: SELECTmain_table
.*,
extension_attribute_amazon_order_reference_id
.amazon_order_reference_id
AS
extension_attribute_amazon_order_reference_id_amazon_order_reference_id
,
extension_attribute_amazon_order_reference_id
.order_id
AS
extension_attribute_amazon_order_reference_id_order_id
FROM
sales_order
ASmain_table
LEFT JOINamazon_sales_order
AS
extension_attribute_amazon_order_reference_id
ON
main_table.entity_id =
extension_attribute_amazon_order_reference_id.order_id WHERE
((increment_id
= '14000018349'))
I've checked database and amazon_sales_order
isn't exist.
I can't update the Amazon module version nor Magento 2.
Does any have SQL Script to create this table? or any other solution?
checkout magento-2.2.5 amazon-payment
checkout magento-2.2.5 amazon-payment
asked Jul 1 at 14:03
Kaushal SutharKaushal Suthar
1,8371 gold badge14 silver badges37 bronze badges
1,8371 gold badge14 silver badges37 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Following is query to create amazon_sales_order
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
CREATE TABLE `amazon_sales_order` (
`entity_id` int(10) UNSIGNED NOT NULL COMMENT 'Entity ID',
`order_id` int(10) UNSIGNED NOT NULL COMMENT 'Order ID',
`amazon_order_reference_id` varchar(255) NOT NULL COMMENT 'Amazon Order Reference ID'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='amazon_sales_order';
ALTER TABLE `amazon_sales_order`
ADD PRIMARY KEY (`entity_id`),
ADD UNIQUE KEY `AMAZON_SALES_ORDER_ORDER_ID` (`order_id`);
ALTER TABLE `amazon_sales_order`
MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity ID';
ALTER TABLE `amazon_sales_order`
ADD CONSTRAINT `AMAZON_SALES_ORDER_ORDER_ID_SALES_ORDER_ENTITY_ID` FOREIGN KEY (`order_id`) REFERENCES `sales_order` (`entity_id`) ON DELETE CASCADE;
Following is query to create amazon_quote
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
CREATE TABLE `amazon_quote` (
`entity_id` int(10) UNSIGNED NOT NULL COMMENT 'Entity ID',
`quote_id` int(10) UNSIGNED NOT NULL COMMENT 'Quote ID',
`amazon_order_reference_id` varchar(255) NOT NULL COMMENT 'Amazon Order Reference ID',
`sandbox_simulation_reference` varchar(255) DEFAULT NULL COMMENT 'Sandbox simulation reference',
`confirmed` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Quote confirmed with Amazon'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='amazon_quote';
ALTER TABLE `amazon_quote`
ADD PRIMARY KEY (`entity_id`),
ADD UNIQUE KEY `AMAZON_QUOTE_QUOTE_ID` (`quote_id`);
ALTER TABLE `amazon_quote`
MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity ID';
ALTER TABLE `amazon_quote`
ADD CONSTRAINT `AMAZON_QUOTE_QUOTE_ID_QUOTE_ENTITY_ID` FOREIGN KEY (`quote_id`) REFERENCES `quote` (`entity_id`) ON DELETE CASCADE;
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f280332%2fbase-table-or-view-not-found-1146-table-amazon-sales-order-doesnt-exist%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Following is query to create amazon_sales_order
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
CREATE TABLE `amazon_sales_order` (
`entity_id` int(10) UNSIGNED NOT NULL COMMENT 'Entity ID',
`order_id` int(10) UNSIGNED NOT NULL COMMENT 'Order ID',
`amazon_order_reference_id` varchar(255) NOT NULL COMMENT 'Amazon Order Reference ID'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='amazon_sales_order';
ALTER TABLE `amazon_sales_order`
ADD PRIMARY KEY (`entity_id`),
ADD UNIQUE KEY `AMAZON_SALES_ORDER_ORDER_ID` (`order_id`);
ALTER TABLE `amazon_sales_order`
MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity ID';
ALTER TABLE `amazon_sales_order`
ADD CONSTRAINT `AMAZON_SALES_ORDER_ORDER_ID_SALES_ORDER_ENTITY_ID` FOREIGN KEY (`order_id`) REFERENCES `sales_order` (`entity_id`) ON DELETE CASCADE;
Following is query to create amazon_quote
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
CREATE TABLE `amazon_quote` (
`entity_id` int(10) UNSIGNED NOT NULL COMMENT 'Entity ID',
`quote_id` int(10) UNSIGNED NOT NULL COMMENT 'Quote ID',
`amazon_order_reference_id` varchar(255) NOT NULL COMMENT 'Amazon Order Reference ID',
`sandbox_simulation_reference` varchar(255) DEFAULT NULL COMMENT 'Sandbox simulation reference',
`confirmed` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Quote confirmed with Amazon'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='amazon_quote';
ALTER TABLE `amazon_quote`
ADD PRIMARY KEY (`entity_id`),
ADD UNIQUE KEY `AMAZON_QUOTE_QUOTE_ID` (`quote_id`);
ALTER TABLE `amazon_quote`
MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity ID';
ALTER TABLE `amazon_quote`
ADD CONSTRAINT `AMAZON_QUOTE_QUOTE_ID_QUOTE_ENTITY_ID` FOREIGN KEY (`quote_id`) REFERENCES `quote` (`entity_id`) ON DELETE CASCADE;
add a comment |
Following is query to create amazon_sales_order
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
CREATE TABLE `amazon_sales_order` (
`entity_id` int(10) UNSIGNED NOT NULL COMMENT 'Entity ID',
`order_id` int(10) UNSIGNED NOT NULL COMMENT 'Order ID',
`amazon_order_reference_id` varchar(255) NOT NULL COMMENT 'Amazon Order Reference ID'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='amazon_sales_order';
ALTER TABLE `amazon_sales_order`
ADD PRIMARY KEY (`entity_id`),
ADD UNIQUE KEY `AMAZON_SALES_ORDER_ORDER_ID` (`order_id`);
ALTER TABLE `amazon_sales_order`
MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity ID';
ALTER TABLE `amazon_sales_order`
ADD CONSTRAINT `AMAZON_SALES_ORDER_ORDER_ID_SALES_ORDER_ENTITY_ID` FOREIGN KEY (`order_id`) REFERENCES `sales_order` (`entity_id`) ON DELETE CASCADE;
Following is query to create amazon_quote
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
CREATE TABLE `amazon_quote` (
`entity_id` int(10) UNSIGNED NOT NULL COMMENT 'Entity ID',
`quote_id` int(10) UNSIGNED NOT NULL COMMENT 'Quote ID',
`amazon_order_reference_id` varchar(255) NOT NULL COMMENT 'Amazon Order Reference ID',
`sandbox_simulation_reference` varchar(255) DEFAULT NULL COMMENT 'Sandbox simulation reference',
`confirmed` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Quote confirmed with Amazon'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='amazon_quote';
ALTER TABLE `amazon_quote`
ADD PRIMARY KEY (`entity_id`),
ADD UNIQUE KEY `AMAZON_QUOTE_QUOTE_ID` (`quote_id`);
ALTER TABLE `amazon_quote`
MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity ID';
ALTER TABLE `amazon_quote`
ADD CONSTRAINT `AMAZON_QUOTE_QUOTE_ID_QUOTE_ENTITY_ID` FOREIGN KEY (`quote_id`) REFERENCES `quote` (`entity_id`) ON DELETE CASCADE;
add a comment |
Following is query to create amazon_sales_order
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
CREATE TABLE `amazon_sales_order` (
`entity_id` int(10) UNSIGNED NOT NULL COMMENT 'Entity ID',
`order_id` int(10) UNSIGNED NOT NULL COMMENT 'Order ID',
`amazon_order_reference_id` varchar(255) NOT NULL COMMENT 'Amazon Order Reference ID'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='amazon_sales_order';
ALTER TABLE `amazon_sales_order`
ADD PRIMARY KEY (`entity_id`),
ADD UNIQUE KEY `AMAZON_SALES_ORDER_ORDER_ID` (`order_id`);
ALTER TABLE `amazon_sales_order`
MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity ID';
ALTER TABLE `amazon_sales_order`
ADD CONSTRAINT `AMAZON_SALES_ORDER_ORDER_ID_SALES_ORDER_ENTITY_ID` FOREIGN KEY (`order_id`) REFERENCES `sales_order` (`entity_id`) ON DELETE CASCADE;
Following is query to create amazon_quote
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
CREATE TABLE `amazon_quote` (
`entity_id` int(10) UNSIGNED NOT NULL COMMENT 'Entity ID',
`quote_id` int(10) UNSIGNED NOT NULL COMMENT 'Quote ID',
`amazon_order_reference_id` varchar(255) NOT NULL COMMENT 'Amazon Order Reference ID',
`sandbox_simulation_reference` varchar(255) DEFAULT NULL COMMENT 'Sandbox simulation reference',
`confirmed` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Quote confirmed with Amazon'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='amazon_quote';
ALTER TABLE `amazon_quote`
ADD PRIMARY KEY (`entity_id`),
ADD UNIQUE KEY `AMAZON_QUOTE_QUOTE_ID` (`quote_id`);
ALTER TABLE `amazon_quote`
MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity ID';
ALTER TABLE `amazon_quote`
ADD CONSTRAINT `AMAZON_QUOTE_QUOTE_ID_QUOTE_ENTITY_ID` FOREIGN KEY (`quote_id`) REFERENCES `quote` (`entity_id`) ON DELETE CASCADE;
Following is query to create amazon_sales_order
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
CREATE TABLE `amazon_sales_order` (
`entity_id` int(10) UNSIGNED NOT NULL COMMENT 'Entity ID',
`order_id` int(10) UNSIGNED NOT NULL COMMENT 'Order ID',
`amazon_order_reference_id` varchar(255) NOT NULL COMMENT 'Amazon Order Reference ID'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='amazon_sales_order';
ALTER TABLE `amazon_sales_order`
ADD PRIMARY KEY (`entity_id`),
ADD UNIQUE KEY `AMAZON_SALES_ORDER_ORDER_ID` (`order_id`);
ALTER TABLE `amazon_sales_order`
MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity ID';
ALTER TABLE `amazon_sales_order`
ADD CONSTRAINT `AMAZON_SALES_ORDER_ORDER_ID_SALES_ORDER_ENTITY_ID` FOREIGN KEY (`order_id`) REFERENCES `sales_order` (`entity_id`) ON DELETE CASCADE;
Following is query to create amazon_quote
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
CREATE TABLE `amazon_quote` (
`entity_id` int(10) UNSIGNED NOT NULL COMMENT 'Entity ID',
`quote_id` int(10) UNSIGNED NOT NULL COMMENT 'Quote ID',
`amazon_order_reference_id` varchar(255) NOT NULL COMMENT 'Amazon Order Reference ID',
`sandbox_simulation_reference` varchar(255) DEFAULT NULL COMMENT 'Sandbox simulation reference',
`confirmed` smallint(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Quote confirmed with Amazon'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='amazon_quote';
ALTER TABLE `amazon_quote`
ADD PRIMARY KEY (`entity_id`),
ADD UNIQUE KEY `AMAZON_QUOTE_QUOTE_ID` (`quote_id`);
ALTER TABLE `amazon_quote`
MODIFY `entity_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'Entity ID';
ALTER TABLE `amazon_quote`
ADD CONSTRAINT `AMAZON_QUOTE_QUOTE_ID_QUOTE_ENTITY_ID` FOREIGN KEY (`quote_id`) REFERENCES `quote` (`entity_id`) ON DELETE CASCADE;
answered Jul 2 at 6:33
Kaushal SutharKaushal Suthar
1,8371 gold badge14 silver badges37 bronze badges
1,8371 gold badge14 silver badges37 bronze badges
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f280332%2fbase-table-or-view-not-found-1146-table-amazon-sales-order-doesnt-exist%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown