Occurs when categorySector is used in CategoryAddSymbol function. You can not add symbol to sector because symbols are linked to industry groups only and industry groups are then assigned to sectors. One sector usually includes several industry groups and if you set the industry then sector is implict. Refer to AmiBroker Users Guide for more information about categories.
CategoryAddSymbol( "", categorySector, 2 ); //
wrong, you can not use categorySector
CategoryAddSymbol( "", categoryIndustry, 2 ); //
correct