• Sebastian75
  • NEWBIE
  • 130 Points
  • Member since 2010

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

anybody out there that uses talend? It's an open source data mgmt tool.

 

It has a tool that allows you to extract info from salesforce.

 

When using is I get the following error message.

 

Anybody any tips on how to get around this blockage?

 

I't saying that  "API_DISABLED_FOR_ORG". I expect this on talend's side.

 

Thanks for checking on my post. Cheers  

 

>>
Exception in component tSalesforceInput_1
AxisFault
faultCode: {urn:fault.partner.soap.sforce.com}API_DISABLED_FOR_ORG
faultSubcode:
faultString: API_DISABLED_FOR_ORG: API is not enabled for this Organization or Partner
faultActor:
faultNode:
faultDetail:
    {urn:fault.partner.soap.sforce.com}UnexpectedErrorFault:<ns1:exceptionCode>API_DISABLED_FOR_ORG</ns1:exceptionCode><ns1:exceptionMessage>API is not enabled for this Organization or Partner</ns1:exceptionMessage>

API_DISABLED_FOR_ORG: API is not enabled for this Organization or Partner
>>


Starting job salesforce at 16:48 25/01/2010.

Exception in component tSalesforceInput_1
AxisFault
faultCode: {urn:fault.partner.soap.sforce.com}API_DISABLED_FOR_ORG
faultSubcode:
faultString: API_DISABLED_FOR_ORG: API is not enabled for this Organization or Partner
faultActor:
faultNode:
faultDetail:
    {urn:fault.partner.soap.sforce.com}UnexpectedErrorFault:<ns1:exceptionCode>API_DISABLED_FOR_ORG</ns1:exceptionCode><ns1:exceptionMessage>API is not enabled for this Organization or Partner</ns1:exceptionMessage>

API_DISABLED_FOR_ORG: API is not enabled for this Organization or Partner
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:104)
    at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:90)
    at com.sforce.soap.partner.fault.UnexpectedErrorFault.getDeserializer(UnexpectedErrorFault.java:83)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:154)
    at org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:84)
    at org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.java:464)
    at org.apache.axis.encoding.DeserializationContext.getDeserializerForType(DeserializationContext.java:547)
    at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java:157)
    at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at com.sforce.soap.partner.SoapBindingStub.login(SoapBindingStub.java:2102)
    at org.talend.salesforce.SforceManagementImpl.login(SforceManagementImpl.java:144)
    at datasets.salesforce_0_1.salesforce.tSalesforceInput_1Process(salesforce.java:203)
    at datasets.salesforce_0_1.salesforce.runJobInTOS(salesforce.java:511)
    at datasets.salesforce_0_1.salesforce.main(salesforce.java:411)
Job salesforce ended at 16:48 25/01/2010. [exit code=1]
Online

 

 

  • January 26, 2010
  • Like
  • 0

It's possible to check if a field has been modified with an after update trigger?

Similar to the workflow rule condition ischanged(field_name)

 

I want to take some actions if the ownerId field from Account has changed. 

  • January 25, 2010
  • Like
  • 0

I am struggling to understand the basics in Apex triggers. Can anyone tell me simply how I  should detect a field change. For example in the below. If the contact name has changed then I want to make some updates to the contact record.

 

trigger AfterUpdate on Contact (before update) {

If (Contact.Name changed)

}

}

 

 

  • January 25, 2010
  • Like
  • 0

 I'm trying to create a task in the same screen as the opportunity using the trigger below. When I use this in the Lead object it works fine but on the opportunity object it doesn't create the task nor gives me an error. Can anyone see where my error may lie?

 

Thx.

 

trigger taskCreator on Opportunity (before insert, before update, after insert) {
  if (Trigger.isBefore) { 
    Map<Id, Opportunity> opportunityMap = new Map<Id, Opportunity>();


 } else if (Trigger.isAfter)  { 
    // after leads are inserted
    List<Task> followupTasks = new List<Task>(); // build list in memory
    for (Opportunity opp : System.Trigger.new) {
        Task task = new Task(
          //WhoId = opp.Assigned_To__c, 
          //Description = opp.Synopsis__C, 
          Priority = 'High', 
          ReminderDateTime = opp.Due_Date__C, 
          Status = 'Not Started', 
          Subject = opp.Quick_Task_Subject__c);
        followupTasks.add(task);   // add to list
    }

        // insert the entire list
    insert followupTasks;  // NOTE: this is outside the above loop, only one insert is needed

 } // end of isAfter

}// end of trigger

I'm starting using DVC (pilot feature enabled) and I was wondering if the apex:column implementation of the PageBlockTable is incorrect or if I missed something. When trying to build a Pageblocktable an d iterate over a List<Contact> the column contains the right numbers of rows, but the values are not displayed. Instead, the VF meta-tag is diplayed: {!var.columnName}

 

