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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

the remote server returned an error (401) unauthorized error

(4) ShareShare
ReportReport
Posted on by 18
Hi ,
 
I am getting error: the remote server returned an error (401) unauthorized on opening any project in d365 Fo from ProjProjectList form, perfomed full build and sync , restarted services and system also, having sys admin admin and project manager as well.
Let me know how to resolve it.
Thanks!
Categories:
I have the same question (1)
  • Martin Dráb Profile Picture
    239,029 Most Valuable Professional on at
    Moved from Integration, Dataverse, and general topics forum to Finance | Project Operations, Human Resources, AX, GP, SL forum.
     
    Are you saying that you can open any form in F&O without a problem but ProjProjectList throws this error?
     
    You mentioned it's a development environment - what did you find when you debugged it? What's the stack trace of the exception?
  • Sagar121 Profile Picture
    1,160 Super User 2026 Season 1 on at
    Hi, Please confirm if this happens for all forms of just the one you mentioned. Please share the call stack.
  • CU19060946-0 Profile Picture
    18 on at
    I m getting the error only when opening ProjProjectLIst form. 
    Also I debugger the code that and found that there is method getContainerfromCache in projectoperationDWhelper class under this result value is getting null due to which method getaccesstoken is not not able to generate token and returning null value for token.I m attaching both the method.
    Please let me know the resolution.
     
  • Suggested answer
    DAnny3211 Profile Picture
    11,417 Super User 2026 Season 1 on at

    Hi CU1900045G,

     

    The 401 Unauthorized error you're encountering when opening projects from the ProjProjectList form in Dynamics 365 Finance and Operations (D365 FO) typically indicates an authentication or permission issue, even if the user has system admin rights.

     

    Here are some steps to help resolve it:

     

    ✅ Troubleshooting Checklist

     

    1. Verify Azure AD Token Expiry

      If you're using Azure AD authentication, ensure the token hasn't expired or been invalidated. Try logging out and back in, or clearing browser cache and cookies.


    2. Check User Roles and Security

      Even with System Administrator and Project Manager roles, confirm that the user has access to the specific project data or related entities. Sometimes custom security roles or data policies restrict access.


    3. Inspect Service Principal or App Registration

      If you're accessing D365 FO via an integration or custom app, ensure the App Registration in Azure AD has the correct API permissions and that the service principal is properly configured.


    4. Review IIS and AOS Logs

      Check the IIS logs and Application Object Server (AOS) logs for more detailed error messages. These may reveal missing headers, invalid tokens, or blocked endpoints.


    5. Check for Customizations

      If the ProjProjectList form or related workflows have been customized, ensure those changes aren’t introducing security filters or broken references.


    6. Try a Different User or Browser

      Test with another user account or browser to rule out session-specific issues.



    7.  
     

    If the issue persists, enabling tracing or telemetry may help pinpoint the exact cause.

     

    Thanks and best regards,

    Daniele

    Note: This response was prepared with support from Copilot to ensure clarity and completeness.

  • Sohaib Cheema Profile Picture
    49,677 Super User 2026 Season 1 on at
    Could you open the Dynamics 365 Project Operations (CE)?
    Do you have access to the projects in the CE/Project operations?
     

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

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 617

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 298 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans