cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
younceb
Advocate I
Advocate I

Execute SQL Statement not accepting like operator with % wildcards on beginning and end of search string

Execute SQL Statement not accepting like operator with % wildcards on beginning and end of search string

 

It gives the complaint that the variable does not exist most likely due to that also being the variable notation in PAD.

 

Below query results in variable does not exist error:

 

SELECT PersonnelNumber, EmployeeName
FROM Table_Name where UserID like '%user_12345%';

 

 

Variable 'user_12345' doesn't exist.

 

PAD version: 2.6

 

2 REPLIES 2
alrez
Community Support
Community Support

Hi,

 

Thanks for your post! We will start looking into this and hopefully we can find a work around for this. This looks to be an issue with how Graph is processing double "%".

 

Regards,

 

Alex

 

-------

 

Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

schneiderm
Regular Visitor

Using double % works well in my statements:

 

SELECT PersonnelNumber, EmployeeName
FROM Table_Name where UserID like '%%user_12345%%'

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (1,839)