简体   繁体   中英

Azure datafactory: My REST api call works in copy data but not in data flow, why?

I am trying to set up a data pipeline in ADF. I can't seem to figure out why an API call works as a source in the "copy data" block in the pipeline, but when I try to use it as a source in the data flow it throws an error.

This is the request in the copy data block: https://i.stack.imgur.com/9wzSZ.png'

This is the request in the data flow tab: : https://i.stack.imgur.com/Onpuk.png

And this is the error I get: https://i.stack.imgur.com/f9zdb.png

The request body should be the same. Still I get a good response when I preview the data in the copy block: https://i.stack.imgur.com/cKZsb.png

Is there some setting that is different that I am missing?

EDIT: the url for the request is https://www.daggegevens.knmi.nl/klimatologie/uurgegevens with the request body start=2022010101&end=2022090724&stns=330&vars=DD:FH:FF:FX&fmt=json

I have reproduced same error in Dataflow.

错误

  • I tried to give Response body in query parameters as in below image

查询参数

  • Response of this API had header and body in each line item.回复
  • Thus, select transformation is used to select only the body response and copied it to the sink选择转换

Outputs that I received from both copy activity and data flow activity are same.

copy activity output复制活动输出

data flow activity output数据流活动输出

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM