40. INVALID NUMBER OF DERIVED SET INDEX ELEMENTS.

If a sparse derived set is formed from, say, three primitive sets, then there must be a multiple of three primitive set element names in the explicit definition of the derived set. LINGO checks this, and issues this message if there is not a match.