• VladMoushkov
  • NEWBIE
  • 0 Points
  • Member since 2013
  • Concep

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies
Hi there,

We are passing a value to SFDC as below, which is an incorrect / invalid value. When it is returned, three other characters are appended to it. We are wondering:

why they appear
what they are
are they perhaps linked to the Org ID somehow?
can they be ignored if we want to retry the ID?

Many thanks.


The sObject looks like this:

buffer[0].Any.ToArray()[12]
{Element, Name="campaigner_Campaign_External_ID__c"}
     base: {Element, Name="campaigner_Campaign_External_ID__c"}
     attributes: null
     Attributes: {System.Xml.XmlAttributeCollection}
     HasAttributes: false
     InnerText: "801g00000001kjQ"
     InnerXml: "801g00000001kjQ"
     IsContainer: true
     IsEmpty: false
     lastChild: {Text, Value="801g00000001kjQ"}
     LastNode: {Text, Value="801g00000001kjQ"}
     LocalName: "campaigner_Campaign_External_ID__c"
     Name: "campaigner_Campaign_External_ID__c"
     name: {System.Xml.XmlName}
     NamespaceURI: ""
     NextSibling: null
     NodeType: Element
     OwnerDocument: {Document}
     ParentNode: null
     Prefix: ""
     SchemaInfo: {System.Xml.XmlName}
     XmlName: {System.Xml.XmlName}
     XPLocalName: "campaigner_Campaign_External_ID__c"
     XPNodeType: Element

     I'm calling SforceService.create() with array of 8 sObjects (all with this external campaign id: 801g00000001kjQ)

     The result is array of 8 objects like this:

     sr[0]
{ConcepCampaignerIntegration.SalesforceProviders.sforce.SaveResult}
     errors:
{ConcepCampaignerIntegration.SalesforceProviders.sforce.Error[1]}
     errorsField:
{ConcepCampaignerIntegration.SalesforceProviders.sforce.Error[1]}
     id: null
     idField: null
     success: false
     successField: false


     The resulting error object:

     errors.ToArray()[0]
{ConcepCampaignerIntegration.SalesforceProviders.sforce.Error}
     fields: {string[1]}
     fieldsField: {string[1]}
     message: "SFDC Campaign: id value of incorrect type:
801g00000001kjQAAQ"
     messageField: "SFDC Campaign: id value of incorrect type:
801g00000001kjQAAQ"
     statusCode: FIELD_INTEGRITY_EXCEPTION
     statusCodeField: FIELD_INTEGRITY_EXCEPTION


     The problem is that request external Id is different from the Id stated in the exception:
     Request:    801g00000001kjQ
     Response:    801g00000001kjQAAQ


Hello.

We are unable to authenticate with the SFDC API despite entering the correct username, password and security token. The message returned is:

INVALID_LOGIN: Invalid username, password, security token; or user locked out

This is for a developer account, so we are using the https://na15.salesforce.com/services/Soap/u/19.0 API URL. We have also tried with https://login.salesforce.com/services/Soap/u/19.0 and get the same result.

We have tried with an Administrator account and another API enabled account.

However, we know that the username, password and token are all correct. And we can log into the account through the UI front end, so it does not appear to be locked out.

Can anyone advise what we can try next to authenticate please?!

Many thanks,
Jon
Hello.

We are unable to authenticate with the SFDC API despite entering the correct username, password and security token. The message returned is:

INVALID_LOGIN: Invalid username, password, security token; or user locked out

This is for a developer account, so we are using the https://na15.salesforce.com/services/Soap/u/19.0 API URL. We have also tried with https://login.salesforce.com/services/Soap/u/19.0 and get the same result.

We have tried with an Administrator account and another API enabled account.

However, we know that the username, password and token are all correct. And we can log into the account through the UI front end, so it does not appear to be locked out.

Can anyone advise what we can try next to authenticate please?!

Many thanks,
Jon

Hi,

 

I want to add person account to campaign as campaign member using apex, but was not able to find out  the way to pass account id in campaign member object.

 

Since i read  through some blogs that person account is treated as contact in SF so i passed accountid to contactId field of CampaignMember object. But got the "FIELD_INTEGRITY_EXCEPTION, Contact ID: id value of incorrect type: 001P000000XhJYkIAN: [ContactId]" error

 

My code is as below -

 

CampaignMember cm=new CampaignMember(CampaignId='701P00000001sWP',contactId='001P000000XhJYk',Status='Sent');
insert cm;

So hw i would pass person account id to CampaignMember object..?