I have a custom InfoPath form for at Sharepoint list. One of our users tried to create a new item and attach a document which had a very long file name.
When the user clicked the save button an error occurred as expected, saying the file name was to long. The user tried a number of times and finally managed to get the element created and the form closed.
But it turned out that an element was created each time the user had clicked save.
How can I prevent this from happening. The form is not supposed to create an element when there is an error.
We are using SP2013 and InfoPath 2013.