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 / Not being able to subm...
Power Apps
Answered

Not being able to submit a ticket

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I am using a ticket system based on a form. Whenever I try to submit a ticket, I get an error trying to submit it. Here is the error:

https://gyazo.com/4f4cf58900367cb4ee4e622a4d050dff

I do not have any errors inside of my applications and I have refreshed all the data sources and it still does not work. 

Categories:
  • WarrenBelz Profile Picture
    156,738 Most Valuable Professional on at

    Hi @Anonymous ,

    As noted, I am on the other side of the world to you - I will tag my very capable colleague @mdevaney who is behind your time zone and should certainly be able to help.

    NOTE: It follows on from this post

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Guess he has no time to help me or has not seen the @  

    Are you able to help me? @WarrenBelz 

  • WarrenBelz Profile Picture
    156,738 Most Valuable Professional on at

    Ok I give me a few hours. Not home right now

  • WarrenBelz Profile Picture
    156,738 Most Valuable Professional on at

    Ok @Anonymous ,

    So I can look at it shortly, please send the code (in text) you use to update the data source.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Alright, I have a icon that I have to click on to send the ticket. The onselect code of this icon is the following:

    If(CountRows(Filter(MancoTabel, Value('Ticket ID')=Value(DataCardValue24.Text))) > 0,Navigate(Overzicht,None),SubmitForm([@EditForm]));
    If(CountRows(Filter(MancoTabel, Value('Ticket ID')=Value(DataCardValue24.Text))) > 0,SubmitForm(EditForm),SubmitForm([@EditForm]))


    This basically checks if the ticket id is already in a column, if it is, it will navigate to overzicht and submit the form. When the ticket id is new, it will just submit the form and stay on that screen. 

    Then on the success of the editform i have this code:

    Set(ResetValue, ""); NewForm(EditForm);

    ResetValue is to set the values to nothing after submitting. It then creates a new form.

    @WarrenBelz 

  • WarrenBelz Profile Picture
    156,738 Most Valuable Professional on at

    OK @Anonymous ,

    I am a little confused with your code.

    You have two completely separate If statements based on the same argument - that the number of tickets matching the value in DataCardValue24 are either greater than zero or not.

    The first one 

    • Greater than zero navigates to Overzicht
    • If zero submits EditForm

    The second one

    • Greater than zero submits EditForm
    • If zero submits [@EditForm]
    If(
     CountRows(
     Filter(
     MancoTabel, 
     Value('Ticket ID')=Value(DataCardValue24.Text)
     )
     ) > 0
     ,
     Navigate(Overzicht,None),
     SubmitForm([@EditForm])
    );
    If(
     CountRows(
     Filter(
     MancoTabel, 
     Value('Ticket ID')=Value(DataCardValue24.Text)
     )
     ) > 0,
     SubmitForm(EditForm),
     SubmitForm([@EditForm])
    )

    So no matter what happens, EditForm will be submitted and what is the difference in [@EditForm]?

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I understand what you mean and I just see it is indeed the same if statement. 

    Basically what it is supposed to do is check if the ticket ID is already inside of a column (Mancotabel -> ticketid). 

    If the ticket is already in the column, I want it to navigate to overzicht and submit the form.

    If the ticket does not have the ticked id in the column, I only want it to submit the form. Somehow this works already. I get no error editing it, but trying to make a new ticket I get the error.



    @WarrenBelz 

  • WarrenBelz Profile Picture
    156,738 Most Valuable Professional on at

    Ok @Anonymous You only need the first half of the code.

     

    If(
     CountRows(
     Filter(
     MancoTabel, 
     Value('Ticket ID')=Value(DataCardValue24.Text)
     )
     ) > 0
     ,
     Navigate(Overzicht,None),
     SubmitForm(EditForm)
    )

     

    The problem with a new ticket not submitted is that the data is not yet in the list

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Now if the if statement is true, it will only navigate me and not submit it, right?

    And when the if statement is not true, it will submit the form?

    Cause I also need it to submit it when the if statement is true.

    @WarrenBelz 

  • Verified answer
    WarrenBelz Profile Picture
    156,738 Most Valuable Professional on at

    OK @Anonymous ,

    Understand unless you tell me your logic, I can only deal with the code and try to interpret intention. How would this work

    If(
     CountRows(
     Filter(
     MancoTabel, 
     Value('Ticket ID')=Value(DataCardValue24.Text)
     )
     ) > 0
     ,
     SubmitForm(EditForm);
     Navigate(Overzicht,None),
     SubmitForm(EditForm)
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 320

#3
Mohsin Ali Profile Picture

Mohsin Ali 246

Last 30 days Overall leaderboard