On-premises Archives - Monsieur Winner https://blog.monsieurwinner.com/category/on-premises/ MS D365FO || Monsieur D365FO Sun, 13 Oct 2024 23:39:23 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.2 https://i0.wp.com/blog.monsieurwinner.com/wp-content/uploads/2022/09/cropped-Winner-.png?fit=32%2C32&ssl=1 On-premises Archives - Monsieur Winner https://blog.monsieurwinner.com/category/on-premises/ 32 32 209261758 The group Dynamics365ReadServices is not present in the ACL of the service SqlServerReportingServices. https://blog.monsieurwinner.com/2024/10/13/the-group-dynamics365readservices-is-not-present-in-the-acl-of-the-service-sqlserverreportingservices/ https://blog.monsieurwinner.com/2024/10/13/the-group-dynamics365readservices-is-not-present-in-the-acl-of-the-service-sqlserverreportingservices/#respond Sun, 13 Oct 2024 23:39:23 +0000 https://blog.monsieurwinner.com/?p=758 While deploying an LBD (Local business data) commonly called D365 Finance and Operations on-premises, the Test config on the BI(SSRS)

The post The group Dynamics365ReadServices is not present in the ACL of the service SqlServerReportingServices. appeared first on Monsieur Winner.

]]>
While deploying an LBD (Local business data) commonly called D365 Finance and Operations on-premises, the Test config on the BI(SSRS) node gave the error.

The group Dynamics365ReadServices is not present in the ACL of the service SqlServerReportingServices.

 

Below the steps used in resolving it.

  1. Go to your BI node.
  2. Open lusrmgr.msc (Local Users and Groups).
  3. Create a new group called Dynamics365ReadServices.
  4. Add the account that your AOS runs under (such as axserviceuser, svc-AXSF$) to the group you created above.
  5. Download the latest infrastructure scripts from the Shared asset library in Lifecycle Services.
  6. Copy the infrastructure scripts to your BI (SSRS) node.
  7. Create a file scmgroups.csv with the following content.                                                                                                                                                                    “Name”                                                                                                                                                                                                                  “Dynamics365ReadServices”
  8. Run the following command in PowerShell with Administrator privileges.
    .\Set-ServiceControlManagerPermissions.ps1
  9. Run the following command in PowerShell with Administrator privileges to verify the setup.
    .\Set-ServiceControlManagerPermissions.ps1 -Test

 

 

The post The group Dynamics365ReadServices is not present in the ACL of the service SqlServerReportingServices. appeared first on Monsieur Winner.

]]>
https://blog.monsieurwinner.com/2024/10/13/the-group-dynamics365readservices-is-not-present-in-the-acl-of-the-service-sqlserverreportingservices/feed/ 0 758
Deploy SSRS report via powershell script – D365 Finance and Operations on premises https://blog.monsieurwinner.com/2024/10/13/deploy-ssrs-report-via-powershell-script-d365-finance-and-operations-on-premises/ https://blog.monsieurwinner.com/2024/10/13/deploy-ssrs-report-via-powershell-script-d365-finance-and-operations-on-premises/#respond Sun, 13 Oct 2024 09:55:24 +0000 https://blog.monsieurwinner.com/?p=753 While deploying a UAT or PROD environment from LCS for an On premises environment, series of scripts are ran and

The post Deploy SSRS report via powershell script – D365 Finance and Operations on premises appeared first on Monsieur Winner.

]]>
While deploying a UAT or PROD environment from LCS for an On premises environment, series of scripts are ran and executed to deploy different applications:  Common, reportinfservices, aos, financialreporting.

When the deployment fails, we should first of all check the service fabric explorer to identify the application where the failure happened.

This tells us the exact node of the cluster to further access for meaningful info.

In my case, the version of reporting services (2022 build 16.0.1116.12) used in deploying FinOps 10.0.40 did not work. I used a lower version 16.0.1115.61 .
After re-installation of the reportingservices, to manually deploy the report run the following script on the SSRS VM.
.\DeployAllReportsToSsrs.ps1 -PackageInstallLocation \\XXXAOSTEST1\C$\ProgramData\SF\XXXOSTEST1\Fabric\work\Applications\AXSFType_App9\AXSF.Code.1.0.20240725\Packages

 

