function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jarsjars 

CTI Toolkit 2.0 - Error messages in log, customized attributes not being loaded/saved

Hello,

 

I am migrating existing code to work with CTI Toolkit 2.0. I was able to compile and run the new version, haven't start to play around with the new features though.

 

However I took a look at the logs and found some errors for which I couldn't get any information.

Could someone help?

 

These are the relevant log entries:

 

05/25/2010 13:37:32: CreateLoginForm()
05/25/2010 13:37:32: receiving 291 characters in message <?xml version="1.0" encoding="UTF-8"?><MESSAGE ID="UPDATE_SID">
<PARAMETER NAME="INSTANCE" VALUE="https://prerelna1.pre.salesforce.com"/><PARAMETER NAME="SID" VALUE="00Dt0000000Agih!AQoAQEMzqMEwD9msgMcxWn5ziNssjIFNdxAsEFEJWc_doLPN898DFUttHfcYNYkZSlSER7zZGs.7xWPxpluY1u7dlA14Pz8Y"/></MESSAGE>
05/25/2010 13:37:32: CCTIUserInterface::UIHandleMessage: Message received: UPDATE_SID.  Parameters: INSTANCE=https://prerelna1.pre.salesforce.com; SID=00Dt0000000Agih!AQoAQEMzqMEwD9msgMcxWn5ziNssjIFNdxAsEFEJWc_doLPN898DFUttHfcYNYkZSlSER7zZGs.7xWPxpluY1u7dlA14Pz8Y;
05/25/2010 13:37:32: CCTIAppExchange::SetSessionInstanceAndSid: Setting URL to https://prerelna1.pre.salesforce.com/services/Soap/c/17.0
05/25/2010 13:37:33: CCTIAppExchange::SetSessionInstanceAndSid: Setting SID to 00Dt0000000Agih!AQoAQEMzqMEwD9msgMcxWn5ziNssjIFNdxAsEFEJWc_doLPN898DFUttHfcYNYkZSlSER7zZGs.7xWPxpluY1u7dlA14Pz8Y
05/25/2010 13:37:33: CCTIAppExchange::UpdateSid: New user detected!  Updating cached information.
05/25/2010 13:37:33: UserId set to 005t0000000uv42AAA.
05/25/2010 13:37:33: CCTIAppExchange::UpdateSid: User José Silva authenticated.
05/25/2010 13:37:33: CCTIAppExchange::SetSessionInstanceAndSid: Setting URL to https://prerelna1.pre.salesforce.com/services/Soap/c/17.0
05/25/2010 13:37:33: CCTIAppExchange::SetSessionInstanceAndSid: Setting URL to https://prerelna1.pre.salesforce.com/services/Soap/c/17.0
05/25/2010 13:37:33: CCTIAppExchange::LoadUserParamsFromCustomSetup: Error loading user params from CustomSetup: INVALID_TYPE: sObject type 'customsetup' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names..
05/25/2010 13:37:33: CCTIAppExchange::SetSessionInstanceAndSid: Setting SID to 00Dt0000000Agih!AQoAQEMzqMEwD9msgMcxWn5ziNssjIFNdxAsEFEJWc_doLPN898DFUttHfcYNYkZSlSER7zZGs.7xWPxpluY1u7dlA14Pz8Y

...

