Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0029142Openbravo ERPA. Platformpublic2015-03-05 13:112022-02-01 08:09
alostale 
Triage Platform Base 
highmajorsometimes
acknowledgedopen 
5
 
 
Core
No
0029142: update.database does not remove invalid rows with multiple level of cascaded FKs
When updating database the step "removing invalid rows" tries to emulate FK cascade deletion (for cascaded FKs) for those tables where FKs are deactivated.

FK deactivation can occur:

* For AD tables: all of them are deactivated
* Other tables: they are recreated on

The problem is that this step does not take into account recreated tables nor FK dependencies with multiple levels.
- Remove script implemented to fix 0029127
-Install PR14Q3
-Open Costing Rules window
-Create a new Record
-Execute Validate Costing Rule process
-Update to PR14Q4
   -> This error appears:

     [java] 87780 WARN - SQL Command failed with: ERROR: insert or update on table "ad_process_run" violates foreign key constraint "ad_process_run_ad_process_requ"
     [java] Detail: Key (ad_process_request_id)=(A4A686C15C074C80982C31D6943F46AB) is not present in table "ad_process_request".
     [java] 87785 WARN - -- END
     [java] ALTER TABLE AD_PROCESS_RUN
     [java] ADD CONSTRAINT AD_PROCESS_RUN_AD_PROCESS_REQU FOREIGN KEY (AD_PROCESS_REQUEST_ID) REFERENCES AD_PROCESS_REQUEST (AD_PROCESS_REQUEST_ID) ON DELETE CASCADE
No tags attached.
related to defect 0029127 closed alostale PR14Q3 -> PR14Q4 update can fail activating FKs 
related to feature request 0029270 closed alostale prevent table recreation in update.database 
Issue History
2015-03-05 13:11alostaleNew Issue
2015-03-05 13:11alostaleAssigned To => alostale
2015-03-05 13:11alostaleModules => Core
2015-03-05 13:11alostaleTriggers an Emergency Pack => No
2015-03-05 13:11alostaleRelationship addedrelated to 0029127
2015-03-05 13:11alostaleStatusnew => acknowledged
2015-03-13 12:09alostaleRelationship addedrelated to 0029270
2015-03-17 14:38alostaleAssigned Toalostale => platform
2015-11-11 11:34alostalePrioritynormal => high
2015-11-11 12:36alostaleTypedefect => design defect
2022-02-01 08:09alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.