Problem Note 35812: A SAS® Merchandise Data Integration load fails with ERROR: "Array subscript out of range at line 6888 column"
A SAS® Merchandise Data Integration data loads fail with the error "Array subscript out of range at line 6888 column" if the database tables (LVxLOC, LVxMAST, LVxCMAST, or LV10CAT) have negative values. These negative records are default values added to the database when it is first created. These are used to validate that the application and database are working correctly. After the validation is complete, the
values do not serve any purpose.
The following tables have negative values:
- All LVxLOC tables -- LV1LOC through LV4LOC -- for the LVxLOC_ID column
- All LVxMAST tables -- LV1MAST through LV4MAST -- for the LVxMAST_ID column
- All LVxCMAST tables -- LV1CMAST through LV9CMAST -- for the LVxCMAST_ID column
- LV10CAT table -- for the LV10CAT_ID column
To circumvent this issue, delete the records with negative values in all of
these tables. This can be done by running a script such as one of the following:
Script 1:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Created to delete default ids of the merchandise hierarchy from
LV10CAT, LV9CMAST, LV8CMAST, LV7CMAST,
LV6CMAST, LV5CMAST,LV4CMAST, LV3CMAST, LV2CMAST, LV1CMAST
-- Modify the statement below per implementation --
----------------------------------------------------------------
spool delete_default_cmast_ids.lst
--connect maxdata/madmary@&DB_NAME;
prompt start delete_default_cmast_ids.sql
set pagesize 0;
set serveroutput on
set linesize 200
delete from lv10cat where lv10cat_id < 1;
delete from lv9cmast where lv9cmast_id < 1;
delete from lv8cmast where lv8cmast_id < 1;
delete from lv7cmast where lv7cmast_id < 1;
delete from lv6cmast where lv6cmast_id < 1;
delete from lv5cmast where lv5cmast_id < 1;
delete from lv4cmast where lv4cmast_id < 1;
delete from lv3cmast where lv3cmast_id < 1;
delete from lv2cmast where lv2cmast_id < 1;
delete from lv1cmast where lv1cmast_id < 1;
execute maxapp.p_log_version('Delete Default Merch IDs',
'delete_lv10cat_lv9cmast_lv1cmast');
commit;
prompt end delete_default_cmast_ids.sql
spool off;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Script 2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Created to delete default ids of merchandise hierarchy from
LV4MAST, LV3MAST, LV2MAST, LV1MAST, LV4LOC, LV3LOC, LV2LOC, LV1LOC
-- Modify the statement below per implementation --
----------------------------------------------------------------
spool delete_default_lvXloc_mast_ids.lst
connect maxdata/madmary@&DB_NAME;
prompt start delete_default_lvXloc_mast_ids.sql
set pagesize 0;
set serveroutput on
set linesize 200
delete from lv4mast where lv4mast_id < 1;
delete from lv3mast where lv3mast_id < 1;
delete from lv2mast where lv2mast_id < 1;
delete from lv1mast where lv1mast_id < 1;
delete from lv4loc where lv4loc_id < 1;
delete from lv3loc where lv3loc_id < 1;
delete from lv2loc where lv2loc_id < 1;
delete from lv1loc where lv1loc_id < 1;
execute maxapp.p_log_version('Delete Default Loc IDs',
'delete_default_lvXloc_mast_ids');
commit;
prompt end delete_default_cmast_ids.sql
spool off;
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Operating System and Release Information
| SAS System | SAS Merchandise Data Integration | Microsoft Windows 2000 Advanced Server | 6.1.3M2 | | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Datacenter Server | 6.1.3M2 | | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Server | 6.1.3M2 | | 9.1 TS1M3 SP4 | |
| Microsoft Windows 2000 Professional | 6.1.3M2 | | 9.1 TS1M3 SP4 | |
| Microsoft Windows NT Workstation | 6.1.3M2 | | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Datacenter Edition | 6.1.3M2 | | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Enterprise Edition | 6.1.3M2 | | 9.1 TS1M3 SP4 | |
| Microsoft Windows Server 2003 Standard Edition | 6.1.3M2 | | 9.1 TS1M3 SP4 | |
| Microsoft Windows XP Professional | 6.1.3M2 | | 9.1 TS1M3 SP4 | |
| Windows Vista | 6.1.3M2 | | 9.1 TS1M3 SP4 | |
| 64-bit Enabled AIX | 6.1.3M2 | | 9.1 TS1M3 SP4 | |
| 64-bit Enabled Solaris | 6.1.3M2 | | 9.1 TS1M3 SP4 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
A SAS® Merchandise Data Integration Data loads fail if the database tables (LVxLOC, LVxMAST, LVxCMAST, or LV10CAT) have negative values.
| Type: | Problem Note |
| Priority: | medium |
| Date Modified: | 2009-07-27 15:42:11 |
| Date Created: | 2009-05-05 15:29:23 |