cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mcorning
Level 8

an unknown error occurred in form

After getting my Entity to save (i put all my default values back in the text fields but left out the " characters), I created an app based on the entity.

 

After filling out the EditForm, i get an helpful error (see Subject).

 

I wish i could be more specific, but then it wouldn't be an unknown error.

 

Am I just out of luck? Or do I have to start over with a new form checking one field at a time and adding fields until the form that fails?

1 ACCEPTED SOLUTION

Accepted Solutions
mcorning
Level 8

Re: an unknown error occurred in form

It appears the problem was with those pesky default text values.

 

Here's what I did to resolve the unknown error:

  1. I saved and closed the app
  2. Checked the Entity in CDS (it was saved)
  3. Reopned the new app that threw the unknown exception earlier
  4. Refreshed the Data Source in the app
  5. Started the app
  6. Noticed the default values this time (Clue: if you don't see default values, don't bother filling the form, it will probably fail)
  7. Saved the EditForm without adding any non-default values
  8. Edited the form again adding a few new values and saving the edit
  9. Continued until the form was completely filled out
  10. No more problems

View solution in original post

3 REPLIES 3
mcorning
Level 8

Re: an unknown error occurred in form

It appears the problem was with those pesky default text values.

 

Here's what I did to resolve the unknown error:

  1. I saved and closed the app
  2. Checked the Entity in CDS (it was saved)
  3. Reopned the new app that threw the unknown exception earlier
  4. Refreshed the Data Source in the app
  5. Started the app
  6. Noticed the default values this time (Clue: if you don't see default values, don't bother filling the form, it will probably fail)
  7. Saved the EditForm without adding any non-default values
  8. Edited the form again adding a few new values and saving the edit
  9. Continued until the form was completely filled out
  10. No more problems

View solution in original post

mmichael
Level: Powered On

Re: an unknown error occurred in form

I'm getting a similar error, I've created an app that has excel data source and it needs to write back to the xlsx. I've filled out the save button as such. However, when I submit the form i get unknown error occurred. Please help me with this issue. 

 

UpdateContext({NewSurvey:Patch(PoaResponses,Defaults(PoaResponses),{ProgramId:Text(CountRows(PoaResponses)+1),Country:Dropdown3.Selected.Country,GlobalTeams:Dropdown4.Selected.GlobalTeams,ProgramArea:Dropdown1.Selected.OptionText,Objective:TextInput1,Title:TextInput9,Intervention:TextInput2,KeyIndicators:TextInput8,Name:TextBox12,Target:TextInput4,StartDate:DatePicker1,EndDate:DatePicker2,Protocol:Radio3,Documentation:ListBox5,Type:Radio4,Cost:Radio2,FundingProgram:Radio5})});Navigate(Screen1,ScreenTransition.Fade)

MeemEQX
Level: Powered On

Re: an unknown error occurred in form

Hi @mmichael

 

Were you able to fix this issue?

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (7,797)