web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Unauthorized error whi...
Power Automate
Unanswered

Unauthorized error while listing CDS entity record

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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

Categories:
I have the same question (0)
  • v-alzhan-msft Profile Picture
    Microsoft Employee on at

    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.

  • psrikanth Profile Picture
    4 on at

    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
    Microsoft Employee on at

    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

    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
    Microsoft Employee on at

    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.

  • Srikanth- Profile Picture
    16 on at

    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?.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 809

#3
Haque Profile Picture

Haque 645

Last 30 days Overall leaderboard