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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Value must be at most ...
Power Apps
Answered

Value must be at most 1 character in length. Error

(0) ShareShare
ReportReport
Posted on by 1,855

Ugh! Almost through my first PowerApps to Azure SQL connection!


Here is my table in SQL:

 qself_table.png


Here is my Patch command in PowerApps

Patch('[dbo].[QSelf]',
 Defaults('[dbo].[QSelf]'),
 {lat: status_lat.Text,
 long: status_long.Text,
 altitude: status_alt.Text,
 user: status_user.Text,
 notes: input_notes.Text,
 image: text_takenImage.Text,
 date: DateValue(Text(status_date.Text,"[$-en-US]yyyy-mm-dd")),
 time: status_time.Text
 });

Here is the error:

Value must be at most 1 characters in length.


Any clues as to where the error is occurring? This is my first time ever working with SQL, so pardon my ignorance.


Thank you

Categories:
I have the same question (0)
  • Verified answer
    v-micsh-msft Profile Picture
    Microsoft Employee on at

    According to your table column definition, you have the following columns set to Not NULL:

    date,

    time,

    lat,

    long,

    ID

    All those fields need to be inputted with valid value when creating new records.

    Which means:

    Status_lat.text

    status_long.Text

    status_date.Text

    status_time.Text

    need to be filled with valid string within it, if you have the ID set as Auto Increment from the SQL Server side (if not, then the ID field is also required in the record syntax).

     

     {lat: status_lat.Text,
     long: status_long.Text,
     altitude: status_alt.Text,
     user: status_user.Text,
     notes: input_notes.Text,
     image: text_takenImage.Text,
     date: DateValue(Text(status_date.Text,"[$-en-US]yyyy-mm-dd")),
     time: status_time.Text}

     

    Regards,

    Michael

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard