cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Kudo Kingpin
Kudo Kingpin

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
Highlighted
Memorable Member
Memorable Member

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/

Highlighted
Responsive Resident
Responsive Resident

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?

 

Highlighted
Kudo Kingpin
Kudo Kingpin

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.

Highlighted
Responsive Resident
Responsive Resident

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

Please attach a picture of your list definition
Kudo Kingpin
Kudo Kingpin

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

Capture.PNG

Highlighted
Kudo Kingpin
Kudo Kingpin

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

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

Highlighted
Kudo Kingpin
Kudo Kingpin

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.

Highlighted
Kudo Kingpin
Kudo Kingpin

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

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

Highlighted
Responsive Resident
Responsive Resident

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
Check this Out

Announcing

Class of 2020- Season 2

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,187)