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

Re: Syntax Error for ClearCollect

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

Re: Syntax Error for ClearCollect

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

Highlighted
Super User III
Super User III

Re: Syntax Error for ClearCollect

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!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (9,152)