web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Item does not exist er...
Power Apps
Answered

Item does not exist error when calling flow from powerapp

(0) ShareShare
ReportReport
Posted on by

Dear community,

I am struggling to make below thing to work. I am calling a power automate on visible of the screen.

 

Run(Value(SharePointIntegration.SelectedListItemID)).response)

 

which is giving the last opened item in list. whereas i need current item id to pass to the flow. This then caches the data for other items.

 

I then changed the approach and used ID card value

Run(Value(DataCardValue8.Text)).response) 

ItemID 0 is being passed.

 

And Error is Item Does not exist (obvious as no item has ID 0)

 

Flow.Run failed: { "error": { "code": 502, "source": "europe-001.azure-apim.net", "clientRequestId": "b6ab38ba-9eb0-4dc0-b33e-47bda6e9ed04", "message": "BadGateway", "innerError": { "error": { "code": "NoResponse", "message": "The server did not receive a response from an upstream server. Request tracking id '08585173556709637766979509432CU203'." } } } }

Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    Does DataCardValue8.Text have a value yet when OnVisible is fired? Might also want o wrap it in Value(DataCardValue8.Text) and see if that helps since just .text may be trying to pass the id column a text value, which will usually work but can simultaneously give some errors in the formula area that go away once you add the Value() container

  • Vaibhav_k Profile Picture
    on at

    Hi @TheRobRush, yes Value is already being used and i see value inside. Is there any other event where I can set this id or call this. I need to fire this flow on itemview or edit is clicked 

  • TheRobRush Profile Picture
    11,128 Moderator on at

    try placing this in the onvisible of your screen

    UpdateContext({CheckValue:DataCardValue8.Text})

    then place a label on that screen with the text value of CheckValue

     

    then reload the app and go to that screen and see if it gives you the right number when the screen loads.

     

    If it does, for step 2 try using CheckValue in the run

     

  • Vaibhav_k Profile Picture
    on at

    @TheRobRush , Thanks I have already performed those steps. The value is present. Seems flow got corrupted. Need to recreate and check

  • Vaibhav_k Profile Picture
    on at

    @TheRobRush I have recreated flow. The label isn't populating value in powerapp. I even tried on AppStart but it's not passing ID to flow.

  • TheRobRush Profile Picture
    11,128 Moderator on at

    If the label is blank after your update context then there is an issue at the

    DataCardValue8.Text

     

    level, not the flow

  • Vaibhav_k Profile Picture
    on at

    @TheRobRush how to pass current item id to any flow from list customized form. This should happen when list item is opened or edited?

  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

    first thing that pops to mind is when form button is pressed before the SubmitForm Place a Set(currentItem, and place the control that has the id in it.ID here) then you cna just reference currentItem variable

  • Verified answer
    Vaibhav_k Profile Picture
    on at

    This is now resolved. Used sharepointintegration. SelectedItemId in view and edit events. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard