• mpatil
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 5
    Replies
I am trying to set up email2Case Agentand getting this error. 
Tried almost everything but couldnt 
I will appreciate any help.


2014-11-04 12:33:04,803 [main] ERROR Failed to connect to SFDC service
com.sforce.ws.ConnectionException: Unexpected element. Parser was expecting elem
ent 'urn:partner.soap.sforce.com:passwordExpired' but found 'urn:partner.soap.sf
orce.com:metadataServerUrl'
        at com.sforce.ws.bind.TypeMapper.verifyTag(TypeMapper.java:272)
        at com.sforce.ws.bind.TypeMapper.verifyElement(TypeMapper.java:294)
        at com.sforce.soap.partner.wsc.LoginResult.loadFields(LoginResult.java:2
11)
        at com.sforce.soap.partner.wsc.LoginResult.load(LoginResult.java:203)
        at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:437)
        at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:362)
        at com.sforce.soap.partner.wsc.LoginResponse_element.loadFields(LoginRes
ponse_element.java:68)
        at com.sforce.soap.partner.wsc.LoginResponse_element.load(LoginResponse_
element.java:59)
        at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:437)
        at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:362)
        at com.sforce.ws.transport.SoapConnection.bind(SoapConnection.java:119)
        at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:93
)
        at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:76)
        at com.sforce.soap.partner.wsc.PartnerConnection.login(PartnerConnection
.java:734)
        at com.sforce.mail.GenericClient.login(GenericClient.java:323)
        at com.sforce.mail.GenericClient.getConnection(GenericClient.java:189)
        at com.sforce.mail.GenericClient.<init>(GenericClient.java:142)
        at com.sforce.mail.ImapClient.<init>(ImapClient.java:40)
        at com.sforce.mail.ImapSSLClient.<init>(ImapSSLClient.java:31)
        at com.sforce.mail.EmailService.loadService(EmailService.java:159)
        at com.sforce.SalesforceAgent.main(SalesforceAgent.java:138)
2014-11-04 12:33:04,833 [main] INFO  Will try 2 more time(s).
  • November 04, 2014
  • Like
  • 0
HI ,
I want to know how to create lead hierarchy similar to accounts in leads. I have a ID in leads which represents companyID that differentiates the parent and child leads.
  • February 21, 2014
  • Like
  • 0
I am trying to set up email2Case Agentand getting this error. 
Tried almost everything but couldnt 
I will appreciate any help.


2014-11-04 12:33:04,803 [main] ERROR Failed to connect to SFDC service
com.sforce.ws.ConnectionException: Unexpected element. Parser was expecting elem
ent 'urn:partner.soap.sforce.com:passwordExpired' but found 'urn:partner.soap.sf
orce.com:metadataServerUrl'
        at com.sforce.ws.bind.TypeMapper.verifyTag(TypeMapper.java:272)
        at com.sforce.ws.bind.TypeMapper.verifyElement(TypeMapper.java:294)
        at com.sforce.soap.partner.wsc.LoginResult.loadFields(LoginResult.java:2
11)
        at com.sforce.soap.partner.wsc.LoginResult.load(LoginResult.java:203)
        at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:437)
        at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:362)
        at com.sforce.soap.partner.wsc.LoginResponse_element.loadFields(LoginRes
ponse_element.java:68)
        at com.sforce.soap.partner.wsc.LoginResponse_element.load(LoginResponse_
element.java:59)
        at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:437)
        at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:362)
        at com.sforce.ws.transport.SoapConnection.bind(SoapConnection.java:119)
        at com.sforce.ws.transport.SoapConnection.receive(SoapConnection.java:93
)
        at com.sforce.ws.transport.SoapConnection.send(SoapConnection.java:76)
        at com.sforce.soap.partner.wsc.PartnerConnection.login(PartnerConnection
.java:734)
        at com.sforce.mail.GenericClient.login(GenericClient.java:323)
        at com.sforce.mail.GenericClient.getConnection(GenericClient.java:189)
        at com.sforce.mail.GenericClient.<init>(GenericClient.java:142)
        at com.sforce.mail.ImapClient.<init>(ImapClient.java:40)
        at com.sforce.mail.ImapSSLClient.<init>(ImapSSLClient.java:31)
        at com.sforce.mail.EmailService.loadService(EmailService.java:159)
        at com.sforce.SalesforceAgent.main(SalesforceAgent.java:138)
2014-11-04 12:33:04,833 [main] INFO  Will try 2 more time(s).
  • November 04, 2014
  • Like
  • 0
HI ,
I want to know how to create lead hierarchy similar to accounts in leads. I have a ID in leads which represents companyID that differentiates the parent and child leads.
  • February 21, 2014
  • Like
  • 0

