Search Community
- Force.com Discussion Boards
- :
- Salesforce User Discussions
- :
- Product Discussion
- :
- Re: Compiled formula too big error (Was: Need help...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Compiled formula too big error (Was: Need help with a Formula)
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-27-2006 07:22 PM - last edited on 04-27-2006 07:22 PM
IF(AND ({!Grand_Total__c} >= 34, {!Grand_Total__c} <=66 ),"Medium",
IF(AND ({!Grand_Total__c} >= 67, {!Grand_Total__c} <= 100),"Large","")))
Message Edited by Kingsley on 06-08-2006 10:35 AM
Re: Need help with a Formula
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-28-2006 06:07 AM
If( GT > 0,
if ( GT <= 33, "Small",
if( GT <= 66, "Medium",
if( GT <= 100, "Large", ">0 and Larger then Large")
)
)
, "< 0")
Re: Need help with a Formula
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-28-2006 06:30 AM
Hi Daroz,
Thanks but referencing Grand Total more than once in the formula pushes the compiled size over the 4000 character limit. Your formula is15,608 characters. While smaller than mine, it's still too large. I've been trying to use the CASE function but so far I'm SOL.
Aiden
Re: Need help with a Formula
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-29-2006 05:37 PM
I don't see a way to do what you want in this forumla. I suggest you try to dig into your Grand Total formula and see if you can cut it back instead.
Re: Need help with a Formula
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-08-2006 12:36 AM
CASE (TRUE,
{!Grand_Total__c} <= 33, "Small",
{!Grand_Total__c} <=66, "Medium",
{!Grand_Total__c} <=100, "Large",
"")
Good luck,
Eric
Eric Bezar
AppExchange Platform Product Management
force.com Platform Product Management
Re: Need help with a Formula
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-31-2006 08:45 AM
Re: Need help with a Formula
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-01-2006 11:49 PM
My apologies. My formula was completely wrong. (Note to self: always test these things before posting)
Here is a formula that does work. Not sure if it will save that much space, though...
CASE (1,
IF( {!Amount} <= 33, 1, 0), "Small",
IF( {!Amount} <= 66, 1, 0), "Medium",
IF( {!Amount} <=100, 1, 0), "Large",
"Huge")
Cheers,
Eric
force.com Platform Product Management
Re: Compiled formula too big error (Was: Need help with a Formula)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-27-2006 12:20 PM
I just talked to a support rep on the phone and he said that it's not on the roadmap - maybe I'm using these formulas completely wrong?
Does anyone have any ideas on reducing the compiled size of formulas? I've already shortened some field names which seems to work. I'm also using "contains" instead of "equals" for text comparison. Case is nice to read, but does take up a little more room.
Thanks,
Peter
Re: Compiled formula too big error (Was: Need help with a Formula)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-14-2009 06:15 PM
Since the ealier formulas are so close to the cap you may want to post them for help shrinking them a bit. I have hit that limit myself on two occasions. On one occasion, the field wasnt truly needed so I just used a report when someone wanted the number.
On the other occasion, I found that hardcoding any fields that did not change was helpful. Wouldnt know if this applies to you in any way.
Re: Compiled formula too big error (Was: Need help with a Formula)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
08-25-2009 09:58 AM
~ sfdcfox ~
"Approve as Solution" isn't about who can provide the most solutions. Only mark replies as a solution if you want to, and only if you feel the solution might benefit future readers, and especially if you feel the reply wan't given just to try and boost their "score."

