@Vivek Komarla Bhaskar I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others (Opens in new window or tab)", I'll repost your solution in case you'd like to accept the answer (Opens in new window or tab).
Issue:
- While trying to load source data which includes special characters and weird usernames into the Synapse table using ADF Mapping data flows, user not able to add the data as it is in files. Instead, it replaces with '?' Or interpreting it differently.
Below is the source data:
Below is how data loaded into Synapse table:
Solution:
- Issue is sorted now by changing the datatype for the Username column on table from VARCHAR to NVARCHAR. Varchar stores Non-unicode or English character data types, and it can contain a maximum of 8000 characters. It only supports ASCII values. Nvarchar stores Unicode or Non-English character data types, and it can contain a maximum of 4000 characters. It supports ASCII values as well as special characters.
If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.
I hope this helps others!
Thank you again for your time and patience throughout this issue.