hi,

 i have problem of logo fitting in my project due to search option present in salesforce main window so i want help to remove search option.  

 

 

  • February 02, 2013
  • Like
  • 0

I want to add a button on edit page of a record (say button which opens an external URL in a new window, may be a a url for reference). How do I achieve so?


There's always option of overriding with visualforce page, but there's lot of pitfalls around that approach (say a new recordtype or field is added, you need to create new visualforcce page or update the page respectively etc)

Any idea on how to achieve this? 

 

Chirag

I am having problems connecting to my Exchange server using email2case.  Here are my config files:

email2case.txt:

<configFile>
    <server1>
        <url>imap.win.myco.com</url>
        <protocol>IMAP</protocol>
        <userName>sfdc</userName>
        <password>xxxx</password>
        <port>993</port>
        <interval>1</interval>
        <inbox>SFDC</inbox>
        <readbox>SFDC.SFDC_Out</readbox>
        <errorbox>SFDC.SFDC_Err</errorbox>
    </server1>
</configFile>

 

sfdcconfig.txt:

<configFile>
    <sfdcLogin>
        <url>https://www.salesforce.com/services/Soap/u/9.0</url>
        <userName>me@myco.com</userName>
        <password>xxxx</password>
        <loginRefresh>30</loginRefresh>
        <timeout>600</timeout>
    </sfdcLogin>
    <proxy>
      <server>proxy_server</server>
      <port>8080</port>
      <user>me</user>
      <password>xxxx</password>
    </proxy>
    <notify>
  <notifyEmail>me@myco.com</notifyEmail>
        <from>me@gmail.com</from>
        <host>smtp.gmail.com</host>
    <port>465</port>
        <user>me</user>
        <password>xxxx</password>
        <service>com.sforce.mail.SMTPNotification</service>
    </notify>
    <attachments>
        <largeAttachmentDirectory>C:\EmailAgent\LargeAttachments</largeAttachmentDirectory>
        <largeAttachmentURLPrefix>file:\\C:\EmailAgent\LargeAttachments</largeAttachmentURLPrefix>
        <largeAttachmentSize>1</largeAttachmentSize>
    </attachments>
    <services>
        <com.sforce.mail.EmailService>C:\\EmailAgent\\email2case.txt</com.sforce.mail.EmailService>
    </services>
</configFile>

 

It is able to connect to SFDC, but not to our Exchange server.  This is the message I get:

...

2010-02-23 10:02:16,284 360  [main] INFO  com.sforce.SalesforceAgent  - Attempting to start service com.sforce.mail.EmailService with configuration file C:\\EmailAgent\\email2case.txt
2010-02-23 10:02:16,909 985  [main] INFO  com.sforce.mail.GenericClient  - LoginURL: https://www.salesforce.com/services/Soap/u/9.0
2010-02-23 10:02:16,909 985  [main] INFO  com.sforce.mail.GenericClient  - Agent will connect to: https://na7-api.salesforce.com/services/Soap/u/9.0/00DA0000000ILw2
2010-02-23 10:02:16,909 985  [main] INFO  com.sforce.mail.EmailService  - Scheduling poll process against imap.win.myco.com
2010-02-23 10:02:16,909 985  [main] INFO  com.sforce.mail.EmailService  -    Port    : 993
2010-02-23 10:02:16,909 985  [main] INFO  com.sforce.mail.EmailService  -    UserID  : sfdc
2010-02-23 10:02:16,909 985  [main] INFO  com.sforce.mail.EmailService  -    Password:
2010-02-23 10:02:16,909 985  [main] INFO  com.sforce.mail.EmailService  -    Interval: 1 minute(s)
2010-02-23 10:02:16,909 985  [main] INFO  com.sforce.mail.EmailService  -    InBox   : SFDC
2010-02-23 10:02:16,909 985  [main] INFO  com.sforce.mail.EmailService  -    ReadBox : SFDC.SFDC_Out
2010-02-23 10:02:16,909 985  [main] INFO  com.sforce.mail.EmailService  -    ErrorBox: SFDC.SFDC_Err
2010-02-23 10:02:16,909 985  [main] INFO  com.sforce.SalesforceAgent  - Service imap.win.itginc.com:993:tca_sfdc:SFDC successfully registered
2010-02-23 10:02:16,909 985  [main] INFO  com.sforce.SalesforceAgent  - com.sforce.mail.EmailService  loaded as a timer service.
2010-02-23 10:03:18,095 62171 [Timer-0] ERROR com.sforce.mail.GenericClient  - Unable to connect to mail service.
Service: imap.win.myco.com
User: sfdc

Message: ;
  nested exception is:
    java.io.IOException

 

Is there any way to get more info regarding the error, or any utilities to use to debug the connection?