Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Unauthorized error while listing CDS entity record

(0) ShareShare
ReportReport
Posted on by

Hi 

 

I am facing Unauthorized error while retrieving data from CDS using "List record" task.
Please refer attached screen shot.

 

status reason=401

Regards,

Lalit K

  • Srikanth- Profile Picture
    16 on at
    Re: Unauthorized error while listing CDS entity record

    Hi @v-alzhan-msft ,

     

    Sorry for late reply, I'm still getting the same issue with successful test run inputs, I think it's the problem with CDS Connector(Current Environment). I tried in 3 environments found the same 401 issue. I was wrong before it's failing on automatic triggers (trigger from powerapps) too.

     

    Can you please try reproduce with the following steps
     1. Trigger -  PowerApps
     2. Add Action List Records using CommonDataService(Current Environment)

     3. Fetch Accounts(Top 1)
     4. Test the flow manually.
     5. See are you getting results or not?.

  • v-alzhan-msft Profile Picture
    on at
    Re: Unauthorized error while listing CDS entity record

    Hi @psrikanth ,

     

    Are you test the flow with the successfully run history?

     

    Best Regards,

    Alice

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • psrikanth Profile Picture
    4 on at
    Re: Unauthorized error while listing CDS entity record

    Hi @v-alzhan-msft ,

     

    I tried using new connection but issue still persists, found that it is happening only when we're testing the flow manually but it is working fine when it is triggered(automatically) by other services PowerApps/Http Request Received trigger.

     

  • v-alzhan-msft Profile Picture
    on at
    Re: Unauthorized error while listing CDS entity record

    Hi @psrikanth ,

     

    Could you please take a try to create a new connection to the connection with the connector to see if the issue still exists?

     

    Best Regards,

    Alice

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • psrikanth Profile Picture
    4 on at
    Re: Unauthorized error while listing CDS entity record

    Hi,

    I'm experiencing the same kind of error when using list records action in CDS(Current Environment) Connector. User have administrator role and logged in with Organization Account. Verified in trail instance too getting the same error.

     

    Response JSON: 

     

    {"statusCode":401,"headers":{"x-ms-service-request-id":"14b091f5-d8a2-4174-af22-66259470aacd,53188c5d-020c-4b44-9a81-c145a6d1e9a7","Set-Cookie":"ARRAffinity=6eb9c602766e99774498e5500ff9aaae3e8dd2a993714760076e1eab3bccad06; domain=xxxx0025.crm8.dynamics.com; path=/; secure; HttpOnly,ReqClientId=e6b37de9-9d66-429a-a0b2-7567d49fc313; expires=Mon, 28-Jul-2070 06:32:24 GMT; path=/; secure; HttpOnly; samesite=none,ARRAffinity=6eb9c602766e99774498e5500ff9aaae3e8dd2a993714760076e1eab3bccad06; domain=hitachi0025.crm8.dynamics.com; path=/; secure; HttpOnly","WWW-Authenticate":"Bearer authorization_uri=https://login.microsoftonline.com/3b64bcdf-499f-443b-b851-f4f597924784/oauth2/authorize, resource_id=https://hitachi0025.crm8.dynamics.com/","Strict-Transport-Security":"max-age=31536000; includeSubDomains","REQ_ID":"53188c5d-020c-4b44-9a81-c145a6d1e9a7","AuthActivityId":"063970e5-65ec-4097-8488-57200f6f5021","NativeWebSession-Version":"2","X-Source":"102991382249223246178130201120181705123183111021942461511511292022501251492305611927,249185110311962172061901985516425112193832084715270691811434352092091395810616918699","Public":"OPTIONS,GET,HEAD,POST","Timing-Allow-Origin":"*","Date":"Tue, 28 Jul 2020 06:32:24 GMT","Content-Length":"0","Allow":"OPTIONS,GET,HEAD,POST"}}

     

    Reference : 

    Flow_ListRecords_Error.png

  • v-alzhan-msft Profile Picture
    on at
    Re: Unauthorized error while listing CDS entity record

    Hi @Anonymous ,

     

    There is no any screenshot in your post and are you creating the connection to CDS with your Microsoft work account?

     

    Best Regards,

    Alice

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow