<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Having issue mapping json arrays in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Having-issue-mapping-json-arrays/m-p/4031304#M4471</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="350187" data-lia-user-login="mariussve1" class="lia-mention lia-mention-user"&gt;mariussve1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found the following, and there are some methods and documentation mentioned in this post that may help you:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Data-Pipelines/Copy-Activity-JSON-Array-Mapping/m-p/3320250" target="_blank"&gt;Solved: Copy Activity: JSON Array Mapping - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 01:31:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-09T01:31:42Z</dc:date>
    <item>
      <title>Having issue mapping json arrays</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Having-issue-mapping-json-arrays/m-p/4031053#M4465</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;I'm having issue mapping json arrays in pipeline.&lt;/P&gt;&lt;P&gt;The source is an API and the sink is Fabric Warehouse.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the respons from API:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "tables": [
    {
      "name": "PrimaryResult",
      "columns": [
        {
          "name": "Date",
          "type": "string"
        },
        {
          "name": "DateTime",
          "type": "datetime"
        },
        {
          "name": "PowerBIWorkspaceId",
          "type": "string"
        },
        {
          "name": "PowerBIWorkspaceName",
          "type": "string"
        },
        {
          "name": "DatasetId",
          "type": "string"
        },
        {
          "name": "ReportId",
          "type": "string"
        },
        {
          "name": "VisualId",
          "type": "string"
        },
        {
          "name": "ExecutingUser",
          "type": "string"
        },
        {
          "name": "UserSession",
          "type": "string"
        },
        {
          "name": "Sessions",
          "type": "long"
        }
      ],
      "rows": [
        [
          "2024-07-06",
          "2024-07-06T15:56:00Z",
          "GUID",
          "Workspace name",
          "GUID",
          "GUID",
          "GUID",
          "marius.sveen@",
          "GUID",
          1
        ]
      ]
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I push "Import schemas" it only returns this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I cant find the collection referance when I choose my Fabric Warehouse as my destination. Can anyone please help?&lt;BR /&gt;I tried to edit the json manually like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"mappings": [
                            {
                                "source": {
                                    "name": "$[0]",
                                    "type": "String"
                                },
                                "sink": {
                                    "name": "Date",
                                    "physicalType": "varchar",
                                    "length": "8000"
                                }
                            },
                            {
                                "source": {
                                    "name": "$[1]",
                                    "type": "String"
                                },
                                "sink": {
                                    "name": "DateTime",
                                    "physicalType": "varchar",
                                    "length": "8000"
                                }
                            },
                            {
                                "source": {
                                    "name": "$[2]",
                                    "type": "String"
                                },
                                "sink": {
                                    "name": "PowerBIWorkspaceId",
                                    "physicalType": "varchar",
                                    "length": "8000"
                                }
                            },
                            {
                                "source": {
                                    "name": "$[3]",
                                    "type": "String"
                                },
                                "sink": {
                                    "name": "PowerBIWorkspaceName",
                                    "physicalType": "varchar",
                                    "length": "8000"
                                }
                            },
                            {
                                "source": {
                                    "name": "$[4]",
                                    "type": "String"
                                },
                                "sink": {
                                    "name": "DatasetId",
                                    "physicalType": "varchar",
                                    "length": "8000"
                                }
                            },
                            {
                                "source": {
                                    "name": "$[5]",
                                    "type": "String"
                                },
                                "sink": {
                                    "name": "ReportId",
                                    "physicalType": "varchar",
                                    "length": "8000"
                                }
                            },
                            {
                                "source": {
                                    "name": "$[6]",
                                    "type": "String"
                                },
                                "sink": {
                                    "name": "VisualId",
                                    "physicalType": "varchar",
                                    "length": "8000"
                                }
                            },
                            {
                                "source": {
                                    "name": "$[7]",
                                    "type": "String"
                                },
                                "sink": {
                                    "name": "ExecutingUser",
                                    "physicalType": "varchar",
                                    "length": "8000"
                                }
                            },
                            {
                                "source": {
                                    "name": "$[8]",
                                    "type": "String"
                                },
                                "sink": {
                                    "name": "UserSession",
                                    "physicalType": "varchar",
                                    "length": "8000"
                                }
                            },
                            {
                                "source": {
                                    "name": "$[9]",
                                    "type": "String"
                                },
                                "sink": {
                                    "name": "Sessions",
                                    "physicalType": "varchar",
                                    "length": "8000"
                                }
                            }
                        ],
                        "collectionReference": "$['tables'][0]['rows']",
                        "mapComplexValuesToString": false,
                        "typeConversion": true,
                        "typeConversionSettings": {
                            "allowDataTruncation": true,
                            "treatBooleanAsNumber": false
                        },
                        "columnFlattenSettings": {
                            "treatArrayAsString": false,
                            "treatStructAsString": false,
                            "flattenColumnDelimiter": "."
                        }&lt;/LI-CODE&gt;&lt;P&gt;But then it only write NULL&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see i tried to add:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"collectionReference"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"$['tables'][0]['rows']"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But it does not work.&lt;BR /&gt;&lt;BR /&gt;I have struggled with this for weeks, but cant find out how to fix it. Please help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Br&lt;BR /&gt;Marius&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Jul 2024 20:09:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Having-issue-mapping-json-arrays/m-p/4031053#M4465</guid>
      <dc:creator>mariussve1</dc:creator>
      <dc:date>2024-07-08T20:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Having issue mapping json arrays</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Having-issue-mapping-json-arrays/m-p/4031304#M4471</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="350187" data-lia-user-login="mariussve1" class="lia-mention lia-mention-user"&gt;mariussve1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found the following, and there are some methods and documentation mentioned in this post that may help you:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Data-Pipelines/Copy-Activity-JSON-Array-Mapping/m-p/3320250" target="_blank"&gt;Solved: Copy Activity: JSON Array Mapping - Microsoft Fabric Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 01:31:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Having-issue-mapping-json-arrays/m-p/4031304#M4471</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-09T01:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Having issue mapping json arrays</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Having-issue-mapping-json-arrays/m-p/4043880#M4587</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="350187" data-lia-user-login="mariussve1" class="lia-mention lia-mention-user"&gt;mariussve1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you tell me if your problem is solved? If yes, please accept it as solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 08:21:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Having-issue-mapping-json-arrays/m-p/4043880#M4587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-16T08:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Having issue mapping json arrays</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Having-issue-mapping-json-arrays/m-p/4043964#M4589</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;No, I still have the same issue. I'm not able to map this json array described in the orginal post. I tried to post a new comment in other topic as well, but have not recived any answers.&lt;BR /&gt;&lt;BR /&gt;Br&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 08:45:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Having-issue-mapping-json-arrays/m-p/4043964#M4589</guid>
      <dc:creator>mariussve1</dc:creator>
      <dc:date>2024-07-16T08:45:27Z</dc:date>
    </item>
  </channel>
</rss>

