I have a Powerapp i am building which connects to a sharepoint list. I am using a ForAll/ Patch formula to take the entered information from a collection and upload it to the SP list. When i enter my formula i get no errors and my SP list shows as a data source for my app. I click it and get an unknown error and my formular is now red underlined for the whole patch section. If i remove and reattach the Sp datasource all of the suddon my formula has no errors again.... I am at a loss as to how to proceed not sure if there is something i am missing... Any help would be greatly appreciated. Thank you.
See attached for Formula
Have you included all the SP list's required fields in your patch function? and are you passing a correct datatype to your SP fields?
Just realized my Date tab on my Papp is just listed as number but on the spits listed as Date. Might that be affecting it. Other than that i dont see where the error is.
Hi @JChouris ,
Yes, if you update data of different data type will lead to error.
Please make sure that the value's data is the same as the fields' data type.
If not, please transfer them to the same data type.
If filed1 is a date type, while value1 is number type, please try this: {field1:DateTimeValue(value1)}
If filed1 is a number type, while value1 is text type, please try this: {field1:Value(value1)}
When you update data, data type is really important!
Best regards,
I tried the formula, still got the error, i removed the date from my formula, collection, and from my SP list and still get the same error. At this point i really dont know what to do. I have attached my Entry Form as well as my formula. I am new to this and all help is appreciated .
am not familiar with forms at all and wouldnt know where to start. I have included a copy of the formula and it is still nor working i am getting an error 'The type of this argument'Author' does not match the expected type 'Record'. Found type 'Text'. I am not sure what that means or how to resolve it. I included a snippet of the formula as it stands now
I would simplify the expression to troubleshoot it. remove the ForAll function, then Patch using only 3-4 columns (the Title field should be in the patch function, because it's a required column in your SharePoint list). and then add more columns if the first step was successful.
To learn how to work with PowerApps forms, watch Shane Young's videos on youtube. https://www.youtube.com/watch?v=BnYe_7fpZRM