• Tarakkumar
  • NEWBIE
  • 0 Points
  • Member since 2011
  • Technical Architect
  • Salesforce.com


  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 4
    Replies

I am still getting the same error - 
When I looked at the log, it is failing on assertion as below - User-added image
1. When process builder did not update the OLI record - 
05:03:06.214 (1422560750)|SOQL_EXECUTE_BEGIN|[27]|Aggregations:0|SELECT id, unitprice FROM OpportunityLineItem WHERE Id = :tmpVar1
05:03:06.214 (1427061323)|SOQL_EXECUTE_END|[27]|Rows:1
05:03:06.214 (1427094355)|HEAP_ALLOCATE|[27]|Bytes:8
05:03:06.214 (1427118604)|HEAP_ALLOCATE|[27]|Bytes:78
05:03:06.214 (1427189495)|HEAP_ALLOCATE|[27]|Bytes:8
05:03:06.214 (1427212773)|HEAP_ALLOCATE|[27]|Bytes:45
05:03:06.214 (1427310436)|HEAP_ALLOCATE|[27]|Bytes:12
05:03:06.214 (1427374222)|VARIABLE_ASSIGNMENT|[27]|oli1|{"s":1,"v":{"Id":"00k2800000841JsAAI","UnitPrice":2.00}}|0x585f6400
05:03:06.214 (1427382881)|STATEMENT_EXECUTE|[28]
05:03:06.214 (1427394432)|HEAP_ALLOCATE|[28]|Bytes:4
05:03:06.214 (1427731260)|SOQL_EXECUTE_BEGIN|[28]|Aggregations:0|SELECT id, unitprice FROM OpportunityLineItem WHERE Id = :tmpVar1
05:03:06.214 (1430402947)|SOQL_EXECUTE_END|[28]|Rows:1
05:03:06.214 (1430431412)|HEAP_ALLOCATE|[28]|Bytes:8
05:03:06.214 (1430456145)|HEAP_ALLOCATE|[28]|Bytes:78
05:03:06.214 (1430489098)|HEAP_ALLOCATE|[28]|Bytes:8
05:03:06.214 (1430544944)|HEAP_ALLOCATE|[28]|Bytes:12
05:03:06.214 (1430587216)|VARIABLE_ASSIGNMENT|[28]|oli2|{"s":1,"v":{"Id":"00k2800000841JtAAI","UnitPrice":2.00}}|0xc362f75
05:03:06.214 (1430593079)|STATEMENT_EXECUTE|[30]
05:03:06.214 (1431045508)|EXCEPTION_THROWN|[30]|System.AssertException: Assertion Failed: Expected: 0.80, Actual: 2.00
05:03:06.214 (1431242264)|HEAP_ALLOCATE|[30]|Bytes:50
05:03:06.214 (1431390494)|FATAL_ERROR|System.AssertException: Assertion Failed: Expected: 0.80, Actual: 2.00



2. When process builder updated the OLI record - 
05:15:28.20 (1723736981)|SOQL_EXECUTE_BEGIN|[27]|Aggregations:0|SELECT id, unitprice FROM OpportunityLineItem WHERE Id = :tmpVar1
05:15:28.20 (1726024469)|SOQL_EXECUTE_END|[27]|Rows:1
05:15:28.20 (1726049180)|HEAP_ALLOCATE|[27]|Bytes:8
05:15:28.20 (1726065403)|HEAP_ALLOCATE|[27]|Bytes:78
05:15:28.20 (1726127621)|HEAP_ALLOCATE|[27]|Bytes:8
05:15:28.20 (1726139079)|HEAP_ALLOCATE|[27]|Bytes:45
05:15:28.20 (1726208221)|HEAP_ALLOCATE|[27]|Bytes:12
05:15:28.20 (1726263859)|VARIABLE_ASSIGNMENT|[27]|oli1|{"s":1,"v":{"Id":"00k2800000841KRAAY","UnitPrice":0.80}}|0x3ac836b7
05:15:28.20 (1726268506)|STATEMENT_EXECUTE|[28]
05:15:28.20 (1726283709)|HEAP_ALLOCATE|[28]|Bytes:4
05:15:28.20 (1726478586)|SOQL_EXECUTE_BEGIN|[28]|Aggregations:0|SELECT id, unitprice FROM OpportunityLineItem WHERE Id = :tmpVar1
05:15:28.20 (1728209872)|SOQL_EXECUTE_END|[28]|Rows:1
05:15:28.20 (1728232795)|HEAP_ALLOCATE|[28]|Bytes:8
05:15:28.20 (1728243642)|HEAP_ALLOCATE|[28]|Bytes:78
05:15:28.20 (1728258269)|HEAP_ALLOCATE|[28]|Bytes:8
05:15:28.20 (1728292073)|HEAP_ALLOCATE|[28]|Bytes:12
05:15:28.20 (1728325130)|VARIABLE_ASSIGNMENT|[28]|oli2|{"s":1,"v":{"Id":"00k2800000841KSAAY","UnitPrice":0.80}}|0x414c31a1
05:15:28.20 (1728329518)|STATEMENT_EXECUTE|[30]
05:15:28.20 (1728489811)|STATEMENT_EXECUTE|[31]
05:15:28.20 (1728587593)|EXCEPTION_THROWN|[31]|System.AssertException: Assertion Failed: Same value: 0.80
05:15:28.20 (1728739045)|HEAP_ALLOCATE|[31]|Bytes:38
05:15:28.20 (1728861562)|FATAL_ERROR|System.AssertException: Assertion Failed: Same value: 0.80

