cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bonifacious
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
Slaverty
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
Slaverty
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

eka24
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (30,400)