An error message is seen that a SQL has exceeded the maximum length supported when a intelligent cube/report is executed having 2 metrics from same base table with same metric qualification and also has at least another metric from same base table with different metric qualification and VLDB settings at the project database instance is set as below.



To fix the data issue, upgrade to Strategy 2021 Update 5 and set the Data Engine Version to be 2021. To set Data Engine Version, refer to How to set Date Engine Version.