The post Deploy SSRS report via powershell script – D365 Finance and Operations on premises appeared first on Monsieur Winner.

]]>
https://blog.monsieurwinner.com/2024/10/13/deploy-ssrs-report-via-powershell-script-d365-finance-and-operations-on-premises/feed/ 0 753
Cannot Login after database refresh dynamics 365 FO on Premise https://blog.monsieurwinner.com/2024/04/15/cannot-login-after-database-dynamics-365-fo-on-premise/ https://blog.monsieurwinner.com/2024/04/15/cannot-login-after-database-dynamics-365-fo-on-premise/#respond Mon, 15 Apr 2024 21:43:19 +0000 https://blog.monsieurwinner.com/?p=720 It is quite easy to do an SQL DB backup and restore. This happens often on a D365FO on-premises deployment

The post Cannot Login after database refresh dynamics 365 FO on Premise appeared first on Monsieur Winner.

]]>
It is quite easy to do an SQL DB backup and restore. This happens often on a D365FO on-premises deployment from Production to UAT.

It gets a bit funnier when after the restore I get the message :

D365FO : You are not authorized to login with your current credentials. You will be redirected to the login page in a few seconds.

Me: Do you realize I am an administrator ? In fact, I deployed this environment so I need access now !!!

Well, few things to do.

  • Run the Reset-DatabaseUsers.ps1 script in the infrastructure folder

.\Reset-DatabaseUsers.ps1 -DatabaseServer ‘<FQDN of the SQL server>’ -DatabaseName ‘<AX database name>’.

  • Update the networkdomain to the adfs federation service name https://fsn.contoso.com/adfs.
If you are still unable to login, then the just restored DB  did not probably Sync.
You can run a manual DB Sync on an AOS node with the following script.

A.

Go to the AXSFType directory :

cd C:\ProgramData\SF\PR-AOS-2\Fabric\work\Applications\AXSFType_App7\AXSF.Code.1.0.20240111\Packages\bin.\Microsoft.Dynamics.AX.Deployment.Setup.exe -bindir

B.

“C:\ProgramData\SF\pr-aos-2\Fabric\work\Applications\AXSFType_App7\AXSF.Code.1.0.20240111\Packages” -metadatadir “C:\ProgramData\SF\pr-aos-2\Fabric\work\Applications\AXSFType_App7\AXSF.Code.1.0.20240111\Packages” -sqluser “axdbadmin” -sqlserver “XXX” -sqldatabase “axdb” -setupmode “sync” -syncmode “fullall” -isazuresql “false” -sqlpwd “yourdbPass

Replace the portions in bold based on your environment.

Once DB Sync is completed successfully , Happy on-premising :D.

The post Cannot Login after database refresh dynamics 365 FO on Premise appeared first on Monsieur Winner.

]]>
https://blog.monsieurwinner.com/2024/04/15/cannot-login-after-database-dynamics-365-fo-on-premise/feed/ 0 720
Document failed to upload. Please try to upload the document again D365FO on premises https://blog.monsieurwinner.com/2024/04/08/document-failed-to-upload-please-try-to-upload-the-document-again-d365fo-on-premises/ https://blog.monsieurwinner.com/2024/04/08/document-failed-to-upload-please-try-to-upload-the-document-again-d365fo-on-premises/#respond Mon, 08 Apr 2024 08:18:35 +0000 https://blog.monsieurwinner.com/?p=715 After a fresh deployment of D365 FO on-premises, you might encounter the error “Bond Fair Value Report failed to upload.

The post Document failed to upload. Please try to upload the document again D365FO on premises appeared first on Monsieur Winner.

]]>
After a fresh deployment of D365 FO on-premises, you might encounter the error “Bond Fair Value Report failed to upload. Please try to upload the document again.” while attaching a file on all form.

 

This is because the “documents” folder in the file server is missing.

Go to aos-storage and create a new folder “documents” and you should be fine.

