This project has moved and is read-only. For the latest updates, please go here.

Rollup Function Issue

Oct 8, 2016 at 6:25 PM
I am using the rollup function with the follow string:

<fetch distinct="false" mapping="logical" output-format="xml-platform" version="1.0"><entity name="opportunity"><attribute name="name"/><attribute name="opportunityid"/><order descending="false" attribute="name"/></entity></fetch>

I keep getting the following exception any ideas as to what is not formatted properly?

Unexpected exception from plug-in (Execute): msdyncrmWorkflowTools.RollupFunctions: System.FormatException: Input string was not in a correct format.
Coordinator
Nov 13, 2016 at 10:35 PM
Hi jjones216,
I'm going to test it in order to solve it.

regards!
Coordinator
Nov 18, 2016 at 10:30 PM
Hi jjones, the error is because you need to add as a first field in the fetchXML must to be a number or money Attribute (it's documented here: https://msdyncrmworkflowtools.codeplex.com/wikipage?title=Rollup%20Functions&referringTitle=Documentation)
if you change the "name" attribute for the "estimatedvalue" it works fine.

regards!