cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RussellGove 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
Sienna 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/

bdodu 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?

 

RussellGove 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.

bdodu Responsive Resident
Responsive Resident

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

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

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

Capture.PNG

RussellGove 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)

RussellGove 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.

RussellGove 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

bdodu 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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,738)