• Rusty12
  • NEWBIE
  • 25 Points
  • Member since 2005

  • Chatter
    Feed
  • 1
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 7
    Questions
  • 7
    Replies

Etherios

 

 

Founded by long-time salesforce.com Sr. Technical Architects, Etherios is a fast-growing consulting partner working with large Enterprise customers on complex Force.com Architecture and Integration solutions.  We're looking for seasoned client-facing consulting leaders with top-tier technical talent to lead technical engagements.  High growth opportunity for those with the drive and talent to succeed.

Technical Architect: http://www.etherios.com/site_technical_architect

Work from home when not at the client site.  Travel as required by clients.  Chicago and Dallas locations will be given preference, though all are encouraged to apply if qualified. 

Send your resume with a brief intro to careers@etherios.com

 

 

Message Edited by Rusty12 on 11-30-2009 08:41 PM
Message Edited by Rusty12 on 11-30-2009 08:48 PM
Message Edited by Rusty12 on 11-30-2009 08:52 PM

We are running into a situation where we have exceeded the Service Request Time limit but since we're using the default "Bandwidth Exceeded" page that comes with sites the error message provided on the page doesn't really match up with the problem.  This has confused some of the managers of the project.

 

Is there any way to dynamically discover if the limit exceeded was caused by the Service Request Time limit or the Bandwidth Exceeded limit so we can display the proper message respectively using the same page?

 

 

I have a Beta package which successfully installs into DE orgs, but when I tried to install it into a Sandbox org the installation keeps failing with the following message:

 

Your requested install failed. Please try this again.

None of the data or setup information in your Salesforce organization should have been affected by this error.

If this error persists, contact Salesforce Support through your normal channels and reference number: 633711162-5829 (-134333623)

 

I logged a case with support.  Case #2532182.  Any help appreciated.

I'm getting the following error making a callout with a wsdl2apex defined class:

 

20090304221131.470:Class.ClickDelegate.updateOrgs2: line 211, column 48: returning LIST:ClickObject.WSResponse from method public LIST:ClickObject.WSResponse upsertCompany(LIST:ClickObject.WSOrganization) in 0 ms 20090304221131.470:Class.ClickServices.ClickWebService.upsertCompany: line 24, column 13: Created Web Service callout to endpoint: https://vmwareuat.clickcommerce.com/services/ClickWebService 20090304221131.470:Class.ClickServices.ClickWebService.upsertCompany: line 24, column 13: Sending callout request 20090304221131.470:Class.ClickServices.ClickWebService.upsertCompany: line 24, column 13: Reading callout response 20090304221131.470:Class.ClickDelegate.updateOrgs2: line 213, column 13: ERROR: System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element http://ws.vmware.integration.channelwave.com=errorMessage

 

 It won't capture the SOAP messages even though I have System Log Log Category set to 'callout' and level set to 'Info'. 

 

I believe the SOAP response I'm receiving looks like this: 

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <upsertCompanyResponse xmlns="http://ws.vmware.integration.channelwave.com"> <upsertCompanyReturn> <objectId>1001864</objectId> <errorMessage>In dbUtil.getFieldLong: SQLException caught-> SQLState: S1093SQLMessage: The column name geog_area_id is not valid.</errorMessage> <recordSuccess>false</recordSuccess> </upsertCompanyReturn> </upsertCompanyResponse> </soapenv:Body> </soapenv:Envelope>

 

 wsdl2apex produced this class called WSResponse...

 

public class ClickObject {
public class WSResponse {
public String objectId;
public String errorMessage;
public Boolean recordSuccess;
private String[] objectId_type_info = new String[]{'objectId','http://www.w3.org/2001/XMLSchema','string','1','1','true'};
private String[] errorMessage_type_info = new String[]{'errorMessage','http://www.w3.org/2001/XMLSchema','string','1','1','true'};
private String[] recordSuccess_type_info = new String[]{'recordSuccess','http://www.w3.org/2001/XMLSchema','boolean','1','1','false'};
private String[] apex_schema_type_info = new String[]{'urn:com.channelwave.integration.vmware.ws.object','true','false'};
private String[] field_order_type_info = new String[]{'objectId','errorMessage','recordSuccess'};

}

 

...

}

 

 

 

 

 

I have Apex code in a controller class that uses the XMLStreamWriter to create an XML string and display the string on a Visualforce Page.  Everything is working fine except I can't find a graceful way to display the XML with indents (ie. pretty print) on the page.

 

Do I have to hard code the line breaks or is there a better solution I'm just not aware of?

 

Thanks in advance.

Is there anything written up on how to use the XMLDom class?  My searches haven't yielded much except some sample code that uses it in for the google callout processing.  Not looking for anything full-fledged, maybe just a 1 page HowTo regarding the class' major functions with a few sample code lines.

Anyone done troubleshooting on an error like this?  It's happening on a getDeleted call, though I don't think it's specifically relevant just to that API call.  Seems to be a generic error.

Error performing sforce getDeleted Client found response content type of '', but expected 'text/xml'.

   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)

   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

   at sforce.getDeleted(String sObjectType, DateTime startDate, DateTime endDate)

I have Apex code in a controller class that uses the XMLStreamWriter to create an XML string and display the string on a Visualforce Page.  Everything is working fine except I can't find a graceful way to display the XML with indents (ie. pretty print) on the page.

 

