cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
yougan
Helper V
Helper V

error while any assigning collection

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.

 

11 REPLIES 11
eka24
Super User
Super User

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
Super User
Super User

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.

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.

 

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.

Hello,

Thank you for your time.

But no luck. I have attached screenshots showing errors. 

 

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.

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. 

 

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.

Hi Eka,

 

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

Please find attached screenshots.

 

Thank you. 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,794)