Solana - Error getProgramAccounts

When making a complex call to a Solana RPC Node with the method getProgramAccounts, you may get an error looking as follows:

  "message":"Tokenkeg####### excluded from account secondary indexes; 
  this RPC method unavailable for key"

From Solana Github, this error appears if a program is excluded from the secondary indices. [Tokenkeg...] with lots of accounts can be excluded from [getProgramAccounts] by RPC nodes as a consequence.


Additional information is available at the following link.