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 / OnSubmit Unknown Error...
Power Apps
Unanswered

OnSubmit Unknown Error Caused by Date Picker

(0) ShareShare
ReportReport
Posted on by 10

Hey All,

 

I have been working on a Cavas app that connects to Excel. Last week the app was working all good and as expected. I'm the only one using it at this stage so I can have confidence that I'm the only one editing things or accessing the Excel form.


Today I got in and was having issues saving edited forms - it just wouldn't progress and I don't have any error messages as of yet.

Going into Edit the app all my DataCards with Date Pickers in them suddenly had an error for MaxLength option.  I went through and cleared out what was in there, as I didn't see a need for any MaxLength to be in there anyway due to being a date, but the issue with saving persisted. I thought maybe it was one of the other fields, as I had recently updated one of my drop down selection tables that it pulls from, but still had the same issue after deleting those drop downs.

 

Delete the the Date Picker DataCards - saving worked again.

 

Re-added the DataCard and MaxLength isn't even an option.


Looking at my other fields MaxLength is set to DataSourceInfo([@Table1], DataSourceInfo.MaxLength, "column_x0020_name")

 

Does anyone know why this option suddenly appeared? And, how could I update the DataCard to be "normal" again without deleting and re-adding it to each of my forms?

 

I have ended up deleting and re-adding the date picker, but I'm just worried it might happen and break the app again.

 

Cheers in advance!

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @zealousmm 

    If you are seeing a MaxLength property on a DataCard, then the EditForm has inferred that the field you are trying to work with is Text.  When this happens, try to change the control type in the Edit Fields of the EditForm and see what the options are...it will also show you what data-type it has determined for it.

     

    When using Excel, this is not uncommon that it infers the date type incorrectly.  Check the format of your columns in Excel and make sure they are formatted the way that you want.

    If you continue to experience issues with it inferring incorrectly, consider moving to the column being Text and adjust your app to convert.

     

    I hope this is helpful for you.

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 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard