web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / "String or binary...
Power Apps
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 1

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. 

 

 

I have the same question (0)
  • v-xida-msft Profile Picture
    on at

    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-the-infamous-error-8152/

     

    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,

  • newbie_dev1 Profile Picture
    2 on at

    I found the same error. 

    In my case I had to shorten the name of the file.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard