• Euclid
  • NEWBIE
  • 0 Points
  • Member since 2011

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

Hi Guyz,

 

Facing one issue with web service call from a java code. 

Here is the exception we are receiving in the logs:

 

[Security:090504]Certificate chain received from cs1.salesforce.com - 204.14.234.** failed hostname verification check. Certificate contained *.salesforce.com but check expected cs1.salesforce.com

 

Any idea why we are getting this? 

 

Thanks in advance!

Hi,

 

I have been working on a page to have a mass update of owner in Salesforce.com for Leads & Opportunities. 

Based on the input(csv file) from user the code is supposed to update the Lead & Opportunity object with appropriate Owners.

 

However, I m getting the following error when trying to update the owner information. 

 

 

 

System.DmlException: Update failed. First exception on row 0 with id 006Q000000BKaeIIAT; first error: INVALID_CROSS_REFERENCE_KEY, Owner ID: owner cannot be blank: [OwnerId]

 

Following is the method which is being called:

 

public Pagereference ReadFile()
{
nameFile=contentFile.toString();
filelines = nameFile.split('\n');
system.debug('file lines: '+filelines);
system.debug('file line size: '+filelines.size());
OpptyTaskTransfer_CTE o = new OpptyTaskTransfer_CTE();
opptytoupdate = new List<Opportunity>();
try
{

for (Integer i=1;i<filelines.size();i++)
{
List<String> inputvalues=filelines[i].split(',');
if(o.isValidId(inputvalues[0].trim()))
{
listOppty.add(inputvalues[0].trim());
listUser.add(inputvalues[1].trim());
mapOpptyOwner.put(inputvalues[1].trim(),inputvalues[0].trim());
}
else
{
ApexPages.Message errormsg = new ApexPages.Message(ApexPages.severity.ERROR,'Please check the Lead Id: '+inputvalues[0].trim());
ApexPages.addMessage(errormsg);
}

}

Set<String> setUsers = new Set<String>();
setUsers.addAll(listUser);

for(String uname: setUsers)
{
if([select Id, Name,Username from User where username=:uname and isActive=true limit 1].size()!=1)
{
ApexPages.Message errormsg = new ApexPages.Message(ApexPages.severity.ERROR,'Please check the Username: '+uname);
ApexPages.addMessage(errormsg);
}
}


allUsers = [select Id,Name,Username from User where Username IN: setUsers and isActive=true];

for (String username : setUsers)
{
for(User u : allUsers)
{
if(username ==u.Username)
{
mapUser.put(u.username,u.Id);
}
}
}

for(String uName : mapOpptyOwner.keySet())
{
mapOpptyOwnerId.put(mapOpptyOwner.get(uname),mapUser.get(uname));
}

allOppty = [select Id,OwnerId from Opportunity where Id IN: listOppty];

for(Id i : listOppty)
{
for(Opportunity op : allOppty)
{
if(i==op.Id)
{
op.OwnerId=mapOpptyOwnerId.get(i);
opptyToUpdate.add(op);
}
}
}

if(!opptytoupdate.isEmpty())
{
update opptytoupdate;
ApexPages.Message succmsg = new ApexPages.Message(ApexPages.severity.INFO,'Updated '+opptytoupdate.size()+' record(s) successfully.');
ApexPages.addMessage(succmsg);
}
}
catch (Exception e)
{
ApexPages.Message errormsg = new ApexPages.Message(ApexPages.severity.ERROR,'An error has occured. Please check the file uploaded or try again later');
ApexPages.addMessage(errormsg);
}
return null;
}

 

I am unable to figure out the issue here. Can some one please help?

 

Thanks...

Hi,

 

In case the email used for creating a user record gets decommissioned, is there any impact on authentication?

 

Example:

 A user record has email as example@domain.com

 

Now, if the 'domain.com' domain is decommissioned, how will it affect our authentication in Salesforce.com?

 

Thanks,

Euclid

Hi all,

 

I have some 5 record types on the case, Not able to see the stadard picklist field 'Status' on the record types.

Please give some solution, I need to edit the picklist value so that reassign the existing picklist value to the record types.

Hi,

 

I am very new to Salesforce.com development and wanted to know about data loading process in Salesforce.com. As far as I know, when it comes to mass data loading into one of the Salesforce.com objects, Apex Data Loader is the best tool to be used. Apart from that there is also sforce Connector plugin available for Excel users.

 

Now, I wanted to know if this can be done in any other way. I mean, not using Data Loader or sforce Connector , can we do a mass data upload into Salesforce.com?

 

Thanks in advance!

 

 

Can we rename the AccountName Standard Field label for Name of Account to any other value(Ex:MyName).

I am able to rename the custom object name as an edit link is placed before the object name field.

But i am not able to see any edit button or link before the account name.

 

Please let me know if it is possible. Your Help is appreciated.....

 

Thanks

shaan