Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

This formula uses scope Error.

(0) ShareShare
ReportReport
Posted on by 125

Hi Folks,

 

I'm receiving this kind of error and I don't know how to fix. It is basically a Text on a Gallery, and the items/data source in gallery is a Split()

philifova_1-1669646525480.png

 

philifova_0-1669646444123.png

 

  • Verified answer
    philifova Profile Picture
    philifova 125 on at
    Re: This formula uses scope Error.

    @Pstork1 

     

    I was able to fix the problem, what I did is put the value first in a collection and reference it in gallery.

  • Pstork1 Profile Picture
    Pstork1 64,741 on at
    Re: This formula uses scope Error.

    The message about this item not in scope isn't actually an error.  That simply means that it can't show you the actual values at runtime like it normally does.  Your error is coming from something else in the formula that is invalid.  I would take your Find() function and put that into a separate label for troubleshooting so you can see what value is being returned at runtime.  I would also suggest adding some parentheses to the equation to group the subtractions.  Are you subtracting 17 from the overall length or from the location of "/B"?

  • philifova Profile Picture
    philifova 125 on at
    Re: This formula uses scope Error.

    @Pstork1 

     

    The Items of my gallery is like this ;item1;item2;item3. That is why I split it to return multiple results using a delimiter ";". The ThisItem.Result, It was automatically provided by PowerApps. Is there a way to change it?

  • Pstork1 Profile Picture
    Pstork1 64,741 on at
    Re: This formula uses scope Error.

    Is Result one of the columns for the items in the gallery?  You might want to change that to some other name since Result is used as a keyword in some other functions.  If its not a column then where is Result being calculated?

  • philifova Profile Picture
    philifova 125 on at
    Re: This formula uses scope Error.

    Hi @Pstork1 

     

    Both of my screenshot is in different property. 

     

    philifova_0-1669647211238.png

    philifova_1-1669647247142.png

     

  • Pstork1 Profile Picture
    Pstork1 64,741 on at
    Re: This formula uses scope Error.

    Add a ';' after the Split() on the first line.  These are two separate functions and need to be seperated using a semicolon.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard