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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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