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

Notifications

Announcements

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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard