Hi @Johnny Humphrey ,
Thank you for posting your query on Microsoft Q&A Platform.
defaultValues in Sink is not the right place to add values into additional column. defaultValues just Specifies the default values for each target column in Azure Synapse Analytics. see below screenshot for same or Click here to know more.
Since, your source data doesn't has "CreatedDateTime" column, you should add it as additional column under Source tab in copy activity and then in Mappings tab you should map that additional column with your sink column.
Please Note, When you add additional column in Source tab then you need to use "Copy method" as "Bulk Insert" under sink tab. Reason is, additional columns on source will not support "Copy command" & "PolyBase" copy methods. If still, you want to use these copy methods then enable staging.
Below screenshots show details implementation.
Source Tab:
Sink Tab:
Mappings Tab:
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on or upvote button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators