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 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

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

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 671

#3
Haque Profile Picture

Haque 551

Last 30 days Overall leaderboard