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 / error while any assign...
Power Apps
Unanswered

error while any assigning collection

(0) ShareShare
ReportReport
Posted on by 262

While assigning a collection giving below error. 

in case if collection is not created yet, do we need to create a collection and execute this formulae?

If yes with how we need to creation collection. Please help.

 

Capture.PNG
Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    The issue has to do with workinghours, is it a name of a textbox or name of a collection?

    Collect(workinghours,{Name:NameTextInput.Text,Hour: workinghours.Text})

    So try:
    Collect(workinghoursTable,{Name:NameTextInput.Text,Hour: workinghours.Text})

    if workinghours is not a textbox, replace it with the name of the textbox on your form

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • eka24 Profile Picture
    20,925 on at

    Hello is the issue Resolved

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • yougan Profile Picture
    262 on at

    Hello,

    I tired as you have suggested.

    Please refer attached screenshots.

    workinghourstable -->collector name

    in case if  I still I get the error, does it mean I should have created collector before? if yes how? Please help.

     

    Capture.PNG
    Capture2.PNG
  • eka24 Profile Picture
    20,925 on at

    Use

    Collect(workinghoursTable,{Name:NameTextInput.Text,Hour: WorkingHoursText.Text})

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • yougan Profile Picture
    262 on at

    Hello,

    Thank you for your time.

    But no luck. I have attached screenshots showing errors. 

     

    Capture2.PNG
    Capture.PNG
  • eka24 Profile Picture
    20,925 on at

    Change the collection name. Also can you use a button instead of the triangle.

     

    Collect(workinghoursTable2,{Name:NameTextInput.Text,Hour: WorkingHoursText.Text})

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • yougan Profile Picture
    262 on at

    still same.

    Where I have used triangle? are you referring rectangle?

     

    I have attached screenshots

    If possible can we have a screen sharing  now? Thank you. 

     

    Capture.PNG
    Capture2.PNG
  • eka24 Profile Picture
    20,925 on at

    I have seen the problem:

    Follow this;

    Insert 2 new Textboxes  and let call it TextboxA and TextboxB.

     

    Then use the formula as follows;

    Collect(workinghoursTable2,{Name:TextboxA.Text,Hour:TextboxB.Text})

     

    The issue is that what you have named as TexInputText is a rectangle not a Textbox. You cannot type or enter anything Ina rectangle. You have to use a Textbox.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • yougan Profile Picture
    262 on at

    Hi Eka,

     

    still  it is not working for me. Not sure where I was doing wrong.

    Please find attached screenshots.

     

    Thank you. 

    Capture.PNG
    Capture2.PNG
  • eka24 Profile Picture
    20,925 on at

    What you have shown is a label not a Textbox. To insert a text, look at the picture you sent, on the insert tab, look down and go to Text.

    Select the Text, it will give you options including Textinput. Click on Textinput. That would insert a Textbox. Am not on my machine I would have given a picture.

    https://youtu.be/PC7pddoqluo

     

    After watching, go to my reply before this one.

    If you have issues on Textinput watch this on how to insert Textbox or Textinput

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard