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 when using the c...
Power Apps
Unanswered

Error when using the collect function: the value must be between 0 and 100

(0) ShareShare
ReportReport
Posted on by 6

help!

Categories:
I have the same question (0)
  • LowCodeJim Profile Picture
    314 Moderator on at

    Can you post the collect statement you are using as well as information about the data source? As a guess it sounds like you may be trying update something that has a restriction about what data can be used (e.g. a SP number column with a min and max set as 0 and 100.

  • Jplm6 Profile Picture
    6 on at

    Collect(
    'SGF Checklist';
    {
    Id: GUID();
    Observação: TextInput1.Text;
    Resultado: DropdownCanvas1.Selected.Value;
    Item: Label52.Text;
    Tipo: Label51.Text
    });;
    Collect(
    'SGF Checklist';
    {
    Id:GUID();
    Observação: TextInput2.Text;
    Resultado: DropdownCanvas2.Selected.Value;
    Item: Label53.Text;
    Tipo: Label51.Text

    });;
    Collect(
    'SGF Checklist';
    {
    Id:GUID();
    Observação: TextInput3.Text;
    Resultado: DropdownCanvas3.Selected.Value;
    Item:Label54.Text;
    Tipo: Label51.Text

    });;
    Collect(
    'SGF Checklist';
    {
    Id:GUID();
    Observação:TextInput4.Text;
    Resultado: DropdownCanvas4.Selected.Value;
    Item:Label55.Text;
    Tipo: Label51.Text

    });;
    Collect(
    'SGF Checklist';
    {
    Id:GUID();
    Observação:TextInput5.Text;
    Resultado: DropdownCanvas5.Selected.Value;
    Item:Label56.Text;
    Tipo:Label51.Text

    });;
    Collect(
    'SGF Checklist';
    {
    Id:GUID();
    Observação:TextInput6.Text;
    Resultado:DropdownCanvas6.Selected.Value;
    Item:Label57.Text;
    Tipo:Label51.Text

    });;
    Collect(
    'SGF Checklist';
    {
    Id:GUID();
    Observação:TextInput7.Text;
    Resultado:DropdownCanvas7.Selected.Value;
    Item:Label58.Text;
    Tipo:Label51.Text

    })

  • LowCodeJim Profile Picture
    314 Moderator on at

    OK, are you able to tell me anything about the datasource "SGF Checklist"? Also with the collect function you can collect multiple records at once rather than having to write multiple collect statements. 

    Collect(
    'SGF Checklist';
    {
    Id: GUID();
    Observação: TextInput1.Text;
    Resultado: DropdownCanvas1.Selected.Value;
    Item: Label52.Text;
    Tipo: Label51.Text
    };
    {
    Id:GUID();
    Observação: TextInput2.Text;
    Resultado: DropdownCanvas2.Selected.Value;
    Item: Label53.Text;
    Tipo: Label51.Text
    
    };
    {
    Id:GUID();
    Observação: TextInput3.Text;
    Resultado: DropdownCanvas3.Selected.Value;
    Item:Label54.Text;
    Tipo: Label51.Text
    
    };
    {
    Id:GUID();
    Observação:TextInput4.Text;
    Resultado: DropdownCanvas4.Selected.Value;
    Item:Label55.Text;
    Tipo: Label51.Text
    
    };
    {
    Id:GUID();
    Observação:TextInput5.Text;
    Resultado: DropdownCanvas5.Selected.Value;
    Item:Label56.Text;
    Tipo:Label51.Text
    
    };
    {
    Id:GUID();
    Observação:TextInput6.Text;
    Resultado:DropdownCanvas6.Selected.Value;
    Item:Label57.Text;
    Tipo:Label51.Text
    
    };
    {
    Id:GUID();
    Observação:TextInput7.Text;
    Resultado:DropdownCanvas7.Selected.Value;
    Item:Label58.Text;
    Tipo:Label51.Text
    })

    Apologies if the semi colons are not quite right, I am used to using commas. Does the error appear when you type the formula or when you run it?

  • Jplm6 Profile Picture
    6 on at

    It appears when I run it.

  • LowCodeJim Profile Picture
    314 Moderator on at

    And what is the data source "SGF Checklist"? A SharePoint list?

  • Jplm6 Profile Picture
    6 on at

    Dataverse table 

  • LowCodeJim Profile Picture
    314 Moderator on at

    Ah ok, maybe you need to increase the max length of your text fields? By default a dataverse Text/Text area max length is 100 characters

    SharePointJB_0-1712845485673.png

    Can you check your column settings for Observação, Item and Tipo. I suspect you need to increase one of these.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 510

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 281

Last 30 days Overall leaderboard