• indranily81
  • NEWBIE
  • 100 Points
  • Member since 2009

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

HI,

I have a VFpage which uses VF remoting. The use case is I have an account say ABC Corp & Co.
Now if I fire a dynamic SOQL (i.e. Select AccountNAme from Account where id = <ABC Corp's SFDC ID>) then the returing JSON shows
amp along with the '&';

i.e. the returned JSON is ABC Corp &amp; Co.
The name should have been ABC Corp & Co.

Has anyone faced similar issue ?

Thanks
Indranil

I am new to the appexchange domain and my intention is to build a new app for force.com platform . This will be just for testing and not for any commercial use. I went through some of the basic documents and it was suggested that a partner developer edition is good in order to start the development. Hence I have registered in partner portal. Once registered I get ann option to create new test org. Will I need to pay to salesforce in order to use the partner portal or the test org ? Since my intention is not to sell the product and just try to build one and see how the process actually works I only need the FREE services as of now. 

 

Any information is highly appreciated.

 

 

Thnaks

Indranil

Hello,

 

I am facing below error while performing a VF actionsupport . There is a pageblocktable in the VF page having a checkbox in each row. the actionsupport is supposed to invoke a function whenever the user clciks on any checkbox. Currently when the user is clciking on any checkbox below error is coming up. 

 

common.apex.runtime.impl.ExecutionException: Invalid conversion from runtime type String to LIST<String>

 

Snce this is occuring in our customer's code i have replicated a simple scenarion in my developer sandbox but there the

actionsupport is working fine. eack checkbox is able to fire the function associated with the action attribute.

 

Has anybody faced issues like this before ? It seems to me that the error is occuring due to some runtime error. i have tried to catch the error in try catch block but this error is not even getting caught in catch block. i am only able to get this through

<apex;pagemessages> on the VF page.

 

 

Any thought would be of great help.

 

 

Thanks

Indranil


 
 

 

Hello ,

 

I a facing a strange issue while comparing two strings.

 

Scenario :

I have a custom link on account which is of type URl. the code for which is mentioned below

 

/apex/StringComparison?Id={!Account.Id}&start='account'

 

StringComparison.page code :

 

<apex:page standardController="Account" extensions="StringComparisonErrorV24">

</apex:page>

 


StringComparisonErrorV24 code :

 

public class StringComparisonErrorV24 {

    public StringComparisonErrorV24(ApexPages.StandardController controller) {
   
       System.debug('### StringComparisonErrorV24 constructor execution started...');
       String rID = ApexPages.currentPage().getParameters().get('id');         
       String startedFrom = ApexPages.currentPage().getParameters().get('start');
      
       System.debug('### rID  --> '+rID);
       System.debug('### startedFrom --> '+startedFrom);

       if(startedFrom.equals('account')) {
            System.debug('### they are same');
        }
       System.debug('### StringComparisonErrorV24 constructor execution finished...');    
         
    }

   }

 

Issue :

 

When i am clicking on the custom link the line if(startedFrom.equals('account')) is returning false .

I was thinking of it should be returning true since I have hardcoded the same URL parameter. As a result i never

got '### they are same' line printed. 

 

the debug log says the URL parameter is 'account'.

 

04:33:36.019 (19155000)|USER_DEBUG|[9]|DEBUG|### rID  --> 00190000002g6xp
04:33:36.019 (19161000)|SYSTEM_METHOD_EXIT|[9]|System.debug(ANY)
04:33:36.019 (19174000)|SYSTEM_METHOD_ENTRY|[10]|System.debug(ANY)
04:33:36.019 (19184000)|USER_DEBUG|[10]|DEBUG|### startedFrom --> 'account'

 

 

Any thought would be of great help.

 

Thanks

Indranil

 

 

 


Hi ,

I am facing a weird issue while preparing test data. Below are the steps mentioned what I did.

 

The test data is prepared in the below order.

1. created test users first and inserted into Salesforce.
2. created test group and inserted into salesforce.
3. created group members and inserted into salesforce.
4. created account and inserted into salesforce.
5. created opportunity and inserted into salesforce.


what I am facing is some of my test data is not being created. In this case below assertions failed due to zero rows came
out.

 

System.assertEquals(1, [Select count() from Account where LastName =: 'Test ACC99$$']);
System.assertEquals(1, [Select count() from Opportunity where Name ='TEST OPP99$$']);

 

The moment I break step 3 into two parts and just create the group members in step 3 and insert them after step 5 then the above assertion is working correctly. I am not able to understand how groupMember insertion order is impacting test account and opportunity record creation.

 

Has anyone in the forum faced similar issue ?

 

Thanks
Indranil

Hi,

 

Recently I was trying to query AccountShare record through test class for one of my projects. The data is prepared in test class itself but the query could not fetch any record when fired from the particular user context. I am always getting 0 rows within the System.runAs context.

 

Once I downgraded both the test class and target class to v23 it worked.

Are the sharing tables for the standard objects not exposed in v24, if queried from specific user context ?

 

 

Thanks

Indranil

 

 

 

 

Hi, I have 1.5 million Account record to be pumped into SFDC. For this I am using BULK API option. BUt everytime I am executing the script although the loading is working properly there is no success and error file is being increased. Its being generated with the column headers and nothing is being written. But if i use sfdc.usebulkAPI = false in process-conf.xml everything is working fine.

 

PFA the process-conf.xml code below. Everything works perfectly if I remove the BULK option. I checked with a input csv file having 10 records with BULK API true, it worked successfully. But in  case of data base its not generating the success and error files.

 

Any Idea ??

 

 

<!-- This bean upserts data from End Customer Account staging table to SFDC Account object.-->

<bean id="upsertEndCustAcct" class="com.salesforce.dataloader.process.ProcessRunner" singleton="false" lazy-init="default" autowire="default" dependency-check="default">

   <description>Upsert End Customer Account</description> 

   <property name="name" value="upsertEndCustAcct" /> 

   <property name="configOverrideMap">

   <map>

   <entry key="sfdc.debugMessages" value="false" /> 

   <entry key="sfdc.debugMessagesFile" value="D:\allAttachment\ACCOUNT_UPSERT\logs\debug.txt" /> 

<entry key="sfdc.endpoint" value="https://test.salesforce.com"/>

       <entry key="sfdc.timeoutSecs" value="600" /> 

   <entry key="sfdc.loadBatchSize" value="5000" /> 

   <entry key="sfdc.entity" value="Account" /> 

<entry key="process.operation" value="upsert" /> 

<entry key="process.mappingFile" value="D:\allAttachment\ACCOUNT_UPSERT\mapping\end_cust_acct_mapping.sdl" /> 

<entry key="sfdc.externalIdField" value="Account_CSN__c"/>

<entry key="dataAccess.writeBatchSize" value="500" />

        <entry key="sfdc.bulkApiCheckStatusInterval" value="5000"/>

<entry key="sfdc.useBulkApi" value="true"/> 

<entry key="sfdc.bulkApiSerialMode" value="true"/>

<entry key="dataAccess.type" value="databaseRead" />

<entry key="dataAccess.name" value="upsertEndCustAcct" />  

   <entry key="process.initialLastRunDate" value="2005-12-01T00:00:00.000-0800" />

<entry key="process.enableExtractStatusOutput" value="True" />  

   <entry key="process.lastRunOutputDirectory" value="D:\allAttachment\ACCOUNT_UPSERT\logs"/>

   <entry key="process.statusOutputDirectory" value="D:\allAttachment\ACCOUNT_UPSERT\logs"/>

   <entry key="process.outputSuccess" value="D:\allAttachment\ACCOUNT_UPSERT\logs\end_cust_account_success.csv"/> 

   <entry key="process.outputError" value="D:\allAttachment\ACCOUNT_UPSERT\logs\end_cust_account_error.csv"/> 

   </map>

   </property>

</bean>

 

 

 

<!-- This bean upserts data from End Customer Account staging table to SFDC Account object.-->
<bean id="upsertEndCustAcct" class="com.salesforce.dataloader.process.ProcessRunner" singleton="false" lazy-init="default" autowire="default" dependency-check="default">
   <description>Upsert End Customer Account</description> 
   <property name="name" value="upsertEndCustAcct" /> 
   <property name="configOverrideMap">
   <map>
   <entry key="sfdc.debugMessages" value="false" /> 
   <entry key="sfdc.debugMessagesFile" value="D:\allAttachment\ACCOUNT_UPSERT\logs\debug.txt" /> 
<entry key="sfdc.endpoint" value="https://test.salesforce.com"/>
       <entry key="sfdc.timeoutSecs" value="600" /> 
   <entry key="sfdc.loadBatchSize" value="5000" /> 
   <entry key="sfdc.entity" value="Account" /> 
<entry key="process.operation" value="upsert" /> 
<entry key="process.mappingFile" value="D:\allAttachment\ACCOUNT_UPSERT\mapping\end_cust_acct_mapping.sdl" /> 
<entry key="sfdc.externalIdField" value="Account_CSN__c"/>
<entry key="dataAccess.writeBatchSize" value="500" />
        <entry key="sfdc.bulkApiCheckStatusInterval" value="5000"/>
<entry key="sfdc.useBulkApi" value="true"/> 
<entry key="sfdc.bulkApiSerialMode" value="true"/>
<entry key="dataAccess.type" value="databaseRead" />
<entry key="dataAccess.name" value="upsertEndCustAcct" />  
   <entry key="process.initialLastRunDate" value="2005-12-01T00:00:00.000-0800" />
<entry key="process.enableExtractStatusOutput" value="True" />  
   <entry key="process.lastRunOutputDirectory" value="D:\allAttachment\ACCOUNT_UPSERT\logs"/>
   <entry key="process.statusOutputDirectory" value="D:\allAttachment\ACCOUNT_UPSERT\logs"/>
   <entry key="process.outputSuccess" value="D:\allAttachment\ACCOUNT_UPSERT\logs\end_cust_account_success.csv"/> 
   <entry key="process.outputError" value="D:\allAttachment\ACCOUNT_UPSERT\logs\end_cust_account_error.csv"/> 
   </map>
   </property>
</bean>

 

 

Regards

Indranil

 

 

 

 

Hi,

 

I have a few doubts regarding External ID feature in SFDC. Would be nice if some one clears my understanding.

 

Scenario :

1. standard object Account having a lookup parent account.

2. Account object has an external Id field Account_Extn

3. Now if I need to migrate account hierarchy for say 500 records  then how can it be done using the external ID feature . What i mean is can I map external ID to the parent account lookup field and the results will be automatically pulled up and can be seen in account view hierarchy .

 

What I know is I need to pass the account ID in the parent account look up. But at the time of data migration if I map that to correct external field will that work ?

 

Thanks

indranily81

Hi,

 

I am facing a problem while importing articles. Every time I am trying to import I am getting the error message as

'CSV file not found'. I have simple CSV structure. Can't find out how to resolve.

 

I need to upload some articles for my current project urgently. Any idea would be of great help.

 

Thanks

Indranil

Hi,

 

I need to put data from Siebel to SFDC through informatica..I guess there is a tool called salesforce integration - data loader. I found it in the below link

 

http://sites.force.com/appexchange/listingDetail?listingId=a0330000005kRLFAA2.

 

But when I am trying to install it in my developer account I am being redirected to this same page. Any idea how to install this tool in dev org ?

 

I need this urgently.

 

Any idea would be of great help.

 

Regards

indranily81


 

Hi,

 

I have a simple WSDL file which I need to parse in SFDC. When I am trying to do a 'generate from wsdl' I am getting below error.

 

Error: Failed to parse wsdl: Found more than one wsdl:binding. WSDL with multiple binding not supported

 

WSDL:-

 

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://ws.apache.org/axis2" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://ws.apache.org/axis2">
    <wsdl:documentation>
        Please Type your service description here
    </wsdl:documentation>
    <wsdl:types>
        <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://ws.apache.org/axis2">
            <xs:element name="summation">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="a" type="xs:int"/>
                        <xs:element minOccurs="0" name="b" type="xs:int"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="summationResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="return" type="xs:int"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:schema>
    </wsdl:types>
    <wsdl:message name="summationRequest">
        <wsdl:part name="parameters" element="ns:summation"/>
    </wsdl:message>
    <wsdl:message name="summationResponse">
        <wsdl:part name="parameters" element="ns:summationResponse"/>
    </wsdl:message>
    <wsdl:portType name="FirePortType">
        <wsdl:operation name="summation">
            <wsdl:input message="ns:summationRequest" wsaw:Action="urn:summation"/>
            <wsdl:output message="ns:summationResponse" wsaw:Action="urn:summationResponse"/>
        </wsdl:operation>
    </wsdl:portType>
 
    <wsdl:binding name="FireSoap12Binding" type="ns:FirePortType">
        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
        <wsdl:operation name="summation">
            <soap12:operation soapAction="urn:summation" style="document"/>
            <wsdl:input>
                <soap12:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="FireHttpBinding" type="ns:FirePortType">
        <http:binding verb="POST"/>
        <wsdl:operation name="summation">
            <http:operation location="Fire/summation"/>
            <wsdl:input>
                <mime:content type="text/xml" part="summation"/>
            </wsdl:input>
            <wsdl:output>
                <mime:content type="text/xml" part="summation"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="Fire">
        <wsdl:port name="FireHttpSoap11Endpoint" binding="ns:FireSoap11Binding">
            <soap:address location="http://10.227.75.47:8080/Webservice_provider/services/Fire.FireHttpSoap11Endpoint/"/>
        </wsdl:port>
        <wsdl:port name="FireHttpSoap12Endpoint" binding="ns:FireSoap12Binding">
            <soap12:address location="http://10.227.75.47:8080/Webservice_provider/services/Fire.FireHttpSoap12Endpoint/"/>
        </wsdl:port>
        <wsdl:port name="FireHttpEndpoint" binding="ns:FireHttpBinding">
            <http:address location="http://10.227.75.47:8080/Webservice_provider/services/Fire.FireHttpEndpoint/"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

 

 

I tried to remove the second binding tag as found in the error but still the error persists. Any idea would be of

great help

 

 

Thanks

indranily81

 

Hi,

 

I Need some help regarding Apex Scheduler. As per the official doc

http://developer.force.com/releases/release_feature?key=Code+Scheduler+(Pilot) we need to fire system.schedule('Merge Job', sch, m) in orer to perform the scheduling.

 

I dont understand what is this 'Merge Job' and how it can be defined. Any exmple code piece would be of great help. 

 

Thanks in Advance

Hi,

 

Is there any Timer class in Apex or any mechanism to invoke timer functionality ?

Thanks in advance.

 

Hi everybody,

 

I am not sure if this is the right place to put this question or not.  But as a new developer I need some help.

Is there any mechanism through which I can collect data of a website to salesforce or vice versa. I assume 

probably web service is the answer but I havn't find any example.

 

i have created a java swing app which can collect data from SF but I need some inputs to connect with any real life sites (like amazon/ yahoo if its possible) . I need this urgently.

 

Thanks in advance.

 

 I have set a time bound workflow which will send email exactly after 1 hour of a particular field updation.

 But I am receiving  the mail after 1 hour 10 minuts. I guess workflows can not be trusted for

 time dependent logic.

 

 

Hi,

I have written a before trigger  but I am getting the exception.I have two objects as Opp__c and Budget__c.
There are master details relationships between these two.
 

Exception :

 
deletebudget: execution of BeforeDelete
caused by: System.Exception: SObject row does not allow errors

 

Code :-

trigger deletebudget on Opp__c (before delete) {
   for(Opp__c lopp:Trigger.old){
           
            Opp__c l_opp = [Select o.Budget__c, o.Id from Opp__c o where o.Id = :Trigger.old[0].Id];
            Budget__c l_bud = [Select b.Id, b.Name, b.Total_budget__c from Budget__c b where b.Id = :l_opp.Budget__c];
                    
            if(l_bud.Total_budget__c <= 0 ) {
                if(Trigger.isDelete) {             
                   System.debug('CORRECT FOR LESS THAN 0');
                   l_bud.addError('Got an error from trigger while deleting');
              }
            }
           
             if(l_bud.Total_budget__c > 0 ) {
                if(Trigger.isDelete) {             
                  System.debug('deletion successful');
                  
                }
            }
              
       }

}

hi,

 

I have a worflow rule to be fired if there is no lead record created within every 1 hour.Mail will be sent to

the logged in user if no lead record is inserted in every 1 hour.I am stuck with the idea of trapping an event

when there is no database updation. Any idea will be of great help.

Hi,

 

Is there any restriction for migrating the code from sandbox to production ? What I mean is suppose i have

some triggers, apex scripts , scontrols and VisualForce pages and controllers in my sandbox. What are the 

different options to move all these into production without hassle. I have heard a few cases where Apex code can

be created in sandbox but in production when  tried it gave permission denied though even after logging in as

sysadmin.

 

 

Regards

indranily81

Hi,

 

Is there any other way to send the value of <apex:inputText> field value to the controller or extension other

than setting a private member variable in the controller/extension ? 

 

e.g.

if a VF code is like

<apex:inputText id="find"  value="{!findvalue}"/>

then a corresponding setter method is needed in controller/extension as setFindvalue() and the

member variable is set there.

 

Is there any other route to send this  to the controlle/extension to process ?

 

Thanks

indranily81

Hi ,

 

is there a way to change an SObject type to String ?

Something like below :

 

1. Sobject [] test = [Select email from User Limit 1] ;

2. String getmail = test[0].toString() ;

 

i am having trouble in casting an Sobject to String as mentioned in line 2.

Thanks in advance.

I am new to the appexchange domain and my intention is to build a new app for force.com platform . This will be just for testing and not for any commercial use. I went through some of the basic documents and it was suggested that a partner developer edition is good in order to start the development. Hence I have registered in partner portal. Once registered I get ann option to create new test org. Will I need to pay to salesforce in order to use the partner portal or the test org ? Since my intention is not to sell the product and just try to build one and see how the process actually works I only need the FREE services as of now. 

 

Any information is highly appreciated.

 

 

Thnaks

Indranil

Hello,

 

I am facing below error while performing a VF actionsupport . There is a pageblocktable in the VF page having a checkbox in each row. the actionsupport is supposed to invoke a function whenever the user clciks on any checkbox. Currently when the user is clciking on any checkbox below error is coming up. 

 

common.apex.runtime.impl.ExecutionException: Invalid conversion from runtime type String to LIST<String>

 

Snce this is occuring in our customer's code i have replicated a simple scenarion in my developer sandbox but there the

actionsupport is working fine. eack checkbox is able to fire the function associated with the action attribute.

 

Has anybody faced issues like this before ? It seems to me that the error is occuring due to some runtime error. i have tried to catch the error in try catch block but this error is not even getting caught in catch block. i am only able to get this through

<apex;pagemessages> on the VF page.

 

 

Any thought would be of great help.

 

 

Thanks

Indranil


 
 

 

Hello ,

 

I a facing a strange issue while comparing two strings.

 

Scenario :

I have a custom link on account which is of type URl. the code for which is mentioned below

 

/apex/StringComparison?Id={!Account.Id}&start='account'

 

StringComparison.page code :

 

<apex:page standardController="Account" extensions="StringComparisonErrorV24">

</apex:page>

 


StringComparisonErrorV24 code :

 

public class StringComparisonErrorV24 {

    public StringComparisonErrorV24(ApexPages.StandardController controller) {
   
       System.debug('### StringComparisonErrorV24 constructor execution started...');
       String rID = ApexPages.currentPage().getParameters().get('id');         
       String startedFrom = ApexPages.currentPage().getParameters().get('start');
      
       System.debug('### rID  --> '+rID);
       System.debug('### startedFrom --> '+startedFrom);

       if(startedFrom.equals('account')) {
            System.debug('### they are same');
        }
       System.debug('### StringComparisonErrorV24 constructor execution finished...');    
         
    }

   }

 

Issue :

 

When i am clicking on the custom link the line if(startedFrom.equals('account')) is returning false .

I was thinking of it should be returning true since I have hardcoded the same URL parameter. As a result i never

got '### they are same' line printed. 

 

the debug log says the URL parameter is 'account'.

 

04:33:36.019 (19155000)|USER_DEBUG|[9]|DEBUG|### rID  --> 00190000002g6xp
04:33:36.019 (19161000)|SYSTEM_METHOD_EXIT|[9]|System.debug(ANY)
04:33:36.019 (19174000)|SYSTEM_METHOD_ENTRY|[10]|System.debug(ANY)
04:33:36.019 (19184000)|USER_DEBUG|[10]|DEBUG|### startedFrom --> 'account'

 

 

Any thought would be of great help.

 

Thanks

Indranil

 

 

 

Hi,

 

Recently I was trying to query AccountShare record through test class for one of my projects. The data is prepared in test class itself but the query could not fetch any record when fired from the particular user context. I am always getting 0 rows within the System.runAs context.

 

Once I downgraded both the test class and target class to v23 it worked.

Are the sharing tables for the standard objects not exposed in v24, if queried from specific user context ?

 

 

Thanks

Indranil

 

 

 

 

Hi,

 

I have a simple WSDL file which I need to parse in SFDC. When I am trying to do a 'generate from wsdl' I am getting below error.

 

Error: Failed to parse wsdl: Found more than one wsdl:binding. WSDL with multiple binding not supported

 

WSDL:-

 

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://ws.apache.org/axis2" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://ws.apache.org/axis2">
    <wsdl:documentation>
        Please Type your service description here
    </wsdl:documentation>
    <wsdl:types>
        <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://ws.apache.org/axis2">
            <xs:element name="summation">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="a" type="xs:int"/>
                        <xs:element minOccurs="0" name="b" type="xs:int"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="summationResponse">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" name="return" type="xs:int"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:schema>
    </wsdl:types>
    <wsdl:message name="summationRequest">
        <wsdl:part name="parameters" element="ns:summation"/>
    </wsdl:message>
    <wsdl:message name="summationResponse">
        <wsdl:part name="parameters" element="ns:summationResponse"/>
    </wsdl:message>
    <wsdl:portType name="FirePortType">
        <wsdl:operation name="summation">
            <wsdl:input message="ns:summationRequest" wsaw:Action="urn:summation"/>
            <wsdl:output message="ns:summationResponse" wsaw:Action="urn:summationResponse"/>
        </wsdl:operation>
    </wsdl:portType>
 
    <wsdl:binding name="FireSoap12Binding" type="ns:FirePortType">
        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
        <wsdl:operation name="summation">
            <soap12:operation soapAction="urn:summation" style="document"/>
            <wsdl:input>
                <soap12:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="FireHttpBinding" type="ns:FirePortType">
        <http:binding verb="POST"/>
        <wsdl:operation name="summation">
            <http:operation location="Fire/summation"/>
            <wsdl:input>
                <mime:content type="text/xml" part="summation"/>
            </wsdl:input>
            <wsdl:output>
                <mime:content type="text/xml" part="summation"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="Fire">
        <wsdl:port name="FireHttpSoap11Endpoint" binding="ns:FireSoap11Binding">
            <soap:address location="http://10.227.75.47:8080/Webservice_provider/services/Fire.FireHttpSoap11Endpoint/"/>
        </wsdl:port>
        <wsdl:port name="FireHttpSoap12Endpoint" binding="ns:FireSoap12Binding">
            <soap12:address location="http://10.227.75.47:8080/Webservice_provider/services/Fire.FireHttpSoap12Endpoint/"/>
        </wsdl:port>
        <wsdl:port name="FireHttpEndpoint" binding="ns:FireHttpBinding">
            <http:address location="http://10.227.75.47:8080/Webservice_provider/services/Fire.FireHttpEndpoint/"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

 

 

I tried to remove the second binding tag as found in the error but still the error persists. Any idea would be of

great help

 

 

Thanks

indranily81

 

Hi all,

 

I currently have a custom object that is related to accounts, and we use it for logging information in on the same day every week. Sometimes the information is just the same as the previous week.

 

Does anyone know if there is some apex code I could use that would automatically clone  the previous weeks record on the same day every week? So say on a Monday, all records created in the custom object last week would get cloned?

 

Many thanks for your help,

BPS

What would cause a test class to pass when run on its own in Eclipse, but fail when run as part of Run All Tests in the SF UI.

Here's the test passing in Eclipse:
http://screencast.com/t/NzVhZDgxM

And here's the same test failing as part of Run All Tests:
http://screencast.com/t/ZGQ3NTljM

This is the same class in the same SF instance, run about 5 mins. apart, with no code (or anything else) changed in the interim.

Is there any proper reason this would happen, or is this a bug?

Thanks!
M.

PS I'm also seeing some odd problems with attempting to deploy code today, and am wondering if they might be related, since I'm guessing that a deploy uses a similar testing enviornment to Run All Tests.  Just a guess.
Message Edited by sparky on 11-12-2009 10:52 PM
  • November 10, 2009
  • Like
  • 0

Hi,

 

I have a field 'Zipcode' to be displayed as plain text (outputtext) on a visualforce page.

 

However, whenever user enters many values the zipcode field gets long and it stretches the visualforce page. Can I have some way to wrap up the Zipcode field and display values on different lines?

 

Thanks,

 

Vimal 

Hi,

 

Is there any Timer class in Apex or any mechanism to invoke timer functionality ?

Thanks in advance.

 

Hi,

I have written a before trigger  but I am getting the exception.I have two objects as Opp__c and Budget__c.
There are master details relationships between these two.
 

Exception :

 
deletebudget: execution of BeforeDelete
caused by: System.Exception: SObject row does not allow errors

 

Code :-

trigger deletebudget on Opp__c (before delete) {
   for(Opp__c lopp:Trigger.old){
           
            Opp__c l_opp = [Select o.Budget__c, o.Id from Opp__c o where o.Id = :Trigger.old[0].Id];
            Budget__c l_bud = [Select b.Id, b.Name, b.Total_budget__c from Budget__c b where b.Id = :l_opp.Budget__c];
                    
            if(l_bud.Total_budget__c <= 0 ) {
                if(Trigger.isDelete) {             
                   System.debug('CORRECT FOR LESS THAN 0');
                   l_bud.addError('Got an error from trigger while deleting');
              }
            }
           
             if(l_bud.Total_budget__c > 0 ) {
                if(Trigger.isDelete) {             
                  System.debug('deletion successful');
                  
                }
            }
              
       }

}

hi,

 

I have a worflow rule to be fired if there is no lead record created within every 1 hour.Mail will be sent to

the logged in user if no lead record is inserted in every 1 hour.I am stuck with the idea of trapping an event

when there is no database updation. Any idea will be of great help.

Hi,

 

Is there any restriction for migrating the code from sandbox to production ? What I mean is suppose i have

some triggers, apex scripts , scontrols and VisualForce pages and controllers in my sandbox. What are the 

different options to move all these into production without hassle. I have heard a few cases where Apex code can

be created in sandbox but in production when  tried it gave permission denied though even after logging in as

sysadmin.

 

 

Regards

indranily81

Hi,

 

I'm not quite sure if this falls under Apex or Java development but I decided to post it here.

 

I've created a number of Java classes and turned them into a web service using Axis2 1.4.1 and I seem to keep banging my head against the wall when trying to convert that into Apex code.

 

I go to Setup --> Develop --> Apex Classes and press the button "Generate from WSDL".

 

First I got an error message telling me that multiple bindings aren't allowed. So, I manually edit the WSDL removing the Soap11Binding and Soap12Binding, leaving only the HttpBinding.

 

Next, I get an error message that anyType isn't supported by SFDC. Scanning the Help & Training section I see that the "anyType" previously was mapped to "string". So, once again I manually edit my WSDL file and change anyType to string. Not sure if that's the right decision or not as my method returns a rather simple (Java) object with a couple of fields (a boolean and 3 Strings).

 

Now, it seems like all is well and I get to the 3rd and last step of the wizard but wrong again. On the 3rd, and final, step I'm presented with the following error:

 

Apex generation failed.


Error message:

Error: Unable to find soap 1.1 address

 

And that's where I'm at right now. Is there anyone out there who can point me in the right direction? All help and tips is appreciated.

 

I've worked a lot with axis1 but am new to axis2. My service/class is called PublicatorProTrialManager.java and when creating the client files for the WSDL I get PublicatorProTrialManager.java, PublicatorProTrialManagerLocator, PublicatorProTrialManagerPortType, PublicatorProTrialManagerPortTypeProxy, 2 binding stubs (soap 1.1 and soap 1.2) and a CreateTrialCustomerAndUserResponse.java (the method in the service is called createTrialCustomerAndUser and it returns an object called TrialResult.

 

Does that seem correct to you guys? I would have expected to also see Java files for my TrialResponse obect and the exceptions I've created as well. They would have been generated if I were to use axis1 so I'm a bit worried that I might be doing something wrong or missing some configuration.

 

Best regards,

 

Søren Nøskov Hansen

Zmags ApS

Message Edited by noedskov on 05-16-2009 05:48 PM
Message Edited by noedskov on 05-16-2009 05:58 PM
Message Edited by noedskov on 05-17-2009 02:45 AM