failed to upload. Please try to upload the document again D365FO on premises
failed to upload. Please try to upload the document again D365FO on premises

 

The post Document failed to upload. Please try to upload the document again D365FO on premises appeared first on Monsieur Winner.

]]>
https://blog.monsieurwinner.com/2024/04/08/document-failed-to-upload-please-try-to-upload-the-document-again-d365fo-on-premises/feed/ 0 715
Unable to get file endpoint, the network name cannot be found – D365FO on-premises https://blog.monsieurwinner.com/2024/03/29/unable-to-get-file-endpoint-the-network-name-cannot-be-found-d365fo-on-premises/ https://blog.monsieurwinner.com/2024/03/29/unable-to-get-file-endpoint-the-network-name-cannot-be-found-d365fo-on-premises/#respond Fri, 29 Mar 2024 17:07:10 +0000 https://blog.monsieurwinner.com/?p=710 D365 FO on premises installation.   This error occurs when the local agent tries to download the package from LCS.

The post Unable to get file endpoint, the network name cannot be found – D365FO on-premises appeared first on Monsieur Winner.

]]>
D365 FO on premises installation.

 

This error occurs when the local agent tries to download the package from LCS. This file is saved in the fileshare VM.

When the fileshareLocation  value is different what is specified in the localagent-config.json is different from FileShare path in ConfigTemplate.xml,

I am happy to tell you that you just successfully landed yourself a bonus error.

 

The post Unable to get file endpoint, the network name cannot be found – D365FO on-premises appeared first on Monsieur Winner.

]]>
https://blog.monsieurwinner.com/2024/03/29/unable-to-get-file-endpoint-the-network-name-cannot-be-found-d365fo-on-premises/feed/ 0 710
Restore a failed deployment to initial state on LCS : D365FO On-premises https://blog.monsieurwinner.com/2023/06/20/restore-a-failed-deployment-to-initial-state-on-lcs-d365fo-on-premises/ https://blog.monsieurwinner.com/2023/06/20/restore-a-failed-deployment-to-initial-state-on-lcs-d365fo-on-premises/#respond Tue, 20 Jun 2023 21:57:22 +0000 https://blog.monsieurwinner.com/?p=621 Dynamics d365FO on premises deployment is solely managed by the customer or client. The infrastructure is linked to LCS via

The post Restore a failed deployment to initial state on LCS : D365FO On-premises appeared first on Monsieur Winner.

]]>
Dynamics d365FO on premises deployment is solely managed by the customer or client. The infrastructure is linked to LCS via the local agent. During deployment of custom or Microsoft packages, there could be error that might stop the environment(URL) from being accessible. Rolling back should take the environment back to its initial state before the package deployment. In some cases, that is not the case, as rollback keeps failing 🙄. Finding the major reason for the failure sometimes can take a while.

 

Not to worry, while the reason of the failure is being found, we can rollback using sql scripts.

The deployment status is captured in a the OrchestratorData database. Let’s roll back with the following steps:

 

1. Get the recent successful deployment state.

select * from OrchestratorJob order by LastProcessedDateTime desc
select * from RunBookTask order by StartDateTime desc

In the RunBookTask table, we are looking at the executePostDeploymentScript state in the name field; pick the corresponding RunbookTaskId as shown in the screenshot above.

Also get the the corresponding JobId in the OrchestratorJob table.

2. Revert to the recent successful deployment state.

update OrchestratorJob set state = 1 where jobid = 'XXXXUSUAT-a28c1aae-e84e-490d-b9dd-a928be71a774';
update RunBookTask set state = 1, Retries = 1 where RunbookTaskId = 'XXXUSUAT-a28c1aae-e84e-490d-b9dd-a928be71a774-executePostDeploymentScript';

hhhh

Once completed, your environment status should be deployed on LCS.

The post Restore a failed deployment to initial state on LCS : D365FO On-premises appeared first on Monsieur Winner.

]]>
https://blog.monsieurwinner.com/2023/06/20/restore-a-failed-deployment-to-initial-state-on-lcs-d365fo-on-premises/feed/ 0 621