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

 

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,297)