An Azure service for ingesting, preparing, and transforming data at scale.
Hi @Ankit Kumar ,
Thanks for using this forum and posting your query.
- The reason for this error is because you are using an incorrect syntax
$.DocType, it should be just the column name asDocType. This would avoid the error and copy the values ofDocTypecolumn to your newly added columnPartitionKey.
- For the additional requirement of concatenating a string value to this additional column - I don't think this is possible within copy activity and Copy activity is not intended for this purpose. If you would to do a data transformation then I would recommend you to please use Mapping Data flow in ADF which is better suited for transformations. Here is a list of supported transformations by Mapping dataflow : Mapping data flow transformation overview
You can use a Derived column transformation which would help to achieve your requirement.
Hope this info helps. Do let us know if you have further query.
----------
Please don’t forget to Accept Answer and Up-Vote wherever the information provided helps you, this can be beneficial to other community members.