05/25/2010 13:37:36: OnCTIConnection called.
05/25/2010 13:37:36: Sending XML (len 606): <CTIUserInterface LOGGED_IN="false"><CTIForm><CTIEditBox ID="CUSTOM1" LABEL="uCI Instance Name" VALUE=""/><CTIEditBox ID="AGENT_ID" LABEL="uCI Agent Id" VALUE=""/><CTIEditBox ID="PASSWORD" PASSWORD="true" VALUE=""/><CTIEditBox ID="CUSTOM2" LABEL="uCI Site" VALUE=""/><CTIEditBox ID="EXTENSION" VALUE=""/><CTICheckbox CHECKED="false" ID="CUSTOM4" LABEL="Automatic Login"/><CTIButton COLOR="GREEN" ID="LOGIN" LONG_STYLE="true"/></CTIForm><CTILogo IMAGE_URL="whatever"/></CTIUserInterface>
05/25/2010 13:38:05: receiving 324 characters in message <?xml version="1.0" encoding="UTF-8"?><MESSAGE ID="LOGIN">
<PARAMETER NAME="AGENT_ID" VALUE="someone"/><PARAMETER NAME="CUSTOM1" VALUE="server:1500"/><PARAMETER NAME="CUSTOM2" VALUE="porto"/><PARAMETER NAME="CUSTOM4" VALUE="false"/><PARAMETER NAME="EXTENSION" VALUE="1"/><PARAMETER NAME="PASSWORD" VALUE=""/></MESSAGE>
05/25/2010 13:38:05: CCTIUserInterface::UIHandleMessage: Message received: LOGIN.  Parameters:
05/25/2010 13:38:05: Sending XML (len 248): <CTIUserInterface LOGGED_IN="false"><CTIProgressBar ID="LOGGING_IN" LABEL=""/><CTILogo IMAGE_URL="whatever"/></CTIUserInterface>
05/25/2010 13:38:05: Sending XML (len 648): <CTIUserInterface LOGGED_IN="false"><CTIProgressBar ID="LOGGING_IN" LABEL=""/><CTIForm><CTIEditBox ID="CUSTOM1" LABEL="uCI Instance Name" VALUE=""/><CTIEditBox ID="AGENT_ID" LABEL="uCI Agent Id" VALUE=""/><CTIEditBox ID="PASSWORD" PASSWORD="true" VALUE=""/><CTIEditBox ID="CUSTOM2" LABEL="uCI Site" VALUE=""/><CTIEditBox ID="EXTENSION" VALUE=""/><CTICheckbox CHECKED="false" ID="CUSTOM4" LABEL="Automatic Login"/><CTIButton COLOR="GREEN" ID="LOGIN" LONG_STYLE="true"/></CTIForm><CTILogo IMAGE_URL="whatever"/></CTIUserInterface>
05/25/2010 13:38:05: CCTIAppExchange::GetValueFromQuery: Query: Select c.ClientName From CustomSetupDefinition c Where KeyPath='CTI/AGENT_ID'
05/25/2010 13:38:06: CCTIAppExchange::GetValueFromQuery: Error getting query results: INVALID_TYPE: sObject type 'customsetupdefinition' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names..
05/25/2010 13:38:06: CCTIAppExchange::GetValueFromQuery: Got value from query: ClientName:
05/25/2010 13:38:06: CCTIAppExchangeSaveThread::ThreadSaveUserParams: COM error setting up custom setup objects: INVALID_TYPE: sObject type 'CustomSetup' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names..

 

These error messages weren't appearing for CTI toolkit 1.54. What might be wrong?

 

Thanks,

jars

eric garniereric garnier

Hi,

I got the same error message with toolkit 3.0.

Did you solve this one?

Thanks,

And Happy New Year.

Eric

jarsjars

Hello Eric,

 

In the end I didn't make any changes to my source code. I think the problem had to do with a conflict between the "older" version's saved user data and the new Salesforce's toolkit binaries.

 

It's all working fine now.

 

Please remember that you have to set the "reqVersion" flag in the XML config file to "3.0" so that your users be able to work with the new code!

 

something like.

...

 

  <section sortOrder="0" name="reqGeneralInfo" label="General Information">
    <item sortOrder="0" name="reqInternalName" label="Internal Name">WhateverAdapter</item>
    <item sortOrder="1" name="reqDisplayName" label="Display Name">Whatever Call Center Adapter</item>
    <item sortOrder="2" name="reqDescription" label="Description">Whatever Call Center Adapter</item>
    <item sortOrder="3" name="reqProgId" label="CTI Connector ProgId">XPTOAdapter.XPTOAdapter.1</item>
    <item sortOrder="4" name="reqVersion" label="Version">3.0</item>
  </section>

 

 

Have a great 2011!

 

jars

eric garniereric garnier

Hello Jars,

thanks for your answer.

Unfortunatly, I already set the correct version.

I suspect it may have something to do with the CTI/AGENT_ID or with the developer edition.

 

But for now, it is not the most urgent point.

 

Thank again, and you too, happy new year.

 

Eric