Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

SQL Connector - Get Rows Filter error

(0) ShareShare
ReportReport
Posted on by 41

Hi I'm getting a SQL row of exchange rate date and filtering by certain rates and where the createdOn is today. 

 

I can get it to work aside from the today filter. This is my filter expression:

TransactionCurrencyIdName eq 'US Dollar' or TransactionCurrencyIdName eq 'Australian Dollar' or TransactionCurrencyIdName eq 'Euro' or TransactionCurrencyIdName eq 'South African Rand' and CreatedOn eq @{formatDateTime(utcNow(),'yyyy/MM/ddT00:00:00Z')}

This is the error
An identifier was expected at position 202.
inner exception: An identifier was expected at position 202.

I can only assume tis is related to the data format/now expression can anyone please advise?

The CreatedOn data is in ISO 8601 - 

"CreatedOn":"2016-10-25T07:46:03Z"
  • lbendlin Profile Picture
    7,794 Super User 2025 Season 1 on at
  • Johnnyoc Profile Picture
    41 on at
    Re: SQL Connector - Get Rows Filter error

    The filters work aside from the dates. The date in the data is 

    "CreatedOn": "2024-05-09T06:00:08Z"

     

    I've tried filters using both the below that returns nothing using a static date and expression:
    CreatedOn eq '2024-05-09T06:00:08Z'

    utcnow('yyyy-MM-dd')

  • lbendlin Profile Picture
    7,794 Super User 2025 Season 1 on at
    Re: SQL Connector - Get Rows Filter error

    please provide some sample data that covers all these scenarios.

  • Johnnyoc Profile Picture
    41 on at
    Re: SQL Connector - Get Rows Filter error

    Hi @lbendlin this doesn't error but returns no values. Which it should. Any other ideas?

  • lbendlin Profile Picture
    7,794 Super User 2025 Season 1 on at
    Re: SQL Connector - Get Rows Filter error
    TransactionCurrencyIdName eq 'US Dollar' and CreatedOn eq '@{formatDateTime(utcNow(),'yyyy-MM-dd')}'
    or TransactionCurrencyIdName eq 'Australian Dollar' and CreatedOn eq '@{formatDateTime(utcNow(),'yyyy-MM-dd')}'
    or TransactionCurrencyIdName eq 'Euro' and CreatedOn eq '@{formatDateTime(utcNow(),'yyyy-MM-dd')}'
    or TransactionCurrencyIdName eq 'South African Rand' and CreatedOn eq '@{formatDateTime(utcNow(),'yyyy-MM-dd')}'
    
  • Johnnyoc Profile Picture
    41 on at
    Re: SQL Connector - Get Rows Filter error

    Ah many thanks. This is the onprem connector.

  • lbendlin Profile Picture
    7,794 Super User 2025 Season 1 on at
    Re: SQL Connector - Get Rows Filter error

    Your filter logic is flawed. You need to protect the OR filters from the AND filter.

     

    Is this an on prem SQL or Azure SQL?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow