cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Database saved as collection reflecting incorrect strange column headers "afvw", "bnse"?

Hi,

 

I have a Sharepoint database. I store it in a collection and model it and use it for multiple purposes in my PowerApp. However, when I added 10 new columns to it and when I am storing it in a collection, the headers of the new columns are not appearing correctly. Please refer to the below screenshot. The name of the columns are "Resource_BCS", "Resource_BCS2", "Resource_BCS3" etc.

Screenshot (120).png

Please note if I am using the database directly in a data table or form, the headers are coming right but when I am storing them as a collection, the headers are acting weird. How do I fix it?

 

Regards,

Aakash 

1 ACCEPTED SOLUTION

Accepted Solutions

@Anonymous 

 

I did not run into this issue earlier but I noticed that there is a post which talked about the same. I hope this can be helpful.

 

https://powerusers.microsoft.com/t5/Building-Power-Apps/Collection-column-names-not-displaying-correctly/td-p/50553

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

View solution in original post

4 REPLIES 4
rsaikrishna
Community Champion
Community Champion

@Anonymous 

 

While storing the collection, you can give the name to the fields as mentioned below:

 

This show all the fields are they are in SP list:

ClearCollect(colSharePointItems, <SharePointList datasource>)

 

This will show partial set of fields:

ClearCollect(colSharePointItems, ShowColumns(<SharePointList datasource>, "Column1", "Column2"))

Note: Column1 , Column2 are actual column names in the SP list.

 

This will set your custom field names:

ClearCollect(colSharePointItems, <SharePointList datasource>, {Field1: Column1, Field2: Column2})

Now, Field1, Field2 are the display names in the collection.

 

Please share your collection code to see more internal details.

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.

 

Anonymous
Not applicable

@rsaikrishna Thanks for the suggestion but I knew it in the first place.  The reason I didn't follow that approach is because I have more than 60 columns.

 

Do you know why this issue is happening in the first place? Isn't this a bug? 

@Msft 

@Anonymous 

 

I did not run into this issue earlier but I noticed that there is a post which talked about the same. I hope this can be helpful.

 

https://powerusers.microsoft.com/t5/Building-Power-Apps/Collection-column-names-not-displaying-correctly/td-p/50553

 

Regards

Krishna Rachakonda

If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.
Anonymous
Not applicable

@rsaikrishna Thank you for referring that thread. The problem described and the solution suggested was exactly what I was needed.

 

Regards,

Aakash

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 (3,933)