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 Automate / SQL Statement Executed...
Power Automate
Unanswered

SQL Statement Executed, "CurrentItem" in loop keeps failing

(0) ShareShare
ReportReport
Posted on by 112

Hi all, 

 

I'm having an absolute nightmare with something I feel should be fairly simple. 

 

I've created a Power Automate Desktop flow that executes a SQL statement and returns a set of results (50-100 rows, 16 Columns) and should then perform a series of actions for each item. The first of these items is to input the traderid into a field on the UI. The trouble I'm having is the error "Variable 'CurrentItem' doesn't have a property 'traderid'. Everything I can see clearly indicates that it does have this property. (Screenshots below of the CurrentItem, and the error received. 

Step that's failing:

SimonSmith84_2-1663063716423.png

Current Item information:

SimonSmith84_1-1663063579717.png

Error Message:

SimonSmith84_0-1663063515751.png

 

 

I've convinced myself that this is something really obvious that I'm doing wrong, but I absolutely cannot figure out what it is! Any help would be greatly appreciated. 

I have the same question (0)
  • SimonSmith84 Profile Picture
    112 on at

    Update: I figured it out! Annoyingly, it turns out you can't reference the Current Item by it's column name. Changing it to a column Number in the 'send keys' seems to have worked:

    %CurrentItem[0]% successfully inputs the correct value. (Tested this with the other values I needed and it's worked consistently with using the column number. 

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard