• pchadha20
  • NEWBIE
  • 25 Points
  • Member since 2008

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

My CLI has a SOQL with a '<' and a '>' condition.  Getting this error

 

110 [main] ERROR com.salesforce.lexiloader.process.ProcessConfig  - Error loading process: SFDCCaseExtractProcess configuration from config file: C:\Extraction\Beans\process-conf.xml
org.springframework.beans.factory.BeanDefinitionStoreException: Line 22 in XML document from file [C:\Extraction\Beans\process-conf.xml] is invalid; nested exception is org.xml.sax.SAXParseException: The value of attribute "value" associated with an element type "entry" must not contain the '<' character.
org.xml.sax.SAXParseException:

 

The value of attribute "value" associated with an element type "entry" must not contain the '<' character.
 

 

Is '<' operator not supported by CLI in a SOQL.

 

Is there a substitution variable i can use?

Plz suggest.

 

Regards

Sunil Nandipati.

I have a trigger that I am firing on cases before update.  After the contacts are created, I am trying to update the contact lookup (reference) field on the case.

 

Here is what I am trying:

 

trigger InsertCaseContact on Case (before update) { //Create a new list for caseIds List<Id> caseIds = new List<Id>{}; //Loop through the Cases we're adding and build a list of Ids for(Case cas: Trigger.new) caseIds.add(cas.Id); List<Contact> addContacts = new List<Contact>(); // Loop through the Trigger.new array of Cases. for(Case cas:Trigger.new){ if (cas.SuppliedName != null) { addContacts.add(new Contact (LastName = cas.SuppliedName, Email = cas.SuppliedEmail, Phone = cas.SuppliedPhone, Email_ExtID__c = cas.SuppliedEmail)); } } upsert addContacts Email_ExtID__c; // loop thru contacts to retrieve contact ids List<Contact> newContacts = new List<Contact>(); for (Contact c: addContacts) { newContacts.add(c); } List<Case> cases = new List<Case>{}; for (Case c : Trigger.new) { c.ContactId = newContacts.Id; cases.add(c); } update cases; }

 


Save error: Initial term of field expression must be a concrete SObject: LIST:SOBJECT:Contact

 

How can I update the contact reference field in the cases with with the list of new contacts?

 

Thanks for any help.

If I have an "after insert" trigger, I can use something like the following to determine whether a particular field has changed:

if (Trigger.old[0].myfield__c != Trigger.new[0].myfield__c) {
    // field changed
}
else {
    // field didn't change
}
 
Right?

If Trigger.old and Trigger.new have more than one record (because the trigger fired due to several records being changed at once), can I be certain that the records in Trigger.old and Trigger.new are always in the same order? In other words, can I assume that Trigger.old[x] and Trigger.new[x] refer to the same record?

Thanks,

Jeri