Do I have to hard code the line breaks or is there a better solution I'm just not aware of?

 

Thanks in advance.

I'm getting the following error making a callout with a wsdl2apex defined class:

 

20090304221131.470:Class.ClickDelegate.updateOrgs2: line 211, column 48: returning LIST:ClickObject.WSResponse from method public LIST:ClickObject.WSResponse upsertCompany(LIST:ClickObject.WSOrganization) in 0 ms 20090304221131.470:Class.ClickServices.ClickWebService.upsertCompany: line 24, column 13: Created Web Service callout to endpoint: https://vmwareuat.clickcommerce.com/services/ClickWebService 20090304221131.470:Class.ClickServices.ClickWebService.upsertCompany: line 24, column 13: Sending callout request 20090304221131.470:Class.ClickServices.ClickWebService.upsertCompany: line 24, column 13: Reading callout response 20090304221131.470:Class.ClickDelegate.updateOrgs2: line 213, column 13: ERROR: System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element http://ws.vmware.integration.channelwave.com=errorMessage

 

 It won't capture the SOAP messages even though I have System Log Log Category set to 'callout' and level set to 'Info'. 

 

I believe the SOAP response I'm receiving looks like this: 

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <upsertCompanyResponse xmlns="http://ws.vmware.integration.channelwave.com"> <upsertCompanyReturn> <objectId>1001864</objectId> <errorMessage>In dbUtil.getFieldLong: SQLException caught-> SQLState: S1093SQLMessage: The column name geog_area_id is not valid.</errorMessage> <recordSuccess>false</recordSuccess> </upsertCompanyReturn> </upsertCompanyResponse> </soapenv:Body> </soapenv:Envelope>

 

 wsdl2apex produced this class called WSResponse...

 

public class ClickObject {
public class WSResponse {
public String objectId;
public String errorMessage;
public Boolean recordSuccess;
private String[] objectId_type_info = new String[]{'objectId','http://www.w3.org/2001/XMLSchema','string','1','1','true'};
private String[] errorMessage_type_info = new String[]{'errorMessage','http://www.w3.org/2001/XMLSchema','string','1','1','true'};
private String[] recordSuccess_type_info = new String[]{'recordSuccess','http://www.w3.org/2001/XMLSchema','boolean','1','1','false'};
private String[] apex_schema_type_info = new String[]{'urn:com.channelwave.integration.vmware.ws.object','true','false'};
private String[] field_order_type_info = new String[]{'objectId','errorMessage','recordSuccess'};

}

 

...

}

 

 

 

 

 

I noticed that my Visualforce page threw the following error when I tried to add a related list that was perfectly well defined in the object's setup but happened not to be in the Page Layout: 'SubContracts__r' is not a valid child relationship name for entity Licensing Contract

This appears to be an undocumented restriction on the use of <apex:relatedList> not to mention one that could potentially cause some nasty issues in a production environment should an admin update a page layout or create a new one after the orginal page is deployed. Likewise, if they create new recordtypes or recordtype/profile assignments. This restriction is not intuitive; one generally thinks of Visualforce as an alternative to a Page Layout, not as an extension that is bound to it and inherents its content restrictions. Additionally, for developers who have over-ridden all page-layouts for an object with VF pages, it is counter-intuitive to have to edit a Page Layout that is not in use simply to include the list in their VF pages.

Could someone respond back with some clearer details on how this actually works? Does Visualforce simply require that one page layout include the related list or does it require the page layout for the given record type include it. Wouldn't it be more robust to simply define the apex:related list to display based on user permissions rather than throw an error if the list is not found in the related page layout.


Message Edited by lnryan on 12-16-2008 01:12 PM
  • December 16, 2008
  • Like
  • 0
So I have a SOQL query in a Visualforce page that is returning too many results. This is expected but I would like to be able to catch this error and display a nice clean error message to the user. The problem is that I can't seem to catch this error:

Error:
System.Exception: Too many query rows: 10001

Class.salesWinsVF.search: line 57, column 32
External entry point

Code:
Code:
try{
   for(Opportunity opp : Database.query(queryString)){
      results.add(opp);
   }
}catch (QueryException e){
   system.debug('Why can't I catch this');
}

I've also tried: 

}catch (Exception e){

with no luck.




Message Edited by TehNrd on 08-25-2008 10:53 AM
  • August 25, 2008
  • Like
  • 0
When I am sending a mail i am getting a this exception.

System. : Not Serializable: LIST:Messaging.Email

Class.SendMailController.getIsSignature: line 280, column 9


The getIsSignature method has no relation with mail

    public boolean getIsSignature ()
    {
        try
        {
        return this.isSignature;
        }
        catch(Exception ex)
        {
        return null;
        }
    }

I don't know why this error triggers.
can anybody help me. Thanks in advance.
Here is the code but it appears the SOSL query is not returning the account that was just inserted:

Code:
public class soslTest {
 
 public static testMethod void SOSLtest(){
  
  Account acct = new Account(
   Name = 'Test Account'
  );
  insert acct;
 
  List<List<SObject>> searchList = [FIND '*Test Account*' IN NAME FIELDS RETURNING Account(Id, name)]; 
  Account [] accounts = ((List<Account>)searchList[0]);
  system.debug('Accounts ' + accounts);
 }
}

//And the debug line:

20080610183243.419:Class.soslTest.SOSLtest: line 12, column 9: Accounts ()

 Any ideas?