Forum Discussion
spark.sql() ArrayIndexOutOfBoundsException
- 1 year ago
Hi sharp1FL ,
In this scenario i suggest you to raise a support ticket here. so, that they can assit you in addressing the issue you are facing. please follow below link on how to raise a support ticket:
How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn
Thanks,
Prashanth
Hi sharp1FL,
-
Print and Review Generated SQL
Use print(merge_sql) to manually check for SQL syntax errors or invalid column references. - Fix Code Syntax Error & Wrap Column Names in Backticks
Handle special characters: t. \{col}` = s.`{col}`` -
Avoid Complex/Nested Types: MERGE fails with arrays/structs—check using df_clean.printSchema()
-
Check for Duplicate Columns: Ensure column names are unique and clean.
-
Validate Runtime Compatibility
Thanks,
Prashanth Are
MS Fabric community support
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly and give Kudos if helped you resolve your query