My controller class looks like this (don't search any point in it, it's just a test...):

public with sharing class GenericMultiEditObjectController {
	public String objectName;
	public String ParentObjectId;
	public list<Contact> objList {get;set;}
	

	/*================
	CONSTRUCTOR
	==================*/
	public GenericMultiEditObjectController(){
		mainInit();
	}
	
	private void mainInit(){
		Map<String,String> paramMap = ApexPages.currentPage().getParameters();
		
		if (paramMap.containsKey('object')) objectName = paramMap.get('object');
		if (paramMap.containsKey('parentObjectId')) parentObjectId = paramMap.get('parentObjectId');
	
		objList = new List<Contact>();
		for (Contact oContact:[select id, firstName,LastName from Contact limit 20]){
			objList.add(oContact);
		}
	}
	
	public Component.Apex.PageBlockTable getRlTable(){
		Component.Apex.PageblockTable table = new Component.Apex.PageblockTable();
		table.value=objList;
		table.var = 'genObj';
		

		
		Component.Apex.Column firstNameCol = new Component.Apex.Column();
		firstNameCol.value = '{!genObj.FirstName}';

		table.childComponents.add(firstNameCol);

		return table;
	}

}

 

And my VF page:

 

<apex:page controller="GenericMultiEditObjectController">
	
	<apex:form >
		<apex:pageblock >
		
			<apex:dynamicComponent componentValue="{!rlTable}" />
			
		
		</apex:pageblock>
	</apex:form>	
	
</apex:page>

 

I put the result in attachment...

 

 

I'm starting using DVC (pilot feature enabled) and I was wondering if the apex:column implementation of the PageBlockTable is incorrect or if I missed something. When trying to build a Pageblocktable an d iterate over a List<Contact> the column contains the right numbers of rows, but the values are not displayed. Instead, the VF meta-tag is diplayed: {!var.columnName}

 

My controller class looks like this (don't search any point in it, it's just a test...):

public with sharing class GenericMultiEditObjectController {
	public String objectName;
	public String ParentObjectId;
	public list<Contact> objList {get;set;}
	

	/*================
	CONSTRUCTOR
	==================*/
	public GenericMultiEditObjectController(){
		mainInit();
	}
	
	private void mainInit(){
		Map<String,String> paramMap = ApexPages.currentPage().getParameters();
		
		if (paramMap.containsKey('object')) objectName = paramMap.get('object');
		if (paramMap.containsKey('parentObjectId')) parentObjectId = paramMap.get('parentObjectId');
	
		objList = new List<Contact>();
		for (Contact oContact:[select id, firstName,LastName from Contact limit 20]){
			objList.add(oContact);
		}
	}
	
	public Component.Apex.PageBlockTable getRlTable(){
		Component.Apex.PageblockTable table = new Component.Apex.PageblockTable();
		table.value=objList;
		table.var = 'genObj';
		

		
		Component.Apex.Column firstNameCol = new Component.Apex.Column();
		firstNameCol.value = '{!genObj.FirstName}';

		table.childComponents.add(firstNameCol);

		return table;
	}

}

 

And my VF page:

 

<apex:page controller="GenericMultiEditObjectController">
	
	<apex:form >
		<apex:pageblock >
		
			<apex:dynamicComponent componentValue="{!rlTable}" />
			
		
		</apex:pageblock>
	</apex:form>	
	
</apex:page>

 

I put the result in attachment...

 

 

I am needing assistance with calculating a future date based on the current date + __ Months.  For example:

 

Current Date = 12/15/2009

# Future Months = 6

Future Date =  06/15/2010

 

