cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
TiredOldCoder
Level: Powered On

The "Sum" operator is not supported by this connector

What is wrong with this expression that I get subject error?

 

ClearCollect(
    fillVsVacant,
    {
        Category: "Filled",
        Count: Sum(
            Projects,
            'Billable Positions'
        )
    },
    {
        Category: "Vacant",
        Count: Sum(
            Projects,
            'Vacant Positions'
        )
    }
)

 

v/r,

Bill

1 ACCEPTED SOLUTION

Accepted Solutions
TiredOldCoder
Level: Powered On

Re: The "Sum" operator is not supported by this connector

@RandyHayesnot sure why, but when I moved the code to the app OnStart() it worked.  Bug or Feature?

4 REPLIES 4
Super User
Super User

Re: The "Sum" operator is not supported by this connector

@TiredOldCoder 

What kind of columns are the Billable and Vacant positions defined as?  And what is your data source?

 

If they turn out to be text instead of numeric, you could consider using the following:

ClearCollect(
    fillVsVacant,
    {
        Category: "Filled",
        Count: Sum(Projects,  Value('Billable Positions'))
    },
    {
        Category: "Vacant",
        Count: Sum(Projects, Value('Vacant Positions'))
    }
)

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
TiredOldCoder
Level: Powered On

Re: The "Sum" operator is not supported by this connector

@RandyHayes,

I've Googled this message and came up with ZIP!

Both fields are numbers in a list (not a document library):

TitleSingle line of text
Prime ManagerLookup
Alt ManagerLookup
Billable PositionsNumber
Vacant PositionsNumber
Job PostingsNumber
ModifiedDate and Time
CreatedDate and Time
Created ByPerson or Group
Modified ByPerson or Group

 

Super User
Super User

Re: The "Sum" operator is not supported by this connector

@TiredOldCoder 

All looks good! 

So, I would next start to suspect the environment...here's what I'd do next:

1) Save and close the app designer.  Then go back in to edit.  Many strange things are cleared up by this.

2) Remove the Projects datasource from your app...then add it back in.

3) Create a fresh app and add the Projects data source and a button with this exact syntax in the OnSelect.

 

Hopefully #1 will help and the others not needed, but if not, then walk down the list.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
TiredOldCoder
Level: Powered On

Re: The "Sum" operator is not supported by this connector

@RandyHayesnot sure why, but when I moved the code to the app OnStart() it worked.  Bug or Feature?

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 305 members 5,055 guests
Please welcome our newest community members: