Hello,
I have an identical problem. It is easily reproducible with official scenario templates “X => LinkedIn Matched Audiences” (X being Google Sheets, Microsoft 365 etc.) as well as with any custom scenario.
Blueprint:
blueprint (4).json (19.6 KB)
Screenshots:
Bundles:
Google Sheet output bundle
[
{
"0": "make1@example.com",
"1": "Aube",
"__ROW_NUMBER__": 1,
"__SPREADSHEET_ID__": "1uGIy08Z0dBDg-GcazCeZrIN6p74tO6jboD1iMGrlMIE",
"__SHEET__": "Sheet1"
}
]
LinkedIn input bundle
[
{
"users": [
{
"userIds": [
{
"idType": "SHA256_EMAIL",
"idValue": "make1@example.com"
}
]
}
],
"dmpSegmentId": 17650674
}
]
Application: LinkedIn Matched Audiences
Modules:
- Add Companies, Remove Companies (identical error)
- Add Users, Remove Users (similar error but saying /type is not USER)
Chrome Debug extension does not help much, it indicates that the following request fails:
{
"response": {
"status": 400,
"headers": {
"content-type": "application/json",
"x-restli-error-response": "true",
"x-restli-protocol-version": "2.0.0",
"date": "Wed, 21 Feb 2024 12:23:43 GMT",
"x-li-fabric": "prod-ltx1",
"transfer-encoding": "chunked",
"x-li-source-fabric": "prod-lva1",
"x-li-pop": "prod-lva1-x",
"x-li-proto": "http/1.1",
"x-li-uuid": "AAYR42XO32FCcQ2c07QIug==",
"set-cookie": [
"bcookie=\"v=2&460557e7-e4c1-4209-8e90-e37c6bc6e104\"; Domain=.linkedin.com; Expires=Thu, 20-Feb-2025 12:23:43 GMT; Path=/; Secure; SameSite=None",
"li_gc=MTswOzE3MDg1MTgyMjM7MjswMjETmfL2FFYPJQTffS6L8QnD3mrgShgdZeW36l0MdrMQFg==; Domain=.linkedin.com; Expires=Mon, 19 Aug 2024 12:23:43 GMT; Path=/; Secure; SameSite=None",
"lidc=\"b=TB73:s=T:r=T:a=T:p=T:g=3703:u=1497:x=1:i=1708518223:t=1708604478:v=2:sig=AQE6X1ySh1uRBzSsGV5Voh61v6JRqZf7\""
],
"x-li-route-key": "\"b=TB73:s=T:r=T:a=T:p=T:g=3703:u=1497:x=1:i=1708518223:t=1708604478:v=2:sig=AQE6X1ySh1uRBzSsGV5Voh61v6JRqZf7\""
},
"body": {
"serviceErrorCode": 10007,
"message": "Validation failed because [{reason=ACTION_CONDITIONALLY_NOT_ALLOWED, field=/type, batchIndex=0, type=ACTION_NOT_ALLOWED, message=Action batch_create is forbidden if field /type is not set to USER, parameters={field=/type, action=batch_create, value=USER}}]",
"status": 400
}
},
"request": {
"url": "https://api.linkedin.com/rest/dmpSegments/17650674/users",
"headers": {
"user-agent": "Make/production",
"authorization": "***",
"x-restli-method": "BATCH_CREATE",
"linkedin-version": "202302",
"x-restli-protocol-version": "2.0.0",
"content-type": "application/json"
},
"method": "POST",
"body": {
"elements": [
{
"userIds": [
{
"idType": "SHA256_EMAIL",
"idValue": "ddd5e46a29e45039d3c73df55996dcdf219add19f76d56535f2a5d65b4936ae6"
}
],
"action": "ADD"
}
]
}
}
}
Indeed, Request Body has no “type” parameter in the root level
I found no way to force the /type parameter in request, I don’t think it is possible, especially as there seems to be a formatting Remote Procedure in the module that formats the bundle, converts emails to SHA256 etc.
Is something broken? LinkedIn is changing a lot their APIs especially Matching Audiences, though the error does not seem to be related to this? Anyone found a workaround?
Have a nice day
Edit: it seems that the problem comes from the LinkedIn audience type. Audiences created from Make are of type “USER” in Make’s search result (“Marked automation” in LinkedIn), and audiences created by uploading a CSV list are of type “USER_LIST_UPLOAD” (“Contact list” in LinkedIn). This is probably where the error abount type “USER” comes from… Is it not possible to add contacts to CSV-originating audiences?