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
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (4,741)