cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RussellGove
Level 10

Getting message "An Error occurred on the Server" with ClearCOllect function

Hi,

I have a sharepoint list called 'Technical Requests' that I'm trying to use in a powerapp. When I put this code in the onSelect of a button:

ClearCollect(localTR,'Technical Requests')

 

the localTR collection is not created and i get the yellow warning sign on the button with a message that says ""An Error occurred on the Server"

 

If I change the clearCollect to pull data from a different list it works fine,

 

If i add a datagrid to my screen and bind it to the 'Technical Requests' list , that works fine too.

 

Anyone have anyidea why I cannot run clearcollect on some sharepoint lists?

 

 

16 REPLIES 16
Sienna
Level 10

Re: Getting message "An Error occurred on the Server" with ClearCOllect function

You might experiencing it because of this

https://powerapps.microsoft.com/en-us/support/

bdodu
Level 8

Re: Getting message "An Error occurred on the Server" with ClearCOllect function

I think the incident was closed already and you may encounter another issue.

Is your list having anything special than the others they are working? 

 

Also if you ClearCollect on OnVisible do you get the same error?

 

RussellGove
Level 10

Re: Getting message "An Error occurred on the Server" with ClearCOllect function

Yeah, I get the same issue.

I Just generated an 'out-of-the-box' app off the same list and it also gives me this error.

bdodu
Level 8

Re: Getting message "An Error occurred on the Server" with ClearCOllect function

Please attach a picture of your list definition
RussellGove
Level 10

Re: Getting message "An Error occurred on the Server" with ClearCOllect function

Capture.PNG

Highlighted
RussellGove
Level 10

Re: Getting message "An Error occurred on the Server" with ClearCOllect function

are there any unsupported column types? (I have no managed metadata)

RussellGove
Level 10

Re: Getting message "An Error occurred on the Server" with ClearCOllect function

The list was uploaded from Access, so uses list template 120. I thought that may be the issue, bit it works on other lists uploaded from access that have list template 120.

RussellGove
Level 10

Re: Getting message "An Error occurred on the Server" with ClearCOllect function

I can save list as template, and upload a .stp

bdodu
Level 8

Re: Getting message "An Error occurred on the Server" with ClearCOllect function

did you try to create an app from that list? it is also crashing I suppose but may be you will receive a more friendly error message

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (4,535)