How can I use for each item in Microsoft Fabric data mapping

Panu Oksala 51 Reputation points MVP
2023-10-10T10:13:34.4033333+00:00

Hi,

I have copy data action inside for each loop action. Copy data action fetches data from REST API and as it is stored into data lake, I would like to append the ID of the iterated item into data lake row. I tried to do this with following syntax, but it does not work. It produces an error

"ErrorCode=UserErrorSchemaMappingCannotInferSinkColumnType,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Data type of column 'courseid' can't be inferred from 1st row of data, please specify its data type in mappings of copy activity or structure of DataSet.,Source=Microsoft.DataTransfer.Common"

User's image

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,429 questions
{count} votes

1 answer

Sort by: Most helpful
  1. KranthiPakala-MSFT 46,627 Reputation points Microsoft Employee
    2023-10-11T01:43:05.9166667+00:00

    @Anonymous Welcome to Microsoft Q&A forum and thanks for reaching out here.

    Looks like your ask is related to Microsoft Fabric Data facrory and not Azure Data factory. If that is the case, I recommend reaching out in Microsoft Fabrick community forum: https://community.fabric.microsoft.com/t5/Data-Factory-preview-Community/ct-p/datafactory

    If your ask is not related to Fabric, please let me know.

    Hope this helps.


    Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.