cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
schneice
Frequent Visitor

App works in Test but fails on the Phone

 

Hi,

 

I've seen similar posts - but the suggested fixes do not seem to work for me.

 

My app works find in the test mode - but fail in the play mode or on a phone.

 

I receive this error:

"The requested operation is invalid. Server Response: The column 'gb_pumper' of the table wasn't found. inner exception: The column 'gb_pumper' of the table wasn't found."

 

I've traced it back to this gallalery item:

"Sort(GroupBy(lc_freez,"pumper","gb_pumper"),Sum(gb_pumper,delta),SortOrder.Ascending)"

 

Fixed I've tried:

1) Using "AddColumn"

2) Similar structure to create an additional collection vs doing it all in line

3) Setting the App settings to 

  • Delay load - ON
  • Explicit column selection - ON

Appreciate any help.

 
1 ACCEPTED SOLUTION

Accepted Solutions

I was able to solve the problem by using AddColumn and then dropping the "groupby" column.  Best I can determine, powerapps can run into trouble with some of the nested tables.

 

DropColumns(

AddColumns(

GroupBy(lc_freez,"pumper","gb_pumper2"),

"sum_delta2",Sum(gb_pumper2,delta),"sum_most_recent",Sum(gb_pumper2,most_recent)

)

,"gb_pumper2")

View solution in original post

3 REPLIES 3
v-monli-msft
Community Support
Community Support

Hi @schneice,

 

First of all, please share more detailed information of this app. Like what are the included data sources' type and what are their names?

 

About this part of the formula:

Sum(gb_pumper,delta)

Is gb_pumper the name of a table? The syntax of Sum function should be:

SumTableNumericalFormula )

 

Other involved functions' syntax should be:

SortTableFormula [, SortOrder ] )

GroupByTableColumnName1 [, ColumnName2, ... ], GroupColumnName )

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for the reply

 

Table name is lc_freez.  It has 3 columns pumper (text), delta (dec), most_recent (dec).

 

As I understand it gb_pumper is a new table generated by the GroupBy function.

 

 

I was able to solve the problem by using AddColumn and then dropping the "groupby" column.  Best I can determine, powerapps can run into trouble with some of the nested tables.

 

DropColumns(

AddColumns(

GroupBy(lc_freez,"pumper","gb_pumper2"),

"sum_delta2",Sum(gb_pumper2,delta),"sum_most_recent",Sum(gb_pumper2,most_recent)

)

,"gb_pumper2")

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,799)