Remove timestamp from output of mip_friendly_messages.pck

Add constraint to regi_enqu_exclusions to prevent both enquiry and additional items being recorded on the same row.

Allow schema to be passed to apex_auto_install.rb.

git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@3666 248e525c-4dfb-0310-94bc-949c084e9493
This commit is contained in:
hardya
2008-02-21 17:56:52 +00:00
parent e15c3787ac
commit aab27144a0
11 changed files with 315 additions and 277 deletions

View File

@@ -13,175 +13,176 @@ ADDR_PK|Attempting to create a duplicate Addresses entry
ADIT_PK|Attempting to create a duplicate Additional_Items entry
ALTY_PK|Attempting to create a duplicate Asset_Location_Types entry
AUTH_PK|Attempting to create a duplicate Apex_Authorization entry
AUTH_RT_FK|Application Error: Attempting to violate foreign key constraint AUTH_RT_FK. Please report
BAS_DRWG_FK|Application Error: Attempting to violate foreign key constraint BAS_DRWG_FK. Please repo
AUTH_RT_FK|Application Error: Attempting to violate foreign key constraint AUTH_RT_FK. Please report this error to Advantica.
BAS_DRWG_FK|Application Error: Attempting to violate foreign key constraint BAS_DRWG_FK. Please report this error to Advantica.
BAS_PK|Attempting to create a duplicate Bases entry
BUILDING_OR_SUBBUILDING_REQ|Application Error: Attempting to violate check constraint BUILDING_OR_SU
BUILDING_OR_SUBBUILDING_REQ|Application Error: Attempting to violate check constraint BUILDING_OR_SUBBUILDING_REQ. Please report this error to Advantica.
BYRE_PK|Attempting to create a duplicate Bypass_Reasons entry
CACA_PK|Attempting to create a duplicate Care_Categories entry
CATE_ENTY_FK|Application Error: Attempting to violate foreign key constraint CATE_ENTY_FK. Please re
CATE_METY_FK|Application Error: Attempting to violate foreign key constraint CATE_METY_FK. Please re
CATE_ENTY_FK|Application Error: Attempting to violate foreign key constraint CATE_ENTY_FK. Please report this error to Advantica.
CATE_METY_FK|Application Error: Attempting to violate foreign key constraint CATE_METY_FK. Please report this error to Advantica.
CATE_PK|Attempting to create a duplicate Caveat_Texts entry
CATE_SVCPT_FK|Application Error: Attempting to violate foreign key constraint CATE_SVCPT_FK. Please
CATE_SVCPT_FK|Application Error: Attempting to violate foreign key constraint CATE_SVCPT_FK. Please report this error to Advantica.
CNOR_PK|Attempting to create a duplicate Connection_Orientations entry
CNTY_PK|Attempting to create a duplicate Connection_Types entry
COME_COMT_FK|Application Error: Attempting to violate foreign key constraint COME_COMT_FK. Please re
COME_COMT_FK|Application Error: Attempting to violate foreign key constraint COME_COMT_FK. Please report this error to Advantica.
COME_PK|Attempting to create a duplicate Contact_Mechanisms entry
COMSG_PK|Attempting to create a duplicate Constraint_Messages entry
COMT_PK|Attempting to create a duplicate Contact_Mechanism_Types entry
COST_ADIT_FK|Application Error: Attempting to violate foreign key constraint COST_ADIT_FK. Please re
COST_BAS_FK|Application Error: Attempting to violate foreign key constraint COST_BAS_FK. Please repo
COST_ENTY_FK|Application Error: Attempting to violate foreign key constraint COST_ENTY_FK. Please re
COST_HOU_FK|Application Error: Attempting to violate foreign key constraint COST_HOU_FK. Please repo
COST_MESC_FK|Application Error: Attempting to violate foreign key constraint COST_MESC_FK. Please re
COST_METR_FK|Application Error: Attempting to violate foreign key constraint COST_METR_FK. Please re
COST_METY_FK|Application Error: Attempting to violate foreign key constraint COST_METY_FK. Please re
COST_MODU_FK|Application Error: Attempting to violate foreign key constraint COST_MODU_FK. Please re
COST_ADIT_FK|Application Error: Attempting to violate foreign key constraint COST_ADIT_FK. Please report this error to Advantica.
COST_BAS_FK|Application Error: Attempting to violate foreign key constraint COST_BAS_FK. Please report this error to Advantica.
COST_ENTY_FK|Application Error: Attempting to violate foreign key constraint COST_ENTY_FK. Please report this error to Advantica.
COST_HOU_FK|Application Error: Attempting to violate foreign key constraint COST_HOU_FK. Please report this error to Advantica.
COST_MESC_FK|Application Error: Attempting to violate foreign key constraint COST_MESC_FK. Please report this error to Advantica.
COST_METR_FK|Application Error: Attempting to violate foreign key constraint COST_METR_FK. Please report this error to Advantica.
COST_METY_FK|Application Error: Attempting to violate foreign key constraint COST_METY_FK. Please report this error to Advantica.
COST_MODU_FK|Application Error: Attempting to violate foreign key constraint COST_MODU_FK. Please report this error to Advantica.
COST_PK|Attempting to create a duplicate Costs entry
COST_REGI_FK|Application Error: Attempting to violate foreign key constraint COST_REGI_FK. Please re
COST_SVCPT_FK|Application Error: Attempting to violate foreign key constraint COST_SVCPT_FK. Please
COST_UK|Attempting to create a duplicate Costs entry. <br>Labour costs should be unique across enqui
DIR_ENTY_FK|Application Error: Attempting to violate foreign key constraint DIR_ENTY_FK. Please repo
COST_REGI_FK|Application Error: Attempting to violate foreign key constraint COST_REGI_FK. Please report this error to Advantica.
COST_SVCPT_FK|Application Error: Attempting to violate foreign key constraint COST_SVCPT_FK. Please report this error to Advantica.
COST_UK|Attempting to create a duplicate Costs entry. <br>Labour costs should be unique across enquiry type, service pressure, meter size, meter type, valid from and region. <br>Costs for modules, housings, bases and additional items should be unique across valid from and region.
DIR_ENTY_FK|Application Error: Attempting to violate foreign key constraint DIR_ENTY_FK. Please report this error to Advantica.
DIR_PK|Attempting to create a duplicate Data_Item_Roles entry
DOCU_PK|Attempting to create a duplicate Documents entry
DOEV_DOCU_FK|Application Error: Attempting to violate foreign key constraint DOEV_DOCU_FK. Please re
DOEV_DOST_FK|Application Error: Attempting to violate foreign key constraint DOEV_DOST_FK. Please re
DOEV_DOCU_FK|Application Error: Attempting to violate foreign key constraint DOEV_DOCU_FK. Please report this error to Advantica.
DOEV_DOST_FK|Application Error: Attempting to violate foreign key constraint DOEV_DOST_FK. Please report this error to Advantica.
DOEV_PK|Attempting to create a duplicate Document_Events entry
DORO_CK|Application Error: Attempting to violate check constraint DORO_CK. Please report this error
DORO_DOCU_FK|Application Error: Attempting to violate foreign key constraint DORO_DOCU_FK. Please re
DORO_DORO_UK|Attempting to enter a duplicate value (defined by unique constraintDORO_DORO_UK).
DORO_DRWG_FK|Application Error: Attempting to violate foreign key constraint DORO_DRWG_FK. Please re
DORO_ENQU_FK|Application Error: Attempting to violate foreign key constraint DORO_ENQU_FK. Please re
DORO_CK|Application Error: Attempting to violate check constraint DORO_CK. Please report this error to Advantica.
DORO_DOCU_FK|Application Error: Attempting to violate foreign key constraint DORO_DOCU_FK. Please report this error to Advantica.
DORO_DORO_UK|Attempting to enter a duplicate value (defined by unique constraint DORO_DORO_UK).
DORO_DRWG_FK|Application Error: Attempting to violate foreign key constraint DORO_DRWG_FK. Please report this error to Advantica.
DORO_ENQU_FK|Application Error: Attempting to violate foreign key constraint DORO_ENQU_FK. Please report this error to Advantica.
DORO_PK|Attempting to create a duplicate Document_Roles entry
DORO_QUTE_FK|Application Error: Attempting to violate foreign key constraint DORO_QUTE_FK. Please re
DORO_RT_FK|Application Error: Attempting to violate foreign key constraint DORO_RT_FK. Please report
DORO_QUTE_FK|Application Error: Attempting to violate foreign key constraint DORO_QUTE_FK. Please report this error to Advantica.
DORO_RT_FK|Application Error: Attempting to violate foreign key constraint DORO_RT_FK. Please report this error to Advantica.
DOST_PK|Attempting to create a duplicate Document_Status_Types entry
DRWG_PK|Attempting to create a duplicate Drawings entry
ENEV_ENQU_FK|Application Error: Attempting to violate foreign key constraint ENEV_ENQU_FK. Please re
ENEV_ENST_FK|Application Error: Attempting to violate foreign key constraint ENEV_ENST_FK. Please re
ENEV_ENQU_FK|Application Error: Attempting to violate foreign key constraint ENEV_ENQU_FK. Please report this error to Advantica.
ENEV_ENST_FK|Application Error: Attempting to violate foreign key constraint ENEV_ENST_FK. Please report this error to Advantica.
ENEV_PK|Attempting to create a duplicate Enquiry_Events entry
ENQU_ALTY_FK|Application Error: Attempting to violate foreign key constraint ENQU_ALTY_FK. Please re
ENQU_CACA_FK|Application Error: Attempting to violate foreign key constraint ENQU_CACA_FK. Please re
ENQU_COMT_AGENT_FK|Application Error: Attempting to violate foreign key constraint ENQU_COMT_AGENT_F
ENQU_ENTY_FK|Application Error: Attempting to violate foreign key constraint ENQU_ENTY_FK. Please re
QUIT_MODU_FK|Application Error: Attempting to violate foreign key constraint QUIT_MODU_FK. Please re
ENQU_ALTY_FK|Application Error: Attempting to violate foreign key constraint ENQU_ALTY_FK. Please report this error to Advantica.
ENQU_CACA_FK|Application Error: Attempting to violate foreign key constraint ENQU_CACA_FK. Please report this error to Advantica.
ENQU_COMT_AGENT_FK|Application Error: Attempting to violate foreign key constraint ENQU_COMT_AGENT_FK. Please report this error to Advantica.
ENQU_ENTY_FK|Application Error: Attempting to violate foreign key constraint ENQU_ENTY_FK. Please report this error to Advantica.
QUIT_MODU_FK|Application Error: Attempting to violate foreign key constraint QUIT_MODU_FK. Please report this error to Advantica.
QUIT_PK|Attempting to create a duplicate Quote_Items entry
QUIT_QUTE_FK|Application Error: Attempting to violate foreign key constraint QUIT_QUTE_FK. Please re
QUIT_SVCPT_FK|Application Error: Attempting to violate foreign key constraint QUIT_SVCPT_FK. Please
QURE_ENQU_FK|Application Error: Attempting to violate foreign key constraint QURE_ENQU_FK. Please re
QUIT_QUTE_FK|Application Error: Attempting to violate foreign key constraint QUIT_QUTE_FK. Please report this error to Advantica.
QUIT_SVCPT_FK|Application Error: Attempting to violate foreign key constraint QUIT_SVCPT_FK. Please report this error to Advantica.
QURE_ENQU_FK|Application Error: Attempting to violate foreign key constraint QURE_ENQU_FK. Please report this error to Advantica.
QURE_PK|Attempting to create a duplicate Quote_Reasoning entry
QURO_PK|Attempting to create a duplicate Quote_Roles entry
QURO_PRTY_FK|Application Error: Attempting to violate foreign key constraint QURO_PRTY_FK. Please re
QURO_QUTE_FK|Application Error: Attempting to violate foreign key constraint QURO_QUTE_FK. Please re
QURO_RT_FK|Application Error: Attempting to violate foreign key constraint QURO_RT_FK. Please report
QURO_PRTY_FK|Application Error: Attempting to violate foreign key constraint QURO_PRTY_FK. Please report this error to Advantica.
QURO_QUTE_FK|Application Error: Attempting to violate foreign key constraint QURO_QUTE_FK. Please report this error to Advantica.
QURO_RT_FK|Application Error: Attempting to violate foreign key constraint QURO_RT_FK. Please report this error to Advantica.
QUST_PK|Attempting to create a duplicate Quote_Statuses entry
QUTE_ENQU_FK|Application Error: Attempting to violate foreign key constraint QUTE_ENQU_FK. Please re
QUTE_ENQU_FK|Application Error: Attempting to violate foreign key constraint QUTE_ENQU_FK. Please report this error to Advantica.
QUTE_PK|Attempting to create a duplicate Quotes entry
REEX_ADIT_FK|Application Error: Attempting to violate foreign key constraint REEX_ADIT_FK. Please re
REEX_ENTY_FK|Application Error: Attempting to violate foreign key constraint REEX_ENTY_FK. Please re
REEX_ADIT_FK|Application Error: Attempting to violate foreign key constraint REEX_ADIT_FK. Please report this error to Advantica.
REEX_ENTY_FK|Application Error: Attempting to violate foreign key constraint REEX_ENTY_FK. Please report this error to Advantica.
REEX_PK|Attempting to create a duplicate Regi_Enqu_Exclusions entry
REEX_REEX_UK|Attempting to enter a duplicate value (defined by unique constraintREEX_REEX_UK).
REEX_REGI_FK|Application Error: Attempting to violate foreign key constraint REEX_REGI_FK. Please re
REEX_REEX_UK|This Non-Tripartite Exclusion has already been defined
REEX_REGI_FK|Application Error: Attempting to violate foreign key constraint REEX_REGI_FK. Please report this error to Advantica.
REGI_PK|Attempting to create a duplicate Regions entry
REGU_PK|Attempting to create a duplicate Regulators entry
REGU_RETY_FK|Application Error: Attempting to violate foreign key constraint REGU_RETY_FK. Please re
REGU_RETY_FK|Application Error: Attempting to violate foreign key constraint REGU_RETY_FK. Please report this error to Advantica.
RETY_PK|Attempting to create a duplicate Regulator_Types entry
REVA_PK|Attempting to create a duplicate Relief_Valves entry
REVA_RVTY_FK|Application Error: Attempting to violate foreign key constraint REVA_RVTY_FK. Please re
REVA_RVTY_FK|Application Error: Attempting to violate foreign key constraint REVA_RVTY_FK. Please report this error to Advantica.
RT_PK|Attempting to create a duplicate Role_Types entry
RVTY_PK|Attempting to create a duplicate Relief_Valve_Types entry
SLTY_PK|Attempting to create a duplicate Slamshut_Types entry
SLVA_PK|Attempting to create a duplicate Slamshut_Valves entry
SLVA_SLTY_FK|Application Error: Attempting to violate foreign key constraint SLVA_SLTY_FK. Please re
SLVA_SLTY_FK|Application Error: Attempting to violate foreign key constraint SLVA_SLTY_FK. Please report this error to Advantica.
SVCPT_PK|Attempting to create a duplicate Service_Pressure_Types entry
SVCP_PK|Attempting to create a duplicate Service_Pressures entry
SVCP_SVCPT_FK|Application Error: Attempting to violate foreign key constraint SVCP_SVCPT_FK. Please
SVCP_SVCPT_FK|Application Error: Attempting to violate foreign key constraint SVCP_SVCPT_FK. Please report this error to Advantica.
SYCO_PK|Attempting to create a duplicate System_Configuration entry
PREL_PARL_FROM_FK|Application Error: Attempting to violate foreign key constraint PREL_PARL_FROM_FK.
PREL_PARL_TO_FK|Application Error: Attempting to violate foreign key constraint PREL_PARL_TO_FK. Ple
PREL_PARL_FROM_FK|Application Error: Attempting to violate foreign key constraint PREL_PARL_FROM_FK. Please report this error to Advantica.
PREL_PARL_TO_FK|Application Error: Attempting to violate foreign key constraint PREL_PARL_TO_FK. Please report this error to Advantica.
PREL_PK|Attempting to create a duplicate Party_Relationships entry
PREL_PRTP_FK|Application Error: Attempting to violate foreign key constraint PREL_PRTP_FK. Please re
PREL_PRTP_FK|Application Error: Attempting to violate foreign key constraint PREL_PRTP_FK. Please report this error to Advantica.
PRTP_PK|Attempting to create a duplicate Party_Relationship_Types entry
PRTP_RT_FK|Application Error: Attempting to violate foreign key constraint PRTP_RT_FK. Please report
PRTP_RT_FROM_FK|Application Error: Attempting to violate foreign key constraint PRTP_RT_FROM_FK. Ple
PRTY_MANU_MANU_REF_UK|Attempting to enter a duplicate value (defined by unique constraintPRTY_MANU_M
PRTY_MKTP_MKTP_REF_UK|Attempting to enter a duplicate value (defined by unique constraintPRTY_MKTP_M
PRTP_RT_FK|Application Error: Attempting to violate foreign key constraint PRTP_RT_FK. Please report this error to Advantica.
PRTP_RT_FROM_FK|Application Error: Attempting to violate foreign key constraint PRTP_RT_FROM_FK. Please report this error to Advantica.
PRTY_MANU_MANU_REF_UK|Attempting to enter a duplicate value (defined by unique constraint PRTY_MANU_MANU_REF_UK).
PRTY_MKTP_MKTP_REF_UK|Attempting to enter a duplicate value (defined by unique constraint PRTY_MKTP_MKTP_REF_UK).
PRTY_PK|Attempting to create a duplicate Parties entry
PWD_PK|Attempting to create a duplicate Passwords entry
PWD_PRTY_FK|Application Error: Attempting to violate foreign key constraint PWD_PRTY_FK. Please repo
PWD_PRTY_FK|Application Error: Attempting to violate foreign key constraint PWD_PRTY_FK. Please report this error to Advantica.
QUEV_PK|Attempting to create a duplicate Quote_Events entry
QUEV_QUST_FK|Application Error: Attempting to violate foreign key constraint QUEV_QUST_FK. Please re
QUEV_QUTE_FK|Application Error: Attempting to violate foreign key constraint QUEV_QUTE_FK. Please re
QUIT_ADIT_FK|Application Error: Attempting to violate foreign key constraint QUIT_ADIT_FK. Please re
QUIT_BAS_FK|Application Error: Attempting to violate foreign key constraint QUIT_BAS_FK. Please repo
QUIT_ENTY_FK|Application Error: Attempting to violate foreign key constraint QUIT_ENTY_FK. Please re
QUIT_HOU_FK|Application Error: Attempting to violate foreign key constraint QUIT_HOU_FK. Please repo
QUIT_MESC_FK|Application Error: Attempting to violate foreign key constraint QUIT_MESC_FK. Please re
QUIT_METY_FK|Application Error: Attempting to violate foreign key constraint QUIT_METY_FK. Please re
ENQU_MESC_EXISTING_FK|Application Error: Attempting to violate foreign key constraint ENQU_MESC_EXIS
ENQU_MESC_REQUIRED_FK|Application Error: Attempting to violate foreign key constraint ENQU_MESC_REQU
ENQU_METY_FK|Application Error: Attempting to violate foreign key constraint ENQU_METY_FK. Please re
QUEV_QUST_FK|Application Error: Attempting to violate foreign key constraint QUEV_QUST_FK. Please report this error to Advantica.
QUEV_QUTE_FK|Application Error: Attempting to violate foreign key constraint QUEV_QUTE_FK. Please report this error to Advantica.
QUIT_ADIT_FK|Application Error: Attempting to violate foreign key constraint QUIT_ADIT_FK. Please report this error to Advantica.
QUIT_BAS_FK|Application Error: Attempting to violate foreign key constraint QUIT_BAS_FK. Please report this error to Advantica.
QUIT_ENTY_FK|Application Error: Attempting to violate foreign key constraint QUIT_ENTY_FK. Please report this error to Advantica.
QUIT_HOU_FK|Application Error: Attempting to violate foreign key constraint QUIT_HOU_FK. Please report this error to Advantica.
QUIT_MESC_FK|Application Error: Attempting to violate foreign key constraint QUIT_MESC_FK. Please report this error to Advantica.
QUIT_METY_FK|Application Error: Attempting to violate foreign key constraint QUIT_METY_FK. Please report this error to Advantica.
ENQU_MESC_EXISTING_FK|Application Error: Attempting to violate foreign key constraint ENQU_MESC_EXISTING_FK. Please report this error to Advantica.
ENQU_MESC_REQUIRED_FK|Application Error: Attempting to violate foreign key constraint ENQU_MESC_REQUIRED_FK. Please report this error to Advantica.
ENQU_METY_FK|Application Error: Attempting to violate foreign key constraint ENQU_METY_FK. Please report this error to Advantica.
ENQU_PK|Attempting to create a duplicate Enquiries entry
ENQU_SVCP_REQUIRED_FK|Application Error: Attempting to violate foreign key constraint ENQU_SVCP_REQU
ENRO_ENQU_FK|Application Error: Attempting to violate foreign key constraint ENRO_ENQU_FK. Please re
ENQU_SVCP_REQUIRED_FK|Application Error: Attempting to violate foreign key constraint ENQU_SVCP_REQUIRED_FK. Please report this error to Advantica.
ENRO_ENQU_FK|Application Error: Attempting to violate foreign key constraint ENRO_ENQU_FK. Please report this error to Advantica.
ENRO_PK|Attempting to create a duplicate Enquiry_Roles entry
ENRO_PRTY_FK|Application Error: Attempting to violate foreign key constraint ENRO_PRTY_FK. Please re
ENRO_RT_FK|Application Error: Attempting to violate foreign key constraint ENRO_RT_FK. Please report
ENRO_PRTY_FK|Application Error: Attempting to violate foreign key constraint ENRO_PRTY_FK. Please report this error to Advantica.
ENRO_RT_FK|Application Error: Attempting to violate foreign key constraint ENRO_RT_FK. Please report this error to Advantica.
ENST_PK|Attempting to create a duplicate Enquiry_Status_Types entry
ENTY_ADIT_MUTEX|Must enter EITHER enquiry type OR additional item
ENTY_PK|Attempting to create a duplicate Enquiry_Types entry
ERLO_PK|Attempting to create a duplicate Error_Logs entry
EXME_PK|Attempting to create a duplicate Exception_Messages entry
FITY_PK|Attempting to create a duplicate Filter_Types entry
FLTR_FITY_FK|Application Error: Attempting to violate foreign key constraint FLTR_FITY_FK. Please re
FLTR_FITY_FK|Application Error: Attempting to violate foreign key constraint FLTR_FITY_FK. Please report this error to Advantica.
FLTR_PK|Attempting to create a duplicate Filters entry
HOTY_PK|Attempting to create a duplicate Housing_Types entry
HOU_DRWG_FK|Application Error: Attempting to violate foreign key constraint HOU_DRWG_FK. Please repo
HOU_HOTY_FK|Application Error: Attempting to violate foreign key constraint HOU_HOTY_FK. Please repo
HOU_DRWG_FK|Application Error: Attempting to violate foreign key constraint HOU_DRWG_FK. Please report this error to Advantica.
HOU_HOTY_FK|Application Error: Attempting to violate foreign key constraint HOU_HOTY_FK. Please report this error to Advantica.
HOU_PK|Attempting to create a duplicate Housings entry
HOU_PRTY_FK|Application Error: Attempting to violate foreign key constraint HOU_PRTY_FK. Please repo
LETI_ENTY_FK|Application Error: Attempting to violate foreign key constraint LETI_ENTY_FK. Please re
LETI_MESC_FK|Application Error: Attempting to violate foreign key constraint LETI_MESC_FK. Please re
LETI_METY_FK|Application Error: Attempting to violate foreign key constraint LETI_METY_FK. Please re
HOU_PRTY_FK|Application Error: Attempting to violate foreign key constraint HOU_PRTY_FK. Please report this error to Advantica.
LETI_ENTY_FK|Application Error: Attempting to violate foreign key constraint LETI_ENTY_FK. Please report this error to Advantica.
LETI_MESC_FK|Application Error: Attempting to violate foreign key constraint LETI_MESC_FK. Please report this error to Advantica.
LETI_METY_FK|Application Error: Attempting to violate foreign key constraint LETI_METY_FK. Please report this error to Advantica.
LETI_PK|Attempting to create a duplicate Lead_Times entry
LETI_SVCPT_FK|Application Error: Attempting to violate foreign key constraint LETI_SVCPT_FK. Please
LETI_SVCPT_FK|Application Error: Attempting to violate foreign key constraint LETI_SVCPT_FK. Please report this error to Advantica.
MESC_PK|Attempting to create a duplicate Meter_Size_Codes entry
METR_DRWG_FK|Application Error: Attempting to violate foreign key constraint METR_DRWG_FK. Please re
METR_METY_FK|Application Error: Attempting to violate foreign key constraint METR_METY_FK. Please re
METR_DRWG_FK|Application Error: Attempting to violate foreign key constraint METR_DRWG_FK. Please report this error to Advantica.
METR_METY_FK|Application Error: Attempting to violate foreign key constraint METR_METY_FK. Please report this error to Advantica.
METR_PK|Attempting to create a duplicate Meters entry
METR_PRTY_FK|Application Error: Attempting to violate foreign key constraint METR_PRTY_FK. Please re
METR_PRTY_FK|Application Error: Attempting to violate foreign key constraint METR_PRTY_FK. Please report this error to Advantica.
METY_PK|Attempting to create a duplicate Meter_Types entry
MODU_BAS_FK|Application Error: Attempting to violate foreign key constraint MODU_BAS_FK. Please repo
MODU_CNOR_INLET_FK|Application Error: Attempting to violate foreign key constraint MODU_CNOR_INLET_F
MODU_CNOR_OUTLET_FK|Application Error: Attempting to violate foreign key constraint MODU_CNOR_OUTLET
MODU_CNTY_INLET_FK|Application Error: Attempting to violate foreign key constraint MODU_CNTY_INLET_F
MODU_CNTY_OUTLET_FK|Application Error: Attempting to violate foreign key constraint MODU_CNTY_OUTLET
MODU_DRWG_FK|Application Error: Attempting to violate foreign key constraint MODU_DRWG_FK. Please re
MODU_FLTR_FK|Application Error: Attempting to violate foreign key constraint MODU_FLTR_FK. Please re
MODU_HOU_FK|Application Error: Attempting to violate foreign key constraint MODU_HOU_FK. Please repo
MODU_METR_FK|Application Error: Attempting to violate foreign key constraint MODU_METR_FK. Please re
MODU_BAS_FK|Application Error: Attempting to violate foreign key constraint MODU_BAS_FK. Please report this error to Advantica.
MODU_CNOR_INLET_FK|Application Error: Attempting to violate foreign key constraint MODU_CNOR_INLET_FK. Please report this error to Advantica.
MODU_CNOR_OUTLET_FK|Application Error: Attempting to violate foreign key constraint MODU_CNOR_OUTLET_FK. Please report this error to Advantica.
MODU_CNTY_INLET_FK|Application Error: Attempting to violate foreign key constraint MODU_CNTY_INLET_FK. Please report this error to Advantica.
MODU_CNTY_OUTLET_FK|Application Error: Attempting to violate foreign key constraint MODU_CNTY_OUTLET_FK. Please report this error to Advantica.
MODU_DRWG_FK|Application Error: Attempting to violate foreign key constraint MODU_DRWG_FK. Please report this error to Advantica.
MODU_FLTR_FK|Application Error: Attempting to violate foreign key constraint MODU_FLTR_FK. Please report this error to Advantica.
MODU_HOU_FK|Application Error: Attempting to violate foreign key constraint MODU_HOU_FK. Please report this error to Advantica.
MODU_METR_FK|Application Error: Attempting to violate foreign key constraint MODU_METR_FK. Please report this error to Advantica.
MODU_PK|Attempting to create a duplicate Modules entry
MODU_PRTY_FK|Application Error: Attempting to violate foreign key constraint MODU_PRTY_FK. Please re
MODU_REGU_FK|Application Error: Attempting to violate foreign key constraint MODU_REGU_FK. Please re
MODU_REVA_FK|Application Error: Attempting to violate foreign key constraint MODU_REVA_FK. Please re
MODU_SLVA_FK|Application Error: Attempting to violate foreign key constraint MODU_SLVA_FK. Please re
MODU_SVCP_FK|Application Error: Attempting to violate foreign key constraint MODU_SVCP_FK. Please re
PADDR_ADDR_FK|Application Error: Attempting to violate foreign key constraint PADDR_ADDR_FK. Please
MODU_PRTY_FK|Application Error: Attempting to violate foreign key constraint MODU_PRTY_FK. Please report this error to Advantica.
MODU_REGU_FK|Application Error: Attempting to violate foreign key constraint MODU_REGU_FK. Please report this error to Advantica.
MODU_REVA_FK|Application Error: Attempting to violate foreign key constraint MODU_REVA_FK. Please report this error to Advantica.
MODU_SLVA_FK|Application Error: Attempting to violate foreign key constraint MODU_SLVA_FK. Please report this error to Advantica.
MODU_SVCP_FK|Application Error: Attempting to violate foreign key constraint MODU_SVCP_FK. Please report this error to Advantica.
PADDR_ADDR_FK|Application Error: Attempting to violate foreign key constraint PADDR_ADDR_FK. Please report this error to Advantica.
PADDR_PK|Attempting to create a duplicate Party_Addresses entry
PADDR_PRTY_FK|Application Error: Attempting to violate foreign key constraint PADDR_PRTY_FK. Please
PADDR_PRTY_FK|Application Error: Attempting to violate foreign key constraint PADDR_PRTY_FK. Please report this error to Advantica.
PARL_PK|Attempting to create a duplicate Party_Roles entry
PARL_PRTP_MISMATCH|Application Error: Attempting to violate check constraint PARL_PRTP_MISMATCH. Ple
PARL_PRTY_FK|Application Error: Attempting to violate foreign key constraint PARL_PRTY_FK. Please re
PARL_RT_FK|Application Error: Attempting to violate foreign key constraint PARL_RT_FK. Please report
PAR_PADDR_FK|Application Error: Attempting to violate foreign key constraint PAR_PADDR_FK. Please re
PARL_PRTP_MISMATCH|Application Error: Attempting to violate check constraint PARL_PRTP_MISMATCH. Please report this error to Advantica.
PARL_PRTY_FK|Application Error: Attempting to violate foreign key constraint PARL_PRTY_FK. Please report this error to Advantica.
PARL_RT_FK|Application Error: Attempting to violate foreign key constraint PARL_RT_FK. Please report this error to Advantica.
PAR_PADDR_FK|Application Error: Attempting to violate foreign key constraint PAR_PADDR_FK. Please report this error to Advantica.
PAR_PK|Attempting to create a duplicate Party_Address_Roles entry
PAR_RT_FK|Application Error: Attempting to violate foreign key constraint PAR_RT_FK. Please report t
PCMR_PCM_FK|Application Error: Attempting to violate foreign key constraint PCMR_PCM_FK. Please repo
PAR_RT_FK|Application Error: Attempting to violate foreign key constraint PAR_RT_FK. Please report this error to Advantica.
PCMR_PCM_FK|Application Error: Attempting to violate foreign key constraint PCMR_PCM_FK. Please report this error to Advantica.
PCMR_PK|Attempting to create a duplicate Party_Contact_Mechanism_Roles entry
PCMR_RT_FK|Application Error: Attempting to violate foreign key constraint PCMR_RT_FK. Please report
PCM_COME_FK|Application Error: Attempting to violate foreign key constraint PCM_COME_FK. Please repo
PCM_PADDR_FK|Application Error: Attempting to violate foreign key constraint PCM_PADDR_FK. Please re
PCMR_RT_FK|Application Error: Attempting to violate foreign key constraint PCMR_RT_FK. Please report this error to Advantica.
PCM_COME_FK|Application Error: Attempting to violate foreign key constraint PCM_COME_FK. Please report this error to Advantica.
PCM_PADDR_FK|Application Error: Attempting to violate foreign key constraint PCM_PADDR_FK. Please report this error to Advantica.
PCM_PK|Attempting to create a duplicate Party_Contact_Mechanisms entry
PCM_PRTY_FK|Application Error: Attempting to violate foreign key constraint PCM_PRTY_FK. Please repo
PCM_PRTY_FK|Application Error: Attempting to violate foreign key constraint PCM_PRTY_FK. Please report this error to Advantica.
POCO_PK|Attempting to create a duplicate Postcodes entry
POCO_POCO_UK|Attempting to enter a duplicate value (defined by unique constraintPOCO_POCO_UK).
POCO_REGI_FK|Application Error: Attempting to violate foreign key constraint POCO_REGI_FK. Please re
POCO_POCO_UK|Attempting to create a duplicate Postcodes entry
POCO_REGI_FK|Application Error: Attempting to violate foreign key constraint POCO_REGI_FK. Please report this error to Advantica.

View File

@@ -1,18 +1,18 @@
#requires
# #requires
require 'watir'
#email stuff
# #email stuff
require 'net/smtp'
#used to handle javascript popups
# #used to handle javascript popups
require 'watir/contrib/enabled_popup'
require 'watir/WindowHelper'
#
#
# Method to handle javascript popups.
#
#
require 'thread'
#
#
require 'win32ole'
#
#
def startClicker( button , waitTime = 3)
w = WinClicker.new
longName = @@ie.dir.gsub("/" , "\\" )
@@ -26,32 +26,43 @@ end
#includes
# #includes
include Watir
@@ie = IE.new
@@ie.visible= false
#set the speed of watir
@@ie.visible= true
# #set the speed of watir
@@ie.speed = :fast
#backup 2 directories
# #backup 2 directories
Dir.chdir('..')
Dir.chdir('..')
#we're in windows, so replace the forwards with the backs
# #we're in windows, so replace the forwards with the backs
workingdir = Dir.getwd.to_s.gsub!('/','\\')
#Set constants for import
# #Set constants for import
ORIGINAL_APP_ID = '155'
NEW_APP_ID = '102'
SCHEMA = 'MIP_TEST'
SCHEMA = ARGV[0].upcase if ARGV[0]
SCHEMA = 'MIP_TEST' if !ARGV[0]
APEX_EXPORT_SCRIPTS_DIR = workingdir +'\\Screens\\'
APPLICATION_SCRIPT = 'f155.sql'
CSS_SCRIPT = 'css.sql'
IMAGES_SCRIPT = 'f155_img.sql'
THEME_SCRIPT = 'f155_theme_101.sql'
ADID = '4550' #APEX admin identifier
WORKSPACE = 'MIP_TEST'
WORKSPACE = ARGV[1].upcase if ARGV[1]
WORKSPACE = 'MIP_TEST' if !ARGV[1]
USER = 'ADMIN'
PASSWORD = 'password'
DELETE_PREVIOUS_IMPORTS = false
#
def login(p_workspace, p_user, p_password)
@@ie.goto("http://loordv01/pls/apex/f?p=#{ADID}:1")
@@ie.text_field(:id, "F#{ADID}_P1_COMPANY").set(p_workspace)
@@ie.text_field(:id, "F#{ADID}_P1_USERNAME").set(p_user)
@@ie.text_field(:id, "F#{ADID}_P1_PASSWORD").set(p_password)
@@ie.button(:value, 'Login').click
@@ie.wait
end
def importpageone (p_file, p_file_type, p_charset)
@@ie.link(:title, 'Application Builder').click
@@ie.wait
@@ -66,19 +77,39 @@ def importpageone (p_file, p_file_type, p_charset)
@@ie.wait
end
begin
#Login
@@ie.goto("http://loordv01/pls/apex/f?p=#{ADID}:1")
@@ie.text_field(:id, "F#{ADID}_P1_COMPANY").set(WORKSPACE)
@@ie.text_field(:id, "F#{ADID}_P1_USERNAME").set(USER)
@@ie.text_field(:id, "F#{ADID}_P1_PASSWORD").set(PASSWORD)
@@ie.button(:value, 'Login').click
#
# this doesn't work as the P107_COMPANY is a javascript screen pop up thingy
def associateschema(p_workspace, p_schema)
login('INTERNAL','ADMIN','password')
@@ie.link(:title,'Manage Workspaces').click
@@ie.wait
#Import Application export file
@@ie.link(:title,'Manage Workspace to Schema Assignments').click
@@ie.button(:value, 'Create >').click
@@ie.wait
@@ie.radio(:id, 'P105_NEW_0' ).set
@@ie.wait
@@ie.button(:value, 'Next >').click
@@ie.wait
@@ie.text_field(:id, "P107_COMPANY" ).set(p_workspace)
@@ie.button(:value, 'Next >').click
@@ie.wait
@@ie.select_list(:id, "P106_SCHEMA").select p_schema
@@ie.wait
@@ie.button(:value, "Add Schema").click
@@ie.wait
@@ie.link('Logout').click
end
begin
# #Firstly, associate the schema with the workspace
# associateschema(WORKSPACE, SCHEMA)
# #Login
login(WORKSPACE, USER, PASSWORD)
# #Import Application export file
importpageone(APEX_EXPORT_SCRIPTS_DIR+APPLICATION_SCRIPT,
'Application, Page or Component Export',
'Western European Windows 1252')
#parse page
'Application, Page or Component Export',
'Western European Windows 1252')
# #parse page
@@ie.select_list(:id, "P49_PARSE_AS" ).select(SCHEMA)
@@ie.select_list(:id, "P49_BUILD_STATUS" ).select 'Run and Build Application'
@@ie.radio(:id, "P49_NEW_FLOW_OPT_2" ).set
@@ -86,53 +117,53 @@ begin
@@ie.text_field(:id, "P49_NEW_FLOW_ID").set(NEW_APP_ID)
@@ie.button(:value, 'Install').click
@@ie.wait
#This button won't appear the first time the import occurs
# #This button won't appear the first time the import occurs
if @@ie.button(:value, 'Replace Existing Application '+NEW_APP_ID).exists?
@@ie.button(:value, 'Replace Existing Application '+NEW_APP_ID).click
@@ie.wait
end
#Install Supporting objects
# #Install Supporting objects
@@ie.radio(:id, "P2100_ACTION_0" ).set
@@ie.button(:value, 'Next >').click
@@ie.wait
@@ie.button(:value, 'Install').click
@@ie.wait
#Install CSS
# #Install CSS
#Need to delete the existing CSS file before installing a new one
#have decided to just install the application for the moment.
#back to install page start
# #Need to delete the existing CSS file before installing a new one #have
# decided to just install the application for the moment. #back to install
# page start
#importpageone(APEX_EXPORT_SCRIPTS_DIR+CSS_SCRIPT,
# #importpageone(APEX_EXPORT_SCRIPTS_DIR+CSS_SCRIPT,
# 'CSS Export',
# 'Western European Windows 1252')
if DELETE_PREVIOUS_IMPORTS
#er this code does not work from the Loordv001 box
#it will run on JP's machine if this code is run from a
#dos prompt - it's an issue with ruby trying to spawn a
#new thead to look for the open dialogue box
# #er this code does not work from the Loordv001 box #it will run on JP's
# machine if this code is run from a #dos prompt - it's an issue with ruby
# trying to spawn a #new thead to look for the open dialogue box
@@ie.link(:title, 'Manage Export Repository').click
@@ie.wait
@@ie.checkboxes.each { |c| c.set }
#Click the annoying are you sure button that pops up
# #Click the annoying are you sure button that pops up
startClicker("OK", 1)
@@ie.button(:value, 'Delete Checked').click
@@ie.wait
end
@@ie.close
rescue StandardError => anyerror
#Hopefully we never get here but, we'll try and send an email if the
#script errors so we can fix it
#don't leave memory hungry instances of ie running if we get an error
@@ie.close
# #Hopefully we never get here but, we'll try and send an email if the #script
# errors so we can fix it #don't leave memory hungry instances of ie running
# if we get an error
@@ie.close
#build the email
from_addr = 'jamie.priest@advantica.com'
to_addr = 'jamie.priest@advanticagroup.com'
project = 'webMIP test build process'
emailtext = <<END_EMAIL
# #build the email
from_addr = 'jamie.priest@advantica.com'
to_addr = 'jamie.priest@advanticagroup.com'
project = 'webMIP test build process'
emailtext = <<END_EMAIL
From: webMIP <#{from_addr}>
To: Jamie Priest <#{to_addr}>
Subject: #{project} automated test failure