In Excel, the formula is = DATE(YEAR(12/15/2009),MONTH(12/15/2009)+6,DAY(12/15/2009)

 

What would the formula be in Salesforce to calculate the future date (e.g. 06/15/2010)?

 

 

anybody out there that uses talend? It's an open source data mgmt tool.

 

It has a tool that allows you to extract info from salesforce.

 

When using is I get the following error message.

 

Anybody any tips on how to get around this blockage?

 

I't saying that  "API_DISABLED_FOR_ORG". I expect this on talend's side.

 

Thanks for checking on my post. Cheers  

 

>>
Exception in component tSalesforceInput_1
AxisFault
faultCode: {urn:fault.partner.soap.sforce.com}API_DISABLED_FOR_ORG
faultSubcode:
faultString: API_DISABLED_FOR_ORG: API is not enabled for this Organization or Partner
faultActor:
faultNode:
faultDetail:
    {urn:fault.partner.soap.sforce.com}UnexpectedErrorFault:<ns1:exceptionCode>API_DISABLED_FOR_ORG</ns1:exceptionCode><ns1:exceptionMessage>API is not enabled for this Organization or Partner</ns1:exceptionMessage>

API_DISABLED_FOR_ORG: API is not enabled for this Organization or Partner
>>


Starting job salesforce at 16:48 25/01/2010.

Exception in component tSalesforceInput_1
AxisFault
faultCode: {urn:fault.partner.soap.sforce.com}API_DISABLED_FOR_ORG
faultSubcode:
faultString: API_DISABLED_FOR_ORG: API is not enabled for this Organization or Partner
faultActor:
faultNode:
faultDetail:
    {urn:fault.partner.soap.sforce.com}UnexpectedErrorFault:<ns1:exceptionCode>API_DISABLED_FOR_ORG</ns1:exceptionCode><ns1:exceptionMessage>API is not enabled for this Organization or Partner</ns1:exceptionMessage>

API_DISABLED_FOR_ORG: API is not enabled for this Organization or Partner
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance0(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:104)
    at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer.java:90)
    at com.sforce.soap.partner.fault.UnexpectedErrorFault.getDeserializer(UnexpectedErrorFault.java:83)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.axis.encoding.ser.BaseDeserializerFactory.getSpecialized(BaseDeserializerFactory.java:154)
    at org.apache.axis.encoding.ser.BaseDeserializerFactory.getDeserializerAs(BaseDeserializerFactory.java:84)
    at org.apache.axis.encoding.DeserializationContext.getDeserializer(DeserializationContext.java:464)
    at org.apache.axis.encoding.DeserializationContext.getDeserializerForType(DeserializationContext.java:547)
    at org.apache.axis.message.SOAPFaultDetailsBuilder.onStartChild(SOAPFaultDetailsBuilder.java:157)
    at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(Unknown Source)
    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    at org.apache.axis.client.Call.invoke(Call.java:2767)
    at org.apache.axis.client.Call.invoke(Call.java:2443)
    at org.apache.axis.client.Call.invoke(Call.java:2366)
    at org.apache.axis.client.Call.invoke(Call.java:1812)
    at com.sforce.soap.partner.SoapBindingStub.login(SoapBindingStub.java:2102)
    at org.talend.salesforce.SforceManagementImpl.login(SforceManagementImpl.java:144)
    at datasets.salesforce_0_1.salesforce.tSalesforceInput_1Process(salesforce.java:203)
    at datasets.salesforce_0_1.salesforce.runJobInTOS(salesforce.java:511)
    at datasets.salesforce_0_1.salesforce.main(salesforce.java:411)
Job salesforce ended at 16:48 25/01/2010. [exit code=1]
Online

 

 

  • January 26, 2010
  • Like
  • 0

It's possible to check if a field has been modified with an after update trigger?

Similar to the workflow rule condition ischanged(field_name)

 

I want to take some actions if the ownerId field from Account has changed. 

  • January 25, 2010
  • Like
  • 0

I am struggling to understand the basics in Apex triggers. Can anyone tell me simply how I  should detect a field change. For example in the below. If the contact name has changed then I want to make some updates to the contact record.

 

trigger AfterUpdate on Contact (before update) {

If (Contact.Name changed)

}

}

 

 

  • January 25, 2010
  • Like
  • 0

 I'm trying to create a task in the same screen as the opportunity using the trigger below. When I use this in the Lead object it works fine but on the opportunity object it doesn't create the task nor gives me an error. Can anyone see where my error may lie?

 

Thx.

 

trigger taskCreator on Opportunity (before insert, before update, after insert) {
  if (Trigger.isBefore) { 
    Map<Id, Opportunity> opportunityMap = new Map<Id, Opportunity>();


 } else if (Trigger.isAfter)  { 
    // after leads are inserted
    List<Task> followupTasks = new List<Task>(); // build list in memory
    for (Opportunity opp : System.Trigger.new) {
        Task task = new Task(
          //WhoId = opp.Assigned_To__c, 
          //Description = opp.Synopsis__C, 
          Priority = 'High', 
          ReminderDateTime = opp.Due_Date__C, 
          Status = 'Not Started', 
          Subject = opp.Quick_Task_Subject__c);
        followupTasks.add(task);   // add to list
    }

        // insert the entire list
    insert followupTasks;  // NOTE: this is outside the above loop, only one insert is needed

 } // end of isAfter

}// end of trigger

I created a trigger for the EmailMessage object that, when executed, updates a field on the parent case (runs a SOQL that counts all the emails on the case that are unread and updates the count). The update event on the trigger does not fire when a user opens an unread email from the emails related list on the case even though this action changes the status on the email from New to Read.  Does someone know the reason and is there any way I can trap for this event?

 

thanks

Brian