102. Copy activity - Pagination rules - Variables in QueryParameters in Azure Data Factory

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2024

ความคิดเห็น • 37

  • @cusukanya
    @cusukanya ปีที่แล้ว +8

    here in the range end you have put hardcoded value. But if that total count is available in restAPI result, How can I get that to use in the end condition in range

  • @conaxlearn8566
    @conaxlearn8566 ปีที่แล้ว +3

    Thank you so much!
    What if we don't know how many records are in there, or the number of records grows with time, then we can't hard code a End number at 7:24?

    • @Draqqun
      @Draqqun ปีที่แล้ว

      Did you find solution of problem?

    • @conaxlearn8566
      @conaxlearn8566 ปีที่แล้ว

      @@Draqqun No I haven't.

  • @azurecontentannu6399
    @azurecontentannu6399 ปีที่แล้ว

    Amazing explanation. Pagination was always confusing untill you explained. Thankyou 😊

  • @shutzzzzzz
    @shutzzzzzz 3 หลายเดือนก่อน +1

    he has hardcoded the range value hence it is fetching the offset 20. The whole idea was to parameterize the offset value which he could not do it.

  • @Tsoy78
    @Tsoy78 8 หลายเดือนก่อน +1

    When setting up the Range you are hardcoding star=0 and end 1279. How can we use "Dynamic content" for it? I tried using function @range(1, 40) but am getting error "The property 'paginationRules' is invalid or missing.,Source=Microsoft.DataTransfer.ClientLibrary,'"

  • @DavidKade-fo5om
    @DavidKade-fo5om ปีที่แล้ว +1

    How do we do this in Data flow? I need to flatten the data in Data flow.

  • @MOHAMMADSHAKIB-d8d
    @MOHAMMADSHAKIB-d8d 5 หลายเดือนก่อน +1

    great tutorial @wafaStudies just wanted to know one thing how to set the end as dynamic? I wanted to use the output of web where I will be picking up __count and wanted to pass it to end range how to do it ?

    • @MOHAMMADSHAKIB-d8d
      @MOHAMMADSHAKIB-d8d 5 หลายเดือนก่อน +1

      this has been resolved by adding one more pagination rule. - Endcondition = empty and leave the End as blank

    • @sandeepkva
      @sandeepkva 2 หลายเดือนก่อน

      @@MOHAMMADSHAKIB-d8d Hi Sir, I have a similar problem wherein every call to the API returns a different value We have put in Query parameters variable start, End(empty) count; You are suggesting to put one more condition for EndCondition and leave it empty, How will the Copy activity know the number of times to iterate or when to come out ?.. Request Your valuable inputs please

  • @europechiduniya
    @europechiduniya ปีที่แล้ว +1

    I did exam same, but rows are restricting to 100 only, I have around 1000+ values, everytime I tried to follow it but I see only 100 rows are written to azure sql, why so?

  • @gokulsthev
    @gokulsthev 3 หลายเดือนก่อน

    Hi, what if the offset is not a number but blank in the first api request and returns a long string for each call? Instead of range is it body in the pagination rule?

  • @nitinpandey4857
    @nitinpandey4857 ปีที่แล้ว +4

    What if we don't know the end value of range how to handle that scenario. Keeping in mind that we need to create a generic solution which can handle any kind of range say 0-20 or 0-2000 by itself.

    • @WafaStudies
      @WafaStudies  ปีที่แล้ว +1

      When u dont know end value, u can use random high number too i guess. That wsy it will stop automatically. But i will research mkre too if any other way.

    • @cusukanya
      @cusukanya ปีที่แล้ว

      Hi Nitin/Wafastudies , If I have total row count in API result, how can I get that to use in pagination range end condition.Pls help

  • @raycharlesvillaruel4383
    @raycharlesvillaruel4383 ปีที่แล้ว +2

    @wafastudies how do we do this in data that we flatten in data flow? The pagination rules are different in data flow compared to copy activity

  • @tejashrist8000
    @tejashrist8000 2 หลายเดือนก่อน +1

    Can't we pass that 1279 end value as $.count
    In my case that number is dynamic I have to take that from json file

    • @TheRealTiguere
      @TheRealTiguere 2 หลายเดือนก่อน

      did u found anything about this ?

  • @adnanabdulmalik
    @adnanabdulmalik ปีที่แล้ว +3

    Can we set the range value start, end, and offset with dynamic content/variables that have been assigned values? At the beginning, we don't know how many total data there are, so before performing the copy activity, usually I will get the total data first.

    • @cusukanya
      @cusukanya ปีที่แล้ว

      are you able to get a solution for passing it dynamically. am really stuck at passing these values dynamically.

    • @adnanabdulmalik
      @adnanabdulmalik ปีที่แล้ว +1

      @@cusukanya Yes, I found the solution. Fortunately, the API I'm using (SAP CX) supports the parameters count, skip, and top. So, the process I'm following is first counting the data I will process. Next, I set the total paging with the following condition:
      @string(if(less(int(variables('totaldata')), 2000), 1, if(less(int(variables('totaldata')), 10000), 3, if(less(int(variables('totaldata')), 100000), 10, if(less(int(variables('totaldata')), 200000), 20, 30)))))
      After obtaining the total paging, the next step is to set the data per paging, until finally, I iterate through each paging using the values skip = totalskipbefore + totaldataperpaging and top = totaldataperpaging

  • @timotheepapin2555
    @timotheepapin2555 3 หลายเดือนก่อน

    Thank you for the explanation. You can set End with $.count to be dynamic!

    • @sandeepkva
      @sandeepkva 2 หลายเดือนก่อน

      Hi Sir, We have a similar issue at hand ; Just to clarify - You are asking us to add one more pagination rule and it would read as "End Condition" $.count "In the add dynamic content" - should we add something ?. Request to clarify.. thanks in advance

  • @itikasarkar4782
    @itikasarkar4782 8 หลายเดือนก่อน

    Thanks for the video. How to dynamically add the offset? I have different totalrows for different tables and I want to do the pagination dynamic for all tables

  • @megharaina6108
    @megharaina6108 6 หลายเดือนก่อน

    what happens if you dont know the size of your data , which often is the case

  • @Tsoy78
    @Tsoy78 ปีที่แล้ว

    Thank you. Very good and informative. However, I have a problem. My API does not return the total number of records, so I do not know it ahead of time. How to deal with something like this?

  • @ankushbanik1764
    @ankushbanik1764 ปีที่แล้ว +1

    Is this playlist is done?

    • @WafaStudies
      @WafaStudies  ปีที่แล้ว

      It may grow based on new features getting released in adf

  • @Akshay50826
    @Akshay50826 ปีที่แล้ว +1

    Thank you so much maheer!! :)

  • @HanumanSagar
    @HanumanSagar ปีที่แล้ว

    Are you going to start GCP videos also bro?

  • @mohammediqbal2406
    @mohammediqbal2406 ปีที่แล้ว +1

    Great bhai