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

View cannot be utilized when building collection

I have an existing PowerApp that is functioning for over a year. I want to enhance it and add a new view.

I have added new view vTblFundTblClassMappingEffDates via On Premises SQL data connector. The view is visible in the data pane.

When I try to build a new collection

ClearCollect(
EffDatesFundTblClassMapping,
ShowColumns(
'[PowerApps].[vTblFundTblClassMappingEffDates]',
"Id",
"effDate",
"effDateStr"
)),

I am getting error messages:

The function ShowColumns has some invalid arguments. Name isn't valid. This identifier isn't recognized.

When I clean the name of the view from the formula and try to choose from the list, it is not available (I can just choose from the existing view names).

Please help

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hello Warren,

 

Quite strange. New view does not include brackets now. Instead of '[PowerApps].[vTblFundTblClassMappingEffDates]' it is 'PowerApps.vTblFundTblClassMappingEffDates'. While I would prefer more consistency, the bottom line is - it works.

Thank you for your support

 

ZStaniek_0-1618922319600.png

ZStaniek_1-1618922472846.png

 

 

View solution in original post

4 REPLIES 4
WarrenBelz
Super User
Super User

Hi @ZStaniek ,

There is something not obvious wrong here

WarrenBelz_0-1618864172281.png

The syntax appears valid (I assume this in in the middle of a Concurrent statement) and it has accepted the almost identical one above. The only thing I would ask is if you have not repeated the collection name somewhere above. If not, it seems to not be liking one of the field values - you might check these.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

Warren,

Yes, this is a part of Concurrent statement.

The view is not accessible when I try to browse through, even if visible in the left pane.

I tried to delete and re-create. Did not help.

Thank you,

Zenon

ZStaniek_1-1618866739754.png

 

@ZStaniek ,

Put this on a button

ClearCollect(
   colClassMap,
   [PowerApps].[vTblFundTblClassMappingEffDates]
)

and go to View > Collections > colClassMap and see what is in there (particularly the field names you are trying to collect)

Hello Warren,

 

Quite strange. New view does not include brackets now. Instead of '[PowerApps].[vTblFundTblClassMappingEffDates]' it is 'PowerApps.vTblFundTblClassMappingEffDates'. While I would prefer more consistency, the bottom line is - it works.

Thank you for your support

 

ZStaniek_0-1618922319600.png

ZStaniek_1-1618922472846.png

 

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,175)