I have a very large job where everything is in database (Databricks). At the end of the job, I am attempting to write to a table but it fails every time with a syntax/semantics error. I have used a dynamic output tool right before the write in database tool to output the query. The query is roughly 40,000 lines, it runs fine when I run it in Databricks directly. The issue seems to be the write in database tool itself, I think it might be truncating the query causing the syntax error. Is this possible? If so, what are alternative solutions?