Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

string testSerialize = JSON.serialize(database.query('SELECT COUNT(Id) custTot, Industry Indus from Account Group by Industry'));

system.debug('test '+ testSerialize);

Ran this query in developer console Spring 13 both sandbox and production results in producing the below output

[{"attributes":{"type":"AggregateResult"}},{"attributes":{"type":"AggregateResult"}},{"attributes":{"type":"AggregateResult"}},{"attributes":{"type":"AggregateResult"}},{"attributes":{"type":"AggregateResult"}}]

Before Spring 13 it returns data after this upgrade causing problems.

share|improve this question
    
I got the same issue in the Spring'13 preview, for the Winter'13 org, it is fine. –  Jia Hu Jan 22 '13 at 9:32
    
One of my org is upgraded to Winter 13 In all pages it is breaking. So wired to see this issue in salesforce and raised support ticket replied they was doing R&D and there was no time line commit to fix this. –  Ugesh Gali Jan 22 '13 at 10:10
    
Uggggh, that's nasty. Hope they get that resolved soon. I've got JSON serialization sprinkled all over the place. –  Kevin O'Hara Jan 22 '13 at 17:33
    
@UgeshGali What is the case number that you raised? –  Greg Grinberg Jan 22 '13 at 18:18
    
@grigriforce Sorry about late reply Partner Portal Case Number: #08618428 –  Ugesh Gali Jan 23 '13 at 17:20

1 Answer 1

up vote 4 down vote accepted

I can confirm that this was fixed in the latest patch release. Here are the (correct) results that I'm getting in a spring 13 sandbox.

string testSerialize = JSON.serialize(database.query('SELECT COUNT(Id) custTot, Industry Indus from Account Group by Industry'));
system.debug('test '+ testSerialize);

01:21:37:134 USER_DEBUG [3]|DEBUG|test [{"attributes":{"type":"AggregateResult"},"custTot":32,"Indus":null}]
share|improve this answer
    
Thank you for your reply. After escalating to so many levels they released a patch. –  Ugesh Gali Feb 10 '13 at 17:27
    
@UgeshGali could you 'accept' this answer? –  metadaddy Feb 11 '13 at 16:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.