cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrade error: Installing data... The entity ID is incorrect. Verify the ID and try again.

Upgrade error: Installing data... The entity ID is incorrect. Verify the ID and try again.

Hallo zusammen,

wenn ich ein selbstgeschriebenes Modul in mein Magento2 einbinden will und magento:upgrade durchführe, bekomme ich folgende Fehlermeldung:

 

Installing data... The entity ID is incorrect. Verify the ID and try again.

 

Was muss ich tun um diesen Fehler zu vermeinden?

 

Gruß

Markus

1 REPLY 1

Re: Upgrade error: Installing data... The entity ID is incorrect. Verify the ID and try again.

Hello Markus,

 

This might be useful for someone.

 

I had the same issue and figured out that I have used "sales_order_item" instead of "order_item" in below line.

$salesSetup->addAttribute('order_item', 'custom_field', $attributeOptions);

Also you need to add the depending module under sequence element of [vendo]/[module]/etc/module.xml, which I already had included.