Surprisingly, it is expecting to be different value and at the same time does not allow same values as expected. In second scenario above the unit price changed from 2.0 to 0.8 as expected but still raised assertion. Is there any issue with test code?

Hi,

I have Salesforce.com certification (Dev-401)  and I am looking for part time projects. Please email me in private if you need more information.

 

Thank you.

 

tarakkumar@yahoo.com


I am still getting the same error - 
When I looked at the log, it is failing on assertion as below - User-added image
1. When process builder did not update the OLI record - 
05:03:06.214 (1422560750)|SOQL_EXECUTE_BEGIN|[27]|Aggregations:0|SELECT id, unitprice FROM OpportunityLineItem WHERE Id = :tmpVar1
05:03:06.214 (1427061323)|SOQL_EXECUTE_END|[27]|Rows:1
05:03:06.214 (1427094355)|HEAP_ALLOCATE|[27]|Bytes:8
05:03:06.214 (1427118604)|HEAP_ALLOCATE|[27]|Bytes:78
05:03:06.214 (1427189495)|HEAP_ALLOCATE|[27]|Bytes:8
05:03:06.214 (1427212773)|HEAP_ALLOCATE|[27]|Bytes:45
05:03:06.214 (1427310436)|HEAP_ALLOCATE|[27]|Bytes:12
05:03:06.214 (1427374222)|VARIABLE_ASSIGNMENT|[27]|oli1|{"s":1,"v":{"Id":"00k2800000841JsAAI","UnitPrice":2.00}}|0x585f6400
05:03:06.214 (1427382881)|STATEMENT_EXECUTE|[28]
05:03:06.214 (1427394432)|HEAP_ALLOCATE|[28]|Bytes:4
05:03:06.214 (1427731260)|SOQL_EXECUTE_BEGIN|[28]|Aggregations:0|SELECT id, unitprice FROM OpportunityLineItem WHERE Id = :tmpVar1
05:03:06.214 (1430402947)|SOQL_EXECUTE_END|[28]|Rows:1
05:03:06.214 (1430431412)|HEAP_ALLOCATE|[28]|Bytes:8
05:03:06.214 (1430456145)|HEAP_ALLOCATE|[28]|Bytes:78
05:03:06.214 (1430489098)|HEAP_ALLOCATE|[28]|Bytes:8
05:03:06.214 (1430544944)|HEAP_ALLOCATE|[28]|Bytes:12
05:03:06.214 (1430587216)|VARIABLE_ASSIGNMENT|[28]|oli2|{"s":1,"v":{"Id":"00k2800000841JtAAI","UnitPrice":2.00}}|0xc362f75
05:03:06.214 (1430593079)|STATEMENT_EXECUTE|[30]
05:03:06.214 (1431045508)|EXCEPTION_THROWN|[30]|System.AssertException: Assertion Failed: Expected: 0.80, Actual: 2.00
05:03:06.214 (1431242264)|HEAP_ALLOCATE|[30]|Bytes:50
05:03:06.214 (1431390494)|FATAL_ERROR|System.AssertException: Assertion Failed: Expected: 0.80, Actual: 2.00



2. When process builder updated the OLI record - 
05:15:28.20 (1723736981)|SOQL_EXECUTE_BEGIN|[27]|Aggregations:0|SELECT id, unitprice FROM OpportunityLineItem WHERE Id = :tmpVar1
05:15:28.20 (1726024469)|SOQL_EXECUTE_END|[27]|Rows:1
05:15:28.20 (1726049180)|HEAP_ALLOCATE|[27]|Bytes:8
05:15:28.20 (1726065403)|HEAP_ALLOCATE|[27]|Bytes:78
05:15:28.20 (1726127621)|HEAP_ALLOCATE|[27]|Bytes:8
05:15:28.20 (1726139079)|HEAP_ALLOCATE|[27]|Bytes:45
05:15:28.20 (1726208221)|HEAP_ALLOCATE|[27]|Bytes:12
05:15:28.20 (1726263859)|VARIABLE_ASSIGNMENT|[27]|oli1|{"s":1,"v":{"Id":"00k2800000841KRAAY","UnitPrice":0.80}}|0x3ac836b7
05:15:28.20 (1726268506)|STATEMENT_EXECUTE|[28]
05:15:28.20 (1726283709)|HEAP_ALLOCATE|[28]|Bytes:4
05:15:28.20 (1726478586)|SOQL_EXECUTE_BEGIN|[28]|Aggregations:0|SELECT id, unitprice FROM OpportunityLineItem WHERE Id = :tmpVar1
05:15:28.20 (1728209872)|SOQL_EXECUTE_END|[28]|Rows:1
05:15:28.20 (1728232795)|HEAP_ALLOCATE|[28]|Bytes:8
05:15:28.20 (1728243642)|HEAP_ALLOCATE|[28]|Bytes:78
05:15:28.20 (1728258269)|HEAP_ALLOCATE|[28]|Bytes:8
05:15:28.20 (1728292073)|HEAP_ALLOCATE|[28]|Bytes:12
05:15:28.20 (1728325130)|VARIABLE_ASSIGNMENT|[28]|oli2|{"s":1,"v":{"Id":"00k2800000841KSAAY","UnitPrice":0.80}}|0x414c31a1
05:15:28.20 (1728329518)|STATEMENT_EXECUTE|[30]
05:15:28.20 (1728489811)|STATEMENT_EXECUTE|[31]
05:15:28.20 (1728587593)|EXCEPTION_THROWN|[31]|System.AssertException: Assertion Failed: Same value: 0.80
05:15:28.20 (1728739045)|HEAP_ALLOCATE|[31]|Bytes:38
05:15:28.20 (1728861562)|FATAL_ERROR|System.AssertException: Assertion Failed: Same value: 0.80

Surprisingly, it is expecting to be different value and at the same time does not allow same values as expected. In second scenario above the unit price changed from 2.0 to 0.8 as expected but still raised assertion. Is there any issue with test code?
Hi All, 
I am trying to connect to external webservice. I am using Jeff Dougloas blog as referencehttp://blog.jeffdouglas.com/2009/03/16/restful-web-service-callout-using-post/

I created a new remote site.
Below is the class:
public class WebServiceCallout {

    //@future (callout=true)
    public static void sendNotification(String territories, String searchText) {

        HttpRequest req = new HttpRequest();
        HttpResponse res = new HttpResponse();
        Http http = new Http();

        req.setEndpoint('https://pelcosales.schneider-electric.com/Administration/SalesForceServices');
        req.setMethod('POST');
        req.setBody('territories='+EncodingUtil.urlEncode(territories, 'UTF-8')+'&searchText='+EncodingUtil.urlEncode(searchText, 'UTF-8'));
        //req.setCompressed(true); // otherwise we hit a limit of 32000

        try {
            res = http.send(req);
            System.debug(res.toString());
        } catch(System.CalloutException e) {
            System.debug('Callout error: '+ e);
            System.debug(res.toString());
        }

    }

    // run WebServiceCallout.testMe(); from Execute Anonymous to test
    /*public static testMethod void testMe() {
        WebServiceCallout.sendNotification('My Test Customer','My City');
    }*/

}

I am executing it by running following code in Execute Anonymous Window
WebServiceCallout.sendNotification('17','360 Advanced Security Corporation');
I am getting error message :
15:36:13:427 USER_DEBUG [17]|DEBUG|System.HttpResponse[Status=Not Found, StatusCode=404]

I would appreciate any help.
 

I am one of volunteer at Non-Profit Organization, we are looking for a freelance developer to clean up and develop a nice to have functionality in our existing apps.

 

 

As an example :

1. Review the apex code and make it efficient, Trap the error(s).
2. Create a custom button to share the record between the user/groups.
3. Populate the PDF template with data using XFDF.

4. If you are .NET / vba expert then it will be nice to syncronized the attachment with files stored in the network folder from Excel worksheet.

 

Since these tasks has no deadlines, you can work at your convienent time at a fixed price. Individual only. NO FIRMS. ( Our budget doesn't permit).

 

Please post your personal email address too for further discussion. 

 

  • June 26, 2013
  • Like
  • 0

We're using OpenAM as our IDP, have SSO and OpenAM turned on for Salesforce.  All is working well until we get to the mobile application.  I go into settings, set the mobile app for custom host, input our "My domain" url as the hostname and click the "log off now" slider button.  When I go into the app, I get the OpenAM login screen (so far, so good), input the username and password into OpenAM and get redirected to a full web page in my sandbox with the message

 

Unable to Access Page
Required parameter "oauth_consumer_key" not defined.

Error: The value of the parameter specified above contains a character that is not allowed or the value exceeds the maximum allowed length. Remove the character from the parameter value or reduce the value length and re-submit. If the error still persists, please report it to our Customer Support team and provide the URL of the page you were requesting as well as any other related information.

 

I AM signed onto my sandbox however.  I can click around and see the regular web pages.

 

If I close the app and open it again, I get the OAuth approve/deny screen and then get the regular mobile app screens.

 

I've checked OpenAM and it not sending a parm called oauth_consumer_key.

 

Has anybody run into this before, and does anyone have any suggested solutions?

 

Thanks!

 

Rose