cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Syntax Error for ClearCollect

Hello!

 

I am trying to create a collection using filter function:

ClearCollect(Collection1, Filter('[SOURCE].[D_ORG]','Alternative_name' = "X Group"))

The problem is that I get a syntax error:

The requested operation is invalid.
Server response: Syntax Error at position 43 in 'Alternative_x0020_Name' eg "X Group". Inner exception

Any idea how to overcome that?

The source is table in Oracle with VARCHAR2(32 BYTE) format.

 

Update: Seems like it is better to have a column names in format like xxxx and not "xxxx yyy xx" because it is starting to mess with the code.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Advocate III
Advocate III

Definitely not a casing issue with "Name"?

'Alternative_name' & 'Alternative_x0020_Name' 

Also, I don't think x0020 should be getting substituted in there if it's just an underscore (_) as PowerApps can handle underscores alright.  Best double check your names.

 

Maybe a Oracle DB thing, but also looks like too many brackets and quote marks.

ClearCollect(Collection1, Filter(SOURCE.D_ORG, Alternative_name = "X Group"))

View solution in original post

2 REPLIES 2
Highlighted
Advocate III
Advocate III

Definitely not a casing issue with "Name"?

'Alternative_name' & 'Alternative_x0020_Name' 

Also, I don't think x0020 should be getting substituted in there if it's just an underscore (_) as PowerApps can handle underscores alright.  Best double check your names.

 

Maybe a Oracle DB thing, but also looks like too many brackets and quote marks.

ClearCollect(Collection1, Filter(SOURCE.D_ORG, Alternative_name = "X Group"))

View solution in original post

Super User III
Super User III

Please note: Alternative_name is a column name and X Group is in the column name Alternative_name
ClearCollect(Collection1, Filter('[SOURCE].[D_ORG]',Alternative_name = "X Group"))

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (12,818)