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

Table 'customer_entity' doesn't exist #306

Closed
croxarens opened this issue May 24, 2017 · 7 comments
Closed

Table 'customer_entity' doesn't exist #306

croxarens opened this issue May 24, 2017 · 7 comments

Comments

@croxarens
Copy link

Hi,

I'm getting the following errors when I migrate and the destination database has a prefix

[Zend_Db_Statement_Exception]                                                                                                           
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dbtest.customer_entity' doesn't exist, query was: DESCRIBE `customer_entity`  
  [PDOException]                                                                                   
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dbtest.customer_entity' doesn't exist 

It looks like it's ignoring the prefix.
Without prefix the migration is working with no problem.

@victor-v-rad
Copy link
Collaborator

Hi @croxarens

Try adding
$destinationDocName = $this->destination->addDocumentPrefix($destinationDocName);
into the beginning of \Migration\Step\Customer\Helper::getFieldsWithDefaultValues() Here

@victor-v-rad
Copy link
Collaborator

internal ticket to fix MAGETWO-69465

@croxarens
Copy link
Author

@victor-v-rad I'll try as soon as I'll complete the delta migration (see issue #307)

@sduif
Copy link

sduif commented May 30, 2017

Had the same error when migrating to a fresh install with a prefix. Can confirm that adding $destinationDocName = $this->destination->addDocumentPrefix($destinationDocName); did the trick and fixed the issue.

@iphigenie
Copy link
Contributor

confirming just for completeness that the commit fixes the issue

@victor-v-rad
Copy link
Collaborator

Fixed

@MohanaKrishnan7
Copy link

@victor-v-rad Why the file is empty?
https://github.com/magento/data-migration-tool/blob/master/src/Migration/Step/Customer/Helper.php#L253

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

5 participants