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 :
Dynamics 365 Community / Forums / Finance forum / defaultdashboard could...
Finance forum

defaultdashboard could not be opened

(0) ShareShare
ReportReport
Posted on by 155

Hello Everyone 

when we open D365 Finance and Operations through browser , then system through error 

The menu item with name defaultdashboard could not be opened

3515.1.PNG

Then we check blogs and found to resolve this error do  "build all model and synchronize database". So we completed build all model without any error but when we synchronize database we get 41 system error. So we decided synchronize database through powershell script. But when we run script shown below  by using powershell we got error which are also mentioned below :-

c:\> cd AOSService\WebRoot\Bin\Microsoft.Dynamics.AX.Deployment.Setup.exe-bindir"C:\AOSService\PackagesLocalDirectory"-metadatadir"C:\AOSSrvice\PackagesLocalDirectory"-sqluser"Administrator"-sqlserver"MININT-F36S5EH"-sql database"AXDB"-setupmode"sync"-syncmode"fullall"-isazuresql"false"-sqlpwd""

My Sql Sever Name is :-   MININT-F36S5EH

Sql User :- Administrator

Sql Databse Name is :- AXDB

i dont know how we check bindir and metadatadir path

sqlpwd is null :because when we open sql server management studio with run as administrator they dont require password 

but when we run these script system through error and the error is 2134.Untitled.png

Error is A positional parameter cannot be found that accepts arguments  'databaseAXDB-setupmodesync-syncmodefullall-isazuresqlfalse-sqlpwd

  • Suggested answer
    nmaenpaa Profile Picture
    101,174 Moderator on at

    You need to add spaces in your command between the parameters. You can't just put everything in one string and expect the system to understand it.

    The SQL admin password in the downloaded dev VM is AOSWebSite@123. Your command has also other typos like in the AOSService directory, and you should use axdbadmin user, not Administrator.

    The correct command would be :

    C:\AOSService\WebRoot\Bin\Microsoft.Dynamics.AX.Deployment.Setup.exe -bindir "C:\AOSService\PackagesLocalDirectory" -metadatadir "C:\AOSService\PackagesLocalDirectory" -sqluser axdbadmin -sqlserver localhost -sqldatabase AxDB -setupmode sync -syncmode fullall -isazuresql false -sqlpwd AOSWebSite@123

    
    

    But if you get sync errors from Visual Studio, you will have similar result from command line. You need to understand what the errors are and fix them.

  • Jie G Profile Picture
    Microsoft Employee on at

    Hi Mayur Saini,

    All module are built without errors, then this error may be caused by a runtime error. You may try to open a solution in D365FO, start the debugger and attach to process (w3wp.exe or iisexpress.exe depending on your environment), and then try to open D365FO again. VS will then show you where the exception was thrown.

  • Mayur Saini Profile Picture
    155 on at

    thanks for reply i tried synchronized database by using your provided command but again system through error

  • Suggested answer
    nmaenpaa Profile Picture
    101,174 Moderator on at

    Like I said earlier, if you have sync errors it will not matter if you sync from VS or from command line. Why do you think that would make a difference?

    You need to resolve those issues. If you need help, I suggest you start by sharing information about the errors. And also your situation in general. Since when did you have these errors? Did you perhaps copy database from another environment? Or have you made some changes in your metadata that is in conflict with the current data (such as adding unique indexes that can't be synced with current data composition)?

  • Mayur Saini Profile Picture
    155 on at

    Thanks but we also try these solution but i am not able to debug where the system through error. Can you shortly describe me how we can attach to process and how we can start debugging

  • Suggested answer
    nmaenpaa Profile Picture
    101,174 Moderator on at

    1. Open Visual Studio

    2. Open a D365FO Solution

    3. Go to menu Debug - Attach to process. Select process w3wp.exe

    4. Start D365FO in browser

    5. VS should now show you where it fails

    But we already know you have sync errors so that explains the behavior of the system. So I would concentrate on trying to fix them.

  • Mayur Saini Profile Picture
    155 on at

    20323.Untitled.pngbut generally error represent  syntax are not proper according to my knowledge  there is some mistake in command that's error represent. For your understanding we also attach snapshot

  • Suggested answer
    nmaenpaa Profile Picture
    101,174 Moderator on at

    You are still not using the command that I provided.

    Your command begins "cd AOSService..." which means you are sending a command to change the current working directory. And for sure the "cd" command doesn't have parameter called -bindir.

    You need to call "C:\AOSService...". But this is irrelevant, just sync from Visual Studio so that we can start dealing with the actual issues.

    If you still have issues with the syntax and you insist on using the command line, please refer to Microsoft's documentation: docs.microsoft.com/.../copy-database-from-sql-server-to-azure-sql . In that article there is chapter called Synchronize database and in it you will see an example on how to do it.

  • Mayur Saini Profile Picture
    155 on at

    thanks  for reply i will try sync db through VS if any error occurred i will share you

  • Mayur Saini Profile Picture
    155 on at

    6518.Untitled1.png

    6518.Untitled1.png

    We got 41 error when we sync database through VS

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans