In my application I have used Submit form , patch function to save the record but I am not able to save data for first time . Data is only saved in second try . What will be possible reasons .

In my application I have used Submit form , patch function to save the record but I am not able to save data for first time . Data is only saved in second try . What will be possible reasons .
It would be helpful if you could post the details of your app and the formula that you're using.
Where exactly are you not able to save your data for the first time? Is it when you call the Patch or the SubmitForm function? What are you trying to save? Are you trying to create a new record or are you editing an existing record?