I installed Salesforce API & Salesforce Entity modules.
And i tried to use Export fieldmap for a Basic page from the Salesforce tab of the node using the default example fieldmap for a page node.
I had no success to export and also I got those errors:
- Warning: strpos() expects parameter 1 to be string, array given in url() (line 2084 of D7_path/includes/common.inc).
- Warning: substr() expects parameter 1 to be string, array given in url() (line 2085 of D7_path/includes/common.inc).
- Warning: strpos() expects parameter 1 to be string, array given in drupal_strip_dangerous_protocols() (line 1247 of D7_path/includes/common.inc).
- Warning: strpos() expects parameter 1 to be string, array given in url() (line 2100 of D7_path/includes/common.inc).
- Warning: explode() expects parameter 2 to be string, array given in url() (line 2101 of D7_path/includes/common.inc).
- An error occurred while exporting the node to Salesforce. Check the watchdog for more information.
There is also an Devel object message.
The message of the object is:
Unable to create/update fields: Name. Please check the security settings of this field and verify that it is read/write for your profile.
& the status code:
statusCode (String, 31 characters ) INVALID_FIELD_FOR_INSERT_UPDATE
Other info:
- I didn't make any changes for the Default fieldmap or add other fields for the Basic Page content type
- It's an multilingual Drupal and the Basic Page it's a multilingual content type. I also use i18n module
- also has metatags (fields) defined with Meta tags quick module
This is mine or it's a bug?
Thanks
Comments
Comment #1
vasikeit seems that was an older version of the Salesforce PHP Toolkit
it seems it works with the last one suggested on the installation documentation (http://drupal.org/node/1060602) : https://github.com/developerforce/Force.com-Toolkit-for-PHP/tarball/master
the error was fixed with this commit : https://github.com/developerforce/Force.com-Toolkit-for-PHP/commit/a1209...
Comment #2
vasikeComment #4
nicodv commentedHi there, I have the latest toolkit version and still get the same errors. I read though, in the posted commit the following:
public function upsert($ext_Id, $sObjects, $type = 'Contact') {
My question, why 'contact'? I'm trying to import Accounts.
Please vasike, can you throw some light here? i'm a noob and I've been struggling for 2 weeks with the same errors and nobody is answering me.
Thanks
nico
Comment #5
karamuse commentednicodv,
Did you ever get an answer? I'm having the same problem.
Thanks,
Kara
Comment #6
nicodv commentedHi karamuse, no, I almost never get answers to my desperate questions concerning SF (maybe because my questions are a little bit wrong too, don't know) . It's been a long time since my comment, but as I remember, when these errors happened to me, it was because I was trying to write on read-only fields up in SF or things like that.
I'll try to recall more details about it and post it here in the next days.
Sorry I can't be of more help right now.
Nico