Dell Released

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Friday, August 23, 2013

Magento Upgrade, getting error with tier prices from 1.4.0.2 to 1.7.0.2

Posted on 1:18 AM by Unknown
Magento Upgrade, getting error with tier prices from 1.4.0.2 to 1.7.0.2



Getting the following error:

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update

a child row: a foreign key constraint fails

(`catalog_product_entity_tier_price`, CONSTRAINT

`FK_6E08D719F0501DD1D8E6D4EFF2511C85` FOREIGN KEY (`customer_group_id`)

REFERENCES `customer_group` (`customer_group_id`) ON DEL)

Not sure how to fix this. Any help????

When I check database, customer_group has four rows just like any other

magento installation where as catalog_product_entity_tier_price is totally

empty.

customer_group table dump:

CREATE TABLE IF NOT EXISTS `customer_group` (

`customer_group_id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT

'Customer Group Id',

`customer_group_code` varchar(32) NOT NULL COMMENT 'Customer Group Code',

`tax_class_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Tax Class Id',

PRIMARY KEY (`customer_group_id`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Customer Group'

AUTO_INCREMENT=5 ;

--

-- Dumping data for table `customer_group`

--

INSERT INTO `customer_group` (`customer_group_id`, `customer_group_code`,

`tax_class_id`) VALUES

(1, 'General', 3),

(2, 'Wholesale', 3),

(3, 'Retailer', 3),

(4, 'NOT LOGGED IN', 3);

catalog_product_entity_tier_price dump:

--

-- Table structure for table `catalog_product_entity_tier_price`

--

CREATE TABLE IF NOT EXISTS `catalog_product_entity_tier_price` (

`value_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Value ID',

`entity_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Entity ID',

`all_groups` smallint(5) unsigned NOT NULL DEFAULT '1' COMMENT 'Is

Applicable To All Customer Groups',

`customer_group_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT

'Customer Group ID',

`qty` decimal(12,4) NOT NULL DEFAULT '1.0000' COMMENT 'QTY',

`value` decimal(12,4) NOT NULL DEFAULT '0.0000' COMMENT 'Value',

`website_id` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Website

ID',

PRIMARY KEY (`value_id`),

UNIQUE KEY `E8AB433B9ACB00343ABB312AD2FAB087`

(`entity_id`,`all_groups`,`customer_group_id`,`qty`,`website_id`),

KEY `IDX_CATALOG_PRODUCT_ENTITY_TIER_PRICE_ENTITY_ID` (`entity_id`),

KEY `IDX_CATALOG_PRODUCT_ENTITY_TIER_PRICE_CUSTOMER_GROUP_ID`

(`customer_group_id`),

KEY `IDX_CATALOG_PRODUCT_ENTITY_TIER_PRICE_WEBSITE_ID` (`website_id`)

) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Catalog Product Tier Price

Attribute Backend Table' AUTO_INCREMENT=4 ;

--

-- Constraints for dumped tables

--

--

-- Constraints for table `catalog_product_entity_tier_price`

--

ALTER TABLE `catalog_product_entity_tier_price`

ADD CONSTRAINT `FK_6E08D719F0501DD1D8E6D4EFF2511C85` FOREIGN KEY

(`customer_group_id`) REFERENCES `customer_group` (`customer_group_id`)

ON DELETE CASCADE ON UPDATE CASCADE,

ADD CONSTRAINT `FK_CAT_PRD_ENTT_TIER_PRICE_ENTT_ID_CAT_PRD_ENTT_ENTT_ID`

FOREIGN KEY (`entity_id`) REFERENCES `catalog_product_entity`

(`entity_id`) ON DELETE CASCADE ON UPDATE CASCADE,

ADD CONSTRAINT `FK_CAT_PRD_ENTT_TIER_PRICE_WS_ID_CORE_WS_WS_ID` FOREIGN

KEY (`website_id`) REFERENCES `core_website` (`website_id`) ON DELETE

CASCADE ON UPDATE CASCADE;

Please help me how to fix this issue. (using magento 1.7.0.2)

Thank You.
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Increasing the font size of a webview conflict with UIScrollView
    Increasing the font size of a webview conflict with UIScrollView i have a UIWebView inside a UIScrollView. I am using this code to increase ...
  • candied mints storage and transporting long distance
    candied mints storage and transporting long distance I'm making mints for my nephew's wedding (containing powdered sugar, butter, wh...
  • WordPress Guest Author - How can I use custom fields to create guest author link?
    WordPress Guest Author - How can I use custom fields to create guest author link? We are posting articles authored by guest authors. The gue...
  • I need to make my JPanel resize dynamically as new components are being added to it
    I need to make my JPanel resize dynamically as new components are being added to it I need to let users add more text fields to my JFrame so...
  • FREE 50 GB of Online Storage
    The wave of future computing is portable and in the cloud. Since you are a proud owner of a Dell Streak tablet, you are already doing portab...
  • system of pde (solid mechanics)
    system of pde (solid mechanics) Please I am currently solving the following system of Partial Differential Equations as follows; -Mx/Dxy = (...
  • Restore only some volumes from a multiOS system image
    Restore only some volumes from a multiOS system image I have two Windows installations on different drives. System Restore won't let me ...
  • Live USB quit working...HELP :-)
    Live USB quit working...HELP :-) I had 13.04 32bit running great on a Sandisk Extreme USB 3.0 64gb stick. For the most part I use it on a To...
  • Dell Released Official Gingerbread Update For Streak 5
    To everyone's amazement, Dell has just released the Gingerbread update for their discontinued Streak 5. This is an official build from D...
  • Undefined symbols error from static framework
    Undefined symbols error from static framework I'm linking against a static framework in my Xcode project, but despite setting everything...

Categories

  • Games
  • News
  • Streak 5
  • Streak 7
  • Tips

Blog Archive

  • ▼  2013 (124)
    • ▼  August (124)
      • Should I make multiple SQLite databases for better...
      • Difference between Nil and nil and Null in Objecti...
      • Cannot connect to SQL Server 2012
      • Android - error opening file just created
      • PHP SimpleXML doesn't output anything
      • Memory leak (igraph, watts.strogatz.game, get.all....
      • How do I position a div on top of another div
      • Updating foreign key references on the DbContext C...
      • Convert string to DateTime and format
      • call function on click outside of a particular div
      • OperationalError when inserting into sqlite 3 in P...
      • Trying to print a string character by character wi...
      • I need to make my JPanel resize dynamically as new...
      • How to retrieve images from cache memory?
      • how to add jscrollpane to jframe?
      • Query on how to Select Date before the latest Date...
      • Does archive size of tar, zip and rar effect the t...
      • How do I make a DOM object follow a circular path ...
      • how to use for loop for my issue
      • AngularJS - Pass variable from a controller & upda...
      • Windows 2012: how to make power button work in eve...
      • IN OBOUT grid, how to move from first grid to anot...
      • Am I using the form action correctly?
      • Increasing the font size of a webview conflict wit...
      • quicktags "link" button doesn't work, but all othe...
      • Cannot access local variables using systemtap
      • Remove/avoid adding target link to URL
      • Left-justified equations with left tags (so it loo...
      • [ Marriage & Divorce ] Open Question : My boyfrien...
      • livetv2pc)))WaTch (Rugby) Australia vs New Zealand...
      • The Google Visualization API Query Language: Query...
      • iOS 7 phone-number link doesn't work when webpage ...
      • Cross-browser textarea maxlength
      • candied mints storage and transporting long distance
      • how to convert objectHTML into html
      • Mellin transform definition
      • Multiple Google Calendars with one Google Cal ID
      • Dell PowerEdge 2950 PCIe Training Error -- No PCIe...
      • Reset Disk - Windows Storage Server 2012
      • Windows Phone 8 - Keeping background location trac...
      • Django forms design suggestiom
      • Magento Upgrade, getting error with tier prices fr...
      • Bouncing between "Adapter is detached" and "No wra...
      • How to create overlapping - not stacking - shapes ...
      • Enclosing capsules around list based arrays [on hold]
      • Identifying Switch case argument (Perl)
      • asp.net ModalPopupExtender not behaving properly
      • fanotify unable monitor entire system for FAN_OPEN...
      • Jquery UI datepicker inline "onclick" handler caus...
      • URL constantly results in a badbox
      • Split values over multiple rows with different del...
      • How to aggregate data without group by
      • Angular $scope.$watch on (for in... ) don't work
      • Using Modernizr to test browser support for css ca...
      • Content overlapping in navigation menu?
      • cls file - multiple files
      • Differences between "fortification nouns"
      • filtration on the cohomology of a complex
      • Problems with every aspect of facebook that involv...
      • Extract data from last line in a text file using PHP
      • How to properly provide data for ?
      • ConditionalPanel doesn't support variables with do...
      • Frequent out of memory issues
      • Undefine reference for libraries, so How could I f...
      • radio buttons checked with jquery not holding prop...
      • How to modify bash command to change permissions
      • header(Content-type: image/jpeg) not working
      • Removing smart quotes from an SQL server text column
      • Getting out of sync server response
      • thesis work" vs "thesis
      • php radio post wrong same value after submit
      • Several questions about trigonometry and functions
      • A div that adapts to its background
      • Why are there two different versions of the mean a...
      • Restore only some volumes from a multiOS system image
      • system of pde (solid mechanics)
      • Application or Object defined error - VBA Excel 2013
      • Deleting the last few revisions: SVN best practice
      • Choose blackberry 10 platform to use call logs, me...
      • Procedure or function usp_logout has too many argu...
      • how can i use combination of unix signals (like SI...
      • Basic Javascript Countdown Timer Taking Longer Tha...
      • WordPress Guest Author - How can I use custom fiel...
      • button to generate html delete method?
      • socket.io redis ECONNREFUSED
      • Can one http request call multiple css files?
      • .htaccess related codeigniter. why error 404 page ...
      • Undefined symbols error from static framework
      • XML Sitemap Generator for URL with 1.5 million pages?
      • How do I prevent Microsoft DNS from reporting vers...
      • Solve the equation for x, y and z: $\sqrt{x-y+z}=\...
      • A basic doubt on linear dependence of vectors
      • mysql charsets, can I perform the conversion in py...
      • Mirrors Edge video settings are locked
      • Receiving null messages on android, how to fix it?
      • changing an onEdit function to run onOpen
      • Handle Multiple Form tag in asp.net page?
      • Getting click event on parent page of button in frame
      • Fix column width with tabularx
      • best software to use to make a website
      • NSLog returns (null) when logging string from anot...
      • Add express middleware for param validations
      • R "object x not found error" in calling self-defin...
      • Android Application for Registration to a website
      • How to insert multiple Facebook comment boxes on o...
      • How can I group by the difference of a column betw...
      • for loop with two integers
      • Why is unsigned integer overflow defined behavior ...
      • Using multiple SELECT statements to narrow results
      • Android: Logout system and the android lifecycle
      • how to use font awesome in own css?
      • Nested Lists in Spring Expression Language
      • Live USB quit working...HELP :-)
      • Need help in drawGradientArea
      • django-ckeditor Image Browsing
      • C3P0 connection Pooling issues
      • Code keeps entering values into array backwards
      • Number of permutations with repeated objects.
      • How do I suspend a certain process when display is...
      • How to free Watch Houston Texans vs Minnesota Viki...
      • UPS Shipping required I get a new account ID and n...
      • Java concurrency - Is this efficient?
      • Are floated element really removed from normal htm...
      • How to implement Jquery Text Editor with Hindi Lan...
  • ►  2012 (6)
    • ►  February (2)
    • ►  January (4)
  • ►  2011 (10)
    • ►  December (1)
    • ►  November (2)
    • ►  October (7)
Powered by Blogger.

About Me

Unknown
View my complete profile