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

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)

Highlighted
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
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (10,172)