My pipeline is very simple. I have a JSON Generator snap with the following JSON:
{“Site”:“site1”,“Title”:“Item 1”},{“Site”:“site2”,“Title”:“Item 1”}
This snap is connected to a mapper snap with the following mapping:
Expression Target Path
$Site $SPSite
$Title $Payload.Title
Finally the mapper snap is connected to the “SharePoint Online - Create List” snap:
The properties for this Snap is as follows:
Site : $SPSite (set as expression)
List name: TestList
“Create list” checkbox is unchecked
In my SharePoint online tenant I have two site collections (sites/site1 and Sites/site2) each has a list called TestList.
When I run the pipeline, an item is created in TestList on site1 but then it errors out at the “SharePoint Online - Create List” snap with the error message:
“HTTP Response Code: 404; Response Message: The specified list was not found”
and no item is created in the TestList on site2
If my JSON Input entries have the same value for site, the pipeline works fine.