The convertTimeZone()
function you're trying to use is indeed part of the expression language used in data flows or for setting up dynamic content in various ADF activities and it's not supported directly within the schema mapping or transformation settings of a Copy activity.
So instead of doing it directly in the Copy activity, you can use a Data Flow activity.
- Add a new Data Flow resource to your ADF pipeline.
- Add a Source transformation that connects to your original data source.
- Use a Derived Column transformation to add or modify a column with the date/time conversion. You would use an expression similar to what you're attempting, but adapted for Data Flow's expression syntax.
- Finally, direct the transformed data to your desired destination (Sink).
The expression in Data Flow for converting time zones might look something like toTimestamp(toDate([YourUTCColumn]), 'UTC') - 8 hours
, adjusting for PST. Note that PST is UTC-8, but keep in mind Daylight Saving Time adjustments if you're targeting Pacific Time generally.