cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Orlando
Level: Power Up

"String or binary data would be truncated" error when trying to import data into new entity.

I am creating a data interface project, importing a table from an Azure database, creating a new entity. The data is displayed correctly on the preview panes in the first two steps of the process, but then I get an error: "There was an error while creating this entity. Details: Sql error: 'String or binary data would be truncated. The statement has been terminated.'."

 

I don't understand how data in any field can be truncated since a new entity is being truncated unless there are data types that I should not be using? 

 

 

Thank you, 

 

Orlando. 

 

 

1 REPLY 1
Highlighted
Community Support Team
Community Support Team

Re: "String or binary data would be truncated" error when trying to import data into new entity.

HI @Orlando ,

Could you please share more details about the error message within your PowerApps?

 

Currently, I could not reproduce your issue on my side. This error condition may happen for example when you implement an ETL between a source and a destination that does not have matching data types and/or length. 

Please check and see if the following blog would help in your scenario:

https://blogs.msdn.microsoft.com/sql_server_team/string-or-binary-data-would-be-truncated-replacing-...

 

On your side, please make sure the columns in your Azure SQL Table match Data types and Length of corresponding columns in your new CDS Entity.

In addition, you could also consider take a try to create the CDS Entity in your PowerApps firstly, and specify corresponding columns, Data Type, Length, etc to match those in your Azure SQL Table. After that, take a try to import data from your Azure SQL Table into this existing Entity, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 114 members 4,309 guests
Please welcome our newest community members: