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 / Collect command errors
Power Apps
Unanswered

Collect command errors

(0) ShareShare
ReportReport
Posted on by 6

Hello, I need help with my function. I want a submit button for my newly created form, and it's having errors, and I don't know where it is. This is my syntax

 

Collect(
Leak_Reporting2,
{
Date: date.Text,
'WCAV Unit': wcavunit.Text,
'Reported By:': reportedby.Text,
'Type of Leak': typeofleak.Text,
MRU: mru.Text,
'Complete Adress(if possible)': completeaddress.Text,
'Nearest Landmark/Meter Number': nearestlandmark.Text,
'Contact Number(if available)': contactnumber.Text,
'CAN(if available)': CAN.Text,
'Chlorine Test': chlorine.Text,
Remarks: remarks.Text
}
)

powerapps form screenshot.png
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,463 Most Valuable Professional on at

    Hi @jofergalope ,

    What is your data source and what type of field is Date. I also assume that is a Text Box you are inputting the value in. You also have three drop-downs there, so this also needs to be done first

    Collect(
     Leak_Reporting2,
     {
     Date: date.Text,
     'WCAV Unit': wcavunit.Selected.Value,
     'Reported By:': reportedby.Text,
     'Type of Leak': typeofleak.Selected.Value,
     MRU: mru.Text,
     'Complete Adress(if possible)': completeaddress.Text,
     'Nearest Landmark/Meter Number': nearestlandmark.Text,
     'Contact Number(if available)': contactnumber.Text,
     'CAN(if available)': CAN.Text,
     'Chlorine Test': chlorine.Selected.Value,
     Remarks: remarks.Text
     }
    )
  • jofergalope Profile Picture
    6 on at

    hi, @WarrenBelz !  my data source is excel online, and field type of Date is Text format. I also tried editing the dropdowns to "Selected.Value", and it's not being recognized.

    powerapps error.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard