• Keenan Wojnicz
  • NEWBIE
  • 30 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 6
    Replies
When the outbound message from salesforce is initiated the following error is thrown from Salesforce end.

Delivery Failure Reason: (404)Not Found

In addition in our server log the following error is thrown.
  [nio-8080-exec-9] o.s.ws.server.EndpointNotFound           : No endpoint mapping found for [SaajSoapMessage {http://soap.sforce.com/2005/09/outbound}notifications]

For some background:
We have three endpoints defined in our application, namely for Account, Contact, and Opportunity entities of Salesforce. All three of our servers are having the same namespace and the same notification data type. In order to differentiate the messages we have different tags for <soap:operation soapAction=""/> for each web service in the wsdl.

Our services works fine when tested with a SOAP testing tool, eg: SOAP UI. We have tested for all three entities successfully. The error is only when it is initiated from Salesforce via outbound messages which are fired from a workflow rule.
 
When the outbound message from salesforce is initiated the following error is thrown from Salesforce end.

Delivery Failure Reason: (404)Not Found

In addition in our server log the following error is thrown.
  [nio-8080-exec-9] o.s.ws.server.EndpointNotFound           : No endpoint mapping found for [SaajSoapMessage {http://soap.sforce.com/2005/09/outbound}notifications]

For some background:
We have three endpoints defined in our application, namely for Account, Contact, and Opportunity entities of Salesforce. All three of our servers are having the same namespace and the same notification data type. In order to differentiate the messages we have different tags for <soap:operation soapAction=""/> for each web service in the wsdl.

Our services works fine when tested with a SOAP testing tool, eg: SOAP UI. We have tested for all three entities successfully. The error is only when it is initiated from Salesforce via outbound messages which are fired from a workflow rule.

Why does this error occur when fired directly from Salesforce but not from SOAP UI? And what is causing this error?
I have a class in production with 51% code coverage, so in the sandbox I rewrote the test class to improve the coverage to 96%. 
When I try to deploy that updated test class to production i get the following error and I am in great need of some help.

TestZebraScoreController.testClass(), Details: System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Duplicate name found: [] Class.TestZebraScoreController.testClass: line 64, column 1

Here is my test class that I am deploying.
public class TestZebraScoreController {
  @isTest
  private static void testClass(){
    Account acc = new Account(Name='test');
    insert acc;
    List<Zebra_Label_and_Tooltip__c > listZLT = new List<Zebra_Label_and_Tooltip__c>();
    Zebra_Label_and_Tooltip__c zlat1 = new Zebra_Label_and_Tooltip__c();
    zlat1.Name = 'Access to Power';
    zlat1.Label_on_score_0__c = 'test';
    zlat1.Label_on_score_4__c = 'test';
    zlat1.Tooltip_on_score_0__c = 'test';
    zlat1.Tooltip_on_score_4__c = 'test';
    listZLT.add(zlat1);
    
    Zebra_Label_and_Tooltip__c zlat2 = new Zebra_Label_and_Tooltip__c();
    zlat2.Name = 'Company Profile';
    zlat2.Label_on_score_0__c = 'test';
    zlat2.Label_on_score_4__c = 'test';
    zlat2.Tooltip_on_score_0__c = 'test';
    zlat2.Tooltip_on_score_4__c = 'test';
    listZLT.add(zlat2);
    
    Zebra_Label_and_Tooltip__c zlat3 = new Zebra_Label_and_Tooltip__c();
    zlat3.Name = 'Funding';
    zlat3.Label_on_score_0__c = 'test';
    zlat3.Label_on_score_4__c = 'test';
    zlat3.Tooltip_on_score_0__c = 'test';
    zlat3.Tooltip_on_score_4__c = 'test';
    listZLT.add(zlat3);
    
    Zebra_Label_and_Tooltip__c zlat4 = new Zebra_Label_and_Tooltip__c();
    zlat4.Name = 'Operations';
    zlat4.Label_on_score_0__c = 'test';
    zlat4.Label_on_score_4__c = 'test';
    zlat4.Tooltip_on_score_0__c = 'test';
    zlat4.Tooltip_on_score_4__c = 'test';
    listZLT.add(zlat4);
    
    Zebra_Label_and_Tooltip__c zlat5 = new Zebra_Label_and_Tooltip__c();
    zlat5.Name = 'ROI';
    zlat5.Label_on_score_0__c = 'test';
    zlat5.Label_on_score_4__c = 'test';
    zlat5.Tooltip_on_score_0__c = 'test';
    zlat5.Tooltip_on_score_4__c = 'test';
    listZLT.add(zlat5);
    
    Zebra_Label_and_Tooltip__c zlat6 = new Zebra_Label_and_Tooltip__c();
    zlat6.Name = 'Service';
    zlat6.Label_on_score_0__c = 'test';
    zlat6.Label_on_score_4__c = 'test';
    zlat6.Tooltip_on_score_0__c = 'test';
    zlat6.Tooltip_on_score_4__c = 'test';
    listZLT.add(zlat6);
    
    Zebra_Label_and_Tooltip__c zlat7 = new Zebra_Label_and_Tooltip__c();
    zlat7.Name = 'Technology';
    zlat7.Label_on_score_0__c = 'test';
    zlat7.Label_on_score_4__c = 'test';
    zlat7.Tooltip_on_score_0__c = 'test';
    zlat7.Tooltip_on_score_4__c = 'test';
    listZLT.add(zlat7);
    
    
    insert listZLT;
    
    Opportunity opp = new Opportunity(Name='testopp', AccountId = acc.Id, StageName = 'IOA Completed', CloseDate = Date.today());
    insert opp;
    ApexPages.currentPage().getParameters().put('opportunityId', opp.Id);
    ZebraScoreController zsc = new ZebraScoreController();
    zsc.Save();
    zsc.Cancel();
  }
}

 
Hello,

I have a custom field called "Total MRR".
The field is an automaticall calculated Roll-Up Summary type field that summarizes Opportunity Product.
When you enter a product in my Salesforce instance you are prompted to enter a term (months) for the product.
I have a workflow rule that triggers a field update when "Product: Product FamilyEQUALSSubscriptions Cloud,Subscriptions On Premises".
The field update updates an opportunity product field called "MRR" with the following formula: (UnitPrice / Terms_Months__c) * Quantity

Now the question: 
If I have a product with a term of 36 months, and a product with a term of 1 month, the "Total MRR" field on the opportunity page is not updating properly. 
I believe it is because Salesforce is creating a common denominator for the two different terms. Can anyone help me with this problem? 
Hi,

I'm trying to deploy a new visualforce page but I keep getting this error, I don't understand why it's happening.
I am in dire need of some assistance!

The error says: 
Apex script unhandled exception by user/organization: 00537000000iFK0/00D210000000MSY
Source organization: 00D37000000Pn3O (null)
Visualforce Page: /apex/BusinessIssue
caused by: System.NullPointerException: Attempt to de-reference a null object
Class.BusinessIssueController.<init>: line 20, column 1
 
<apex:page standardController="CriticalBusinessIssue__c" extensions="BusinessIssueController" tabStyle="CriticalBusinessIssue__c">
<style>
    .startStyle{
        font-size:12px;
        font-weight:bold;
        color:red;
    }
</style>

    <apex:sectionHeader title="Business Issue" subtitle="Critical Business Issue" />
    <apex:form id="frm">
        <apex:actionFunction name="addIssue" action="{!AddIssue}" status="addBI" reRender="frm" />
        <apex:pageMessages escape="false" />
        <apex:pageBlock >
            <apex:pageBlockButtons >
                <apex:commandButton value="Save Business Issues" action="{!Save}"/>
            </apex:pageBlockButtons>
            <apex:pageBlockSection title="New Critical Business Issue" columns="1">
                <apex:actionStatus id="addBI" startText="Adding..." startStyleClass="startStyle"/>
                <apex:pageBlockTable value="{!BusinessIssueModels}" var="bim">
                    <apex:column headerValue="Sr. No." value="{!bim.srNo}" />
                    <apex:column headerValue="Critical Business Issue">
                        <apex:inputField value="{!bim.businessIssue.Body__c}" style="width:500px;"/>
                    </apex:column>
                 </apex:pageBlockTable>
            </apex:pageBlockSection>
            <apex:commandButton value="Add More Business Issues" onclick="addIssue(); return false;" />
       </apex:pageBlock>
       <center></center>  
    </apex:form>
</apex:page>

 
When the outbound message from salesforce is initiated the following error is thrown from Salesforce end.

Delivery Failure Reason: (404)Not Found

In addition in our server log the following error is thrown.
  [nio-8080-exec-9] o.s.ws.server.EndpointNotFound           : No endpoint mapping found for [SaajSoapMessage {http://soap.sforce.com/2005/09/outbound}notifications]

For some background:
We have three endpoints defined in our application, namely for Account, Contact, and Opportunity entities of Salesforce. All three of our servers are having the same namespace and the same notification data type. In order to differentiate the messages we have different tags for <soap:operation soapAction=""/> for each web service in the wsdl.

Our services works fine when tested with a SOAP testing tool, eg: SOAP UI. We have tested for all three entities successfully. The error is only when it is initiated from Salesforce via outbound messages which are fired from a workflow rule.
 
When the outbound message from salesforce is initiated the following error is thrown from Salesforce end.

Delivery Failure Reason: (404)Not Found

In addition in our server log the following error is thrown.
  [nio-8080-exec-9] o.s.ws.server.EndpointNotFound           : No endpoint mapping found for [SaajSoapMessage {http://soap.sforce.com/2005/09/outbound}notifications]

For some background:
We have three endpoints defined in our application, namely for Account, Contact, and Opportunity entities of Salesforce. All three of our servers are having the same namespace and the same notification data type. In order to differentiate the messages we have different tags for <soap:operation soapAction=""/> for each web service in the wsdl.

Our services works fine when tested with a SOAP testing tool, eg: SOAP UI. We have tested for all three entities successfully. The error is only when it is initiated from Salesforce via outbound messages which are fired from a workflow rule.

Why does this error occur when fired directly from Salesforce but not from SOAP UI? And what is causing this error?
Hi,

I'm trying to deploy a new visualforce page but I keep getting this error, I don't understand why it's happening.
I am in dire need of some assistance!

The error says: 
Apex script unhandled exception by user/organization: 00537000000iFK0/00D210000000MSY
Source organization: 00D37000000Pn3O (null)
Visualforce Page: /apex/BusinessIssue
caused by: System.NullPointerException: Attempt to de-reference a null object
Class.BusinessIssueController.<init>: line 20, column 1
 
<apex:page standardController="CriticalBusinessIssue__c" extensions="BusinessIssueController" tabStyle="CriticalBusinessIssue__c">
<style>
    .startStyle{
        font-size:12px;
        font-weight:bold;
        color:red;
    }
</style>

    <apex:sectionHeader title="Business Issue" subtitle="Critical Business Issue" />
    <apex:form id="frm">
        <apex:actionFunction name="addIssue" action="{!AddIssue}" status="addBI" reRender="frm" />
        <apex:pageMessages escape="false" />
        <apex:pageBlock >
            <apex:pageBlockButtons >
                <apex:commandButton value="Save Business Issues" action="{!Save}"/>
            </apex:pageBlockButtons>
            <apex:pageBlockSection title="New Critical Business Issue" columns="1">
                <apex:actionStatus id="addBI" startText="Adding..." startStyleClass="startStyle"/>
                <apex:pageBlockTable value="{!BusinessIssueModels}" var="bim">
                    <apex:column headerValue="Sr. No." value="{!bim.srNo}" />
                    <apex:column headerValue="Critical Business Issue">
                        <apex:inputField value="{!bim.businessIssue.Body__c}" style="width:500px;"/>
                    </apex:column>
                 </apex:pageBlockTable>
            </apex:pageBlockSection>
            <apex:commandButton value="Add More Business Issues" onclick="addIssue(); return false;" />
       </apex:pageBlock>
       <center></center>  
    </apex:form>
</apex:page>