Saturday, August 30, 2014

Dynamics GP - smartlist error - Unhandled script exception: Index 0 of local array is out of range in script 'ASI_Initialize_Explorer_Tree'. Script terminated.

Error:
Unhandled script exception:
Index 0 of local array is out of range in script 'ASI_Initialize_Explorer_Tree'. Script terminated.

Original solution: https://community.dynamics.com/gp/f/32/t/128874.aspx

Find your company id
SELECT CMPNYNAM as Company_Name,CMPANYID Company_ID FROM SY01500

Run this script replacing -1 with your company id, and dynamics with your system database name

insert into DYNAMICS..ADH00100 values ('0',  '498','3',  'Requisition Line Items','sa','-1')
insert into DYNAMICS..ADH00100 values ('0',  '499','3',  'Purchase Requisitions','sa','-1')

1 comment: