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

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

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