Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered
I have the following Pyspark code that reads a table schema and formats a MERGE statement to perform an upsert. This works for all of the 30 or so required tables except for 1. On one particular table, I get java.lang.ArrayIndexOutOfBoundsException.
We are on Runtime v 1.3
How can I troubleshoot or correct this issue?
Thanks.
Solved! Go to Solution.
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, We are following up once again regarding your query. Could you please confirm if the issue has been resolved through the support ticket with Microsoft?
If the issue has been resolved, we kindly request you to share the resolution or key insights here to help others in the community. If we don’t hear back, we’ll go ahead and close this thread.
Should you need further assistance in the future, we encourage you to reach out via the Microsoft Fabric Community Forum and create a new thread. We’ll be happy to help.
Thank you for your understanding and participation.
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
Thanks for the reply. I reviewed generated merge_sql. There are no complex data types or syntax errors. I removed each column to try an isolate an issue, to no effect on the error.
Hi @sharp1FL,
Print and Review Generated SQL
Use print(merge_sql) to manually check for SQL syntax errors or invalid column references.
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Fabric update to learn about new features.
User | Count |
---|---|
9 | |
5 | |
4 | |
3 | |
2 |