• sanjdev
  • NEWBIE
  • 464 Points
  • Member since 2012

  • Chatter
    Feed
  • 18
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 9
    Questions
  • 95
    Replies

Hi,

i am loading some file which have japanees char in therir name to an custom object by data loader.

but its not successfully loaded .

the erroe is : the system can not find the file specified.

 

The prob is occoring because when i load the file  in data loader than tha  japaness cahr is converting into garbaje values .

so finally system could not able to find these files.

 

I have set UTF-8 setting in data loader. what else is required ? 

i have enabled japaness in my PC also.

 

Thanks 

Ranu

 

Hi guys,

 

please help me to come out of this error.

 

for(Comments__c cs:trigger.New){
cms=cs;
if(cms.Opportunity__c==null && cms.Contact__c!=null ){
sobjectSetOfIds.add(cms.Contact__c);
}
}

Map<Id,Contact>smap1= new Map<Id, Contact>([Select id
,Name
,(select id ,Name from opportunities limit1)
from Contact
where Id in : sobjectSetOfIds]);

for(Comments__c s: trigger.new){
if(smap1.containsKey(s.Contact__c)){
s.Opportunity__c=smap1.get(s.Contact__c).Opportunities__r[0].id;  //Error
}
}

 

Thanks

Anil.B

Can someone please verify that the following code is returning an incorrect line reference in the NullPointerException.

 

boolean nullReferenceBoolean = null;
List<long> listOfLongs = new List<long>();
for(integer i = 0; listOfLongs != null && i < listOfLongs.size(); i++) {
	System.debug(LoggingLevel.Debug, 'i:' + i + ' testLong:' + listOfLongs[i] + ' listOfLongs.size():' + listOfLongs.size());
}
if(nullReferenceBoolean) {
	System.assert(false, 'Expected Null Pointer Exception');
}
System.assert(false, 'Expected Null Pointer Exception');

I get the fatal error:

18:48:47.040 (40006000)|FATAL_ERROR|System.NullPointerException: Attempt to de-reference a null object
AnonymousBlock: line 3, column 1

I'd expect the error to be on line 6 and not 3.

 

The incorrect line number caused me to waste some time trying to debug the for loop rather than the next statement after it. The above is a greatly simplified version of the code I was working on so it wasn't immediately obvious what the issue was.

Can somebody tell me how can we display an alert message (not error message) through the trigger. I have written a trigger that checks for duplicate accounts in the system. At present my trigger gives the error message to the user telling that there is a duplicate account. But if the user changes the value of a field "Is record near to duplicate" to YES, the trigger allows the user to save the record.

But, I want to display the error message in an alert pop up box like "Account with this Name exists,are you sure you want to continue" and then user clicks Yes and the record gets created. Any thoughts on how I can do this.

 

 
 

I am trying to create a formula in the opportunities layout using customs fields, but keep receiving an error.

 

My custom fields are;

 

  • Full_value  (Currency)
  • Discount_percent (Percentage)
  • Discount_value (Currency)

Basically, I want the user to input the full sales value and the discount percentage, with the discount value field auto-calculating the reduced cost.

 

Whilst its probably not the best formula to use, I have input Full_Value__c *(1- Discount_Percent__c ) into the Discount_value formula editor box.  When I click the 'check syntax' button, I receive the following error message;

 

Error: Field Full_Value__c may not be used in this type of formula

 

I have tried creating a custom 'Formula' field, (which will accept the above formula,) but this doesn't appear on the opportunities page, (when I click 'create new opportunity.') - although, if I click onto the opportunities layout editor, it says that it is there.

 

My basic goal is that the sales person will enter a full sales value, then a discount percentage, and the discount value box will immediately calculate the reduced sales cost for the.  There are 10 different products that I would like to do this for.

 

Can anybody please help me out?

 

Thanks in advance

 

Jon

public void save()

