Thursday, February 20, 2020

LCS error An error has occurred. Please try again later. If the issue persists, please contact support with this Id: 859f43e3

I recently opened LCS and got following error when I clicked one of my D365FO environments:
"An error has occurred. Please try again later. If the issue persists, please contact support with this Id: 859f43e3-9f0b-44e3-b415-803d3dff998d"




There's nothing to worry about. This issue is from Microsoft side, just try again after some time (like half an hour or an hour); the error will be gone by itself. In case there's some urgent deployment going on do raise a ticket with Microsoft.


Wednesday, February 19, 2020

D365FO Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))

While opening a table browser you may get this error sometimes saying,

"Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))"

Even if you build the model is doesn't work.

Solution:

1- Close Visual studio
2- Open your solution and build
3- Try opening again

Remember you can always directly open table browser from you browser through link. For example, you can open custtable with following link in you development environment.



in above link if you change name of custtable to any table it will open.

Thanks!

Wednesday, January 1, 2020

D365FO new custom module not showing

Problems Statement:

I had been able to create new modules by creating 'Menu' element, creating extension of 'MainMenu' menu and then referencing my custom menu there. I had deployed a new development VM with Product version Finance and Operations (10.0.5) and platform version 29, which was latest available till date (1st January 2020). I developed a new Menu the same way I used to do but it's not showing in Modules panel in left side. I built all the models and run db sync, still the problem exist.


Solution:

On my visual studio I set a display menuitem from that module as a startup project and ran with F5. It forced the module to show up.


References:
I asked this question on community when I faced the issue first.

https://community.dynamics.com/365/financeandoperations/f/dynamics-365-for-finance-and-operations-forum/376309/d365fo-new-custom-module-not-showing-in-update-29/998061#998061


Tuesday, December 31, 2019

D365FO new vertical/ product development

When you complete your brainstorming and designing of new vertical or product in Dynamics 365 for Finance and Operations, the next phase is development. You cannot directly jump on Visual Studio and start coding, there are many steps that you need to do, here are some of them:

  1. Create Azure DevOps project
    Azure DevOps is the new name of previously know TFS (Team Foundation Server). It's basically code repository service with advanced versioning features. I personally prefer Azure DevOps to GitHub, but for D365FO you cannot make your project on GitHub even if it's your favorite. You need to create a project for your product in Azure DevOps; It's free for upto 5 users.
  2. Specify VMs
    In D365FO, like other good renowned software, you need to have different VMs for different purposes. The most needed ones in initial phases are one development VM per developer, one code merge VM (build VM) and one test VM. You may also use your build VM for testing purposes.
  3. Build the Models
    Till this step you may already have a model diagram with you on paper, Microsoft Visio and any other tool. You may also look in this article of how I drew mine,
    https://microsoftdynamix.blogspot.com/2019/12/d365fo-new-vertical-product-architecture.html

    Model is technical classification of elements in your product. All the developments or extensions will be done inside these models.
  4. Start coding
    Now you can connect your Azure DevOps with your Development VM and start coding. Remember to go through Microsoft best practice documents in every blog they share, they help a lot in keeping the product up to date and in high performance.
Best of luck. Thank you!

Monday, December 30, 2019

D365FO new vertical/ product architecture

Hi,

It's common for ISVs to launch their products based on Dynamics 365 for Finance and Operations. Internally they call those products 'Verticals'. There are different stack holders indulged in this process from brainstorming of features till the testing and launching the product. In this blog, I will describe the process of designing the new product in technical perspective. We assume that brainstorming of the product has already been completed. The following steps are most important in this phase as I faced:

  1. Identify elements
    The first step after brainstorming is identifying as much elements as you. By elements I mean anything you can count as user, screen, process or even condition.
  2. UML diagram (Unit)
    Draw UML diagram of each user separately. Try to think as much deep as you can to cater corner cases. I believe that though brainstorming is done while deciding the features, it is a never ending process which shall keep going on till the final steps or even the product is launched to bring improvements in the product. Likewise, drawing drawing UML diagram for each user separately will make your mind think centrally in that perspective and identify processes in its perspective. The diagram below is an example.
  3. Complete UML diagram (Module diagram)
    Now connect those unit diagrams, it is a good idea to draw them on paper with pencil so you can rectify them easily. Module diagram will represent your product in business perspective. It will show the flow and dependency of objects on each other. The diagram below is an example.
  4. Model diagram
    Model is the technical classification of elements. Once every element is identified in Module diagram, you need to look how you can divide them with respect to development. In D365FO it is not good idea to put all your element in one cumbersome model. It is Microsoft best practice to make relevant models. The diagram below is an example.

Thank you!

Thursday, October 17, 2019

D365FO LCS The authentication process was not successful. Please contact your system administrator.

While connecting to create a repository The authentication process was not successful. Please contact your system administrator.



Even if try to add new repository it will give error, like in following screenshots.

                         

                        
                       

                       



You can solve it with following steps:



  1. Remove affected tokens
    The database may have affected key you need to take backup of data of this table and delete the records with following query.





  2. Add new repository
    Now you can add new repository without error

        

         

 it will take you to login page where you will give login Id and password, or will directly sign you in if you are already signed in.

         


Hope it solves your problem. You may comment your problem as well. I faced some other issues as well which I solved but forgot to take screenshots.






Thursday, September 19, 2019

D365FO Failed to generate the user token for Dynamics Lifecycle services on behalf on user {*}. Please contact your system administrator.


While trying to connect to LCS for creating repository I got following errors:

Failed to generate the user token for Dynamics Lifecycle services on behalf on user {4E41*******38B}. Please contact your system administrator.


Even if try to add new repository it will give error, like in following screenshots.

                         

                        
                       

                       



You can solve it with following steps:



  1. Remove affected tokens
    The database may have affected key you need to take backup of data of this table and delete the records with following query.





  2. Add new repository
    Now you can add new repository without error

        

         

 it will take you to login page where you will give login Id and password, or will directly sign you in if you are already signed in.

         

Hope it solves your problem. You may comment your problem as well. I faced some other issues as well which I solved but forgot to take screenshots. Thanks.