Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
While Uploading dataset to SQL Server using R getting following error:
"nanodbc/nanodbc.cpp:1655: 22001: [Microsoft][ODBC SQL Server Driver]String data, right truncation "
It seems to be column width issue but this error is not pointing me to any column. I have done upload of different PBI datasets many times though R getting this error for the first time.
Kindly help.
Hi @Addy2020 ,
Have you updated your SQL Server to the latest version?
We have found that inappropriate versions can also cause this problem.
I am not good at this, but I can confirm that the problem is with SQL Server, as your error port is [Microsoft][ODBC SQL Server Driver].
Please refer to the following two links to see if they help you.
sql-create-table-from-r-string-data-right-truncation
Hope it helps,
Community Support Team _ Caitlyn Yan
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
1st link talks about this issue fixed in SQL Server 2014. Mine is 2017 so it must contain that fix.
2nd link - in this case user had only 1 column so easy to apply fix in my case i have 84 columns so difficult to find out which column has size issue.
Hi @Addy2020 ,
Sorry for not being able to provide a specific solution, but in order to better solve your problem, we recommend that you visit the SQL forum here for more professional support.
Hope it helps,
Community Support Team _ Caitlyn Yan
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
@Addy2020 , seem more related sql server,
refer to this type of error in this past
Hi @amitchandak
The link you shared has error which referes probelamatic column while in my case error doesn't mentions problematic column in the absence of which its difficult to find column with problem.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.