Re: Marketo Bulk Import lead API throws error "Lookup field 'linkedInId' not found"

amy123
Level 1

Marketo Bulk Import lead API throws error "Lookup field 'linkedInId' not found"

I am sending the below API call

 

curl --location 'https://585-AXP-425.mktorest.com/bulk/v1/leads.json?lookupField=linkedInId' \
--form 'format="csv"' \
--form 'file=@"/Users/XXX/Desktop/test copy.csv"' \
--form 'access_token="XXXXXX-9f9c-41bf-b476-9999XXXXd88:ab"'

And My csv file contains below dummy data :

 

Email,FirstName,LastName,LinkedInID
john.doe@example.com,John,Doe,123456789
jane.smith@example.com,Jane,Smith,987654321

 

But I am getting error:

{
"requestId": "27d1#1912b4ad150",
"success": false,
"errors": [
{
"code": "1006",
"message": "Lookup field 'linkedInId' not found"
}
]
} can you please help me with this error, I have tried sending actual linkdinId as well. Still the same error
2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: Marketo Bulk Import lead API throws error "Lookup field 'linkedInId' not found"

- is that a custom string field in your instance, or a system field?
- is that the actual field name returned from the Describe Lead endpoint?
- why are you using different capitalization in the CSV (Marketo does not allow this in all cases, so you should treat field names as case-sensitive)?
amy123
Level 1

Re: Marketo Bulk Import lead API throws error "Lookup field 'linkedInId' not found"

- This is marketo standard field https://experienceleague.adobe.com/en/docs/marketo-developer/marketo/rest/assets/list-of-standard-fi...

- no, this field is not coming through describe fields API ( I am following the doc : https://developer.adobe.com/marketo-apis/api/mapi/#tag/Bulk-Import-Leads/operation/importLeadUsingPO... ) where it is written we can send linkedinId, facebookId, twitterId, sfdc related ids etc. But these fields are not coming through describe API call.

- even though I use the same casing it is not working.