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

Escape SQL Query

(0) ShareShare
ReportReport
Posted on by 31

Hi,

 

I am trying to do a simple SELECT-FROM-WHERE query of an Excel file.

 

The problem seems that in the WHERE condition I am using a reserved keyword. My query is this one:

wezhema_0-1648069670522.png

 

As you can see, the "Zone" word seems reserved but that is the name of the column I want to filter.

When I run the query I am getting this error: Error in SQL statement Data type mismatch in criteria expression.

 

Thank you.

I have the same question (0)
  • Verified answer
    VJR Profile Picture
    7,635 on at

    Hi @wezhema 

     

    Although zone is printing in blue as a keyword but it is not giving any problems while using it in the where clause with a valid value.

    The problem could be due to the #N/A condition in the where clause.

     

    VJR_0-1648096440991.png

     

  • wezhema Profile Picture
    31 on at

    Thank you. Yes correct, the problem was the N/A, I changed the column to Text format in Excel and it is working now with single quotation marks.

  • VJR Profile Picture
    7,635 on at

    okay, @wezhema you can close the thread now.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 484

#2
11manish Profile Picture

11manish 282

#3
David_MA Profile Picture

David_MA 280 Super User 2026 Season 1

Last 30 days Overall leaderboard