Hi ADF_Coder ,
Thankyou for using Microsoft Q&A platform and thanks for posting your query here. As per my understanding you are facing issue while trying to load data from source to destination after performing the data transformation of trimming the data.
Would appreciate if you could share more relevant details on your query like what is your source and target datastore. From the error message it looks like you are trying to use snowflake DB? Is that your target DB? What is the source ?
To trim a string of trailing characters, you can make use of trim() function in ADF pipeline or rtrim() function in mapping dataflow in ADF .
However, the error message seems more related to the snowflake connector, to resolve the same, kindly try setting the option strip_outer_array = true for file format and attempt the loading again. The considerations for loading large size semi-structured data are documented in the below article: https://docs.snowflake.com/en/user-guide/semistructured-considerations.html
Hope it helps. Kindly let us know how it goes. Thankyou