{

for (Integer j = 0; j < selectcategory.size(); j++)
         {

for (Integer i = 0; i< selectlayout.size(); i++)
         {
          system.debug('valuedata'+selectlayout[i].label1);
          str = '<widgetnode><widget Name='+ selectcategory[j].label +'><Imag='+ selectlayout[i].Image1 +' Field='+ selectlayout[i].label1 +'  result='+ selectlayout[i].value +'/></widget></widgetnode>' ;
         system.debug('stringgg'+str);     
       }
     }

}

     widgetpro.Displayed_Widgets__c = str;

}

  I'm getting only last value into str......but in debug I can get all the values.....How should I come out of this

For the change of owner of the lead record

I Created assignment rule and "before insert" trigger for lead assignment.

If I check the checkbox of assignment rule when new lead is created lead is assigned to Queue through the lead assignment rule,  Trigger  not fired.

If I uncheck the checkbox of assignment rule when new lead is created  trigger fired.

What's the problem to trigger. How can I fire ?

I am facing problem with trigger,  I created a Queue  and this Queue is assigned to lead assignment rule.
I created a tirgger on lead object.
 That trigger was written that executes at new lead creation. That trigger first checks to see if the new lead is owned by the perticular  queue. 

 

I wrote lile this

trigger ddd on Lead (before insert) {

{

 for(Lead l:trigger.new){
    
       if(l.ownerid=='00G90000000OTUm'){
   

      //code

    }

}

 

but trigger not fired.colule you please help me to achieve this..

how to create record types?

Part of my validation rule looks like this:

VLOOKUP($User.Floor__c, $User.Username, Employee_Name__c)

  

User.Floor__c is a picklist field. When i check the syntax of this, i get:

Error: Field Floor__c is a picklist field. Picklist fields are only supported in certain functions.

 

Yet in the manual it clearly says for VLOOKUP:

The field_to_return must be an auto number, roll-up summary, lookup relationship, master-detail relationship, checkbox, date, date/time, email, number, percent, phone, picklist, text, text area, or URL field type.

  

What's the deal here? the field I'm wanting to return is a picklist... it should be returning that.... right??? What am I missing here?

i dont know that concept how we use ?when we use that ?pls tell me 

Hi

 

Please help me on extended Mail Merge .. And explain Me how it works..please send any attachments useful for this topic.

 

Please share the details to shasha.sfdc@gmail.com

Login to SFDC from PC and Ipad is ok. But, login from browser to https://login.salesforce.com,

after enter username and password, I get error message " Connection refused na6.salesforce.com:443 "

 

any idea? thanks.

 

 

Hi - is it possible to export a field that is of type "Long Text Area" into a CSV using the Apex Data Loader? I tried that and it seems like Apex Data Loader is not exporting the field. I know we can't filter on a Long Text Area using the WHERE clause, but is there anywhere in the documentation that says it is possible? Thanks for the help.

 

Hi,

 

i'm very curious if it is possible to involve portal users in a workflow process. I can't select user with a 'Customer Portal Manager Custom' profile as an approval user, it seems a portal user is only allowed to make an initial request. Is there any way to have portal users approve requests, or cancel/withdraw an approval request? Maybe in apex?

 

Many thanks in advance!

 

Marco

Hi all....

 

 

Can anyone tell me if there is any tool which can help our org in getting review on salesforce security. We are adding a a product on Appexchange and we want to review the security features before the package goes to Salesforce.

 

Is there any tool that would test the package.

 

Please let me know..

i would be really thankful...

Hi,   I have a Force.com site in which the Standard Record Type Settings of the Account within my Site settings ensures that when I create an account through my site it is created using the RecordType as specified in "Standard Record Type Settings"

 

If I want to test this though in my test class I will need to set the RecordTypeID in my insert to the Account object.  This does not seem possible as I get errors similar to the following 

 

Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, entity type cannot be inserted: Person Account: []

 

I have previously detailed this error in http://boards.developerforce.com/t5/Apex-Code-Development/Insert-record-to-Account-object-with-RecordType-set/m-p/458977#M83914  but my workaround does not include Test Classes.

 

Does anyone know if there is a way of setting the RecordTypeID when creating an Account so that I can add such a RecordTypeID to my test class?

 

Thanks in advance.

I would like to schedule a data exchange between salesforce and a database within the company network. 

 

As I see Bulk API is mostly used for data upload

 

And Data exchange can only be sheduled once every week

 

Is there any way to do it daily ?