NXT Query- missing actions?

Options

Hello- I have been using Query API to pull in actions for the last 3 years and then using that in a Power BI query. I noticed today that it is missing some actions which has me concerned how many others are missing or what is happening.

There are 36k rows as of today. I have run the query itself and the actions are in there when I export from Query. I look at the file from Power Automate that was saved to my Sharepoint site and the actions are not in there. I found 20 actions that were missing and was one person's meetings.

Any insight on what I can do to make sure all get exported from Power Automate? A delay somewhere? Is there a limit on the Query API at all?

7fc427c4a478e5f322f61fbae76b8605-huge-im

No making fun of my coloring, I tried to stay within the lines. LOL.

Thanks,

Carol

Comments

  • Alex Wong
    Alex Wong Community All-Star
    Ninth Anniversary 1,500 Likes 2500 Comments Name Dropper

    @Carol Grant
    Query API shouldn't have the delay that List API endpoint has.

    Have you check the record count in dbview query? vs webview query? vs Query API?

  • Hi @Carol Grant - To see if this is truly a Power Automate issue, can you test from the Developer Portal using Try it? You can paste the URL generated from the Get query execution job endpoint directly into a browser, which will then trigger you to download and save the file locally.

  • @Ashley Moose- I thought I knew what you are talking about but I tried it and I don't think I'm doing it correctly. I should take the URI link from here, the HTTP- Get query results

    54ced6806378579f1f39897af1a1da27-huge-im

    then put it in the Developer portal where exactly? I guess I don't understand because then you say Browser. I tried putting it alone in a browser but of course it said not authenticated.

    Thanks!


  • @Carol Grant Sorry, I should have been clearer. I meant running the entire thing through Try it.

    1. run Post query execution job by ID. You can remove what is currently in the sample request body on the Try it window and replace with:

    {

    "id": 1,

    "ux_mode": "Asynchronous",

    "output_format": "Csv",

    "formatting_mode": "UI",

    "sql_generation_mode": "Query"

    }

    Just make sure to replace to match your query ID and any of the other mode or format values you have set on the corresponding action in Power Automate.

    2. That will produce an output like this:

    {

    "id": "99d68af6-2f5a-40c6-9fee-32ebff856db2",

    "status": "Pending"

    }

    3. Copy the ID value and then use that as the input on Get query execution job status. If it's a slow query you may have to test that endpoint a couple times until the status comes back as Completed. Once it does complete, then it should output something like this:

    {

    "id": "53CEEC04-3FAA-47D2-B112-D4A997A7F99D",

    "status": "Completed",

    "sas_uri": "https://example.net/jobs/p-envid/063f85e8-1877-4880-a1ea-af576c3f1181/results_1.csv?rscd=Attachment&rsct=text/csv"

    }

    4. Copy the sas_uri value into a new browser window and that should allow you to download the results from here.

  • @Ashley Moose @Alex Wong

    Thanks Ashley and Alex for responding, I did it on the portal and it worked fine. I guess I am going to call this a fluke thing which I hate not knowing why. It ran on Friday night so maybe something was amiss then.

    I have checked my queries today, ran the flow today and now they are appearing in all queries and the Power Automate flow and it seems to be fine and everything is matching up.

  • @Carol Grant Glad it's working now. If this occurs again, I'd suggest going through similar steps as they will help to isolate whether this is a Power Automate issue or an issue with how the data is coming through the API.

Categories