Posts

Showing posts from January, 2018

How to: Solve issue when DVT script for service model MRApplicationService on machine XXX failed

Image
I was running binary update from LCS when my deployment failed. The step which failed had a description " DVT script for service model MRApplicationService on machine XXX failed" When I checked the log, It was showing "Financial Reporting DVTs ran with 2 failures". To resolve it, I just reset the DataMart and resumed the deployment from LCS which then completed successfully. Those who do not know how to reset DataMart, We have to run the following command in Windows PowerShell. cd J:\MROneBox\MRInstallDirectory\Server\MRDeploy Import-module .\MRDeploy.psd1 Reset-DatamartIntegration -Reason OTHER -ReasonDetail "DB Refresh" 1st line is to change the directory where MRDeploy.psd1 script exists. depending on the environment typologies  some other common places where it can be found is G:\MRApplicationService\MRInstallDirectory\Server\MRDeploy K:\MROneBox\MRInstallDirectory\Server\MRDeploy 2nd line is to import the Script 3rd line is for

How to : Make hard disk space available on D 365 VM

Image
When Binary update/platform update is being applied, often  we have seen that it fails after performing some steps. When we analyse it, often issue is "Insufficient hard disk space".  So what do we delete to make enough space (min 15GB recommended)? You can start with Temp folders but that wont be enough. Next you can delete the content of  "K:\MonAgentData\SingleAgent\Tables" You may not be able to delete all the files when they are open in Monitoring agent like below: In that case you will need to stop the MonAgentCore.exe service from Task manager. It is good practice to check/make the hard disk space available before you start any updates from LCS.

How to: Get ledger dimension from string in D 365 FOE

I came across a requirement where financial dimensions were coming in XML from integration and Account number was to be determined using business logic. I had to create a general journal from this integration. So situation is : Find the account number from business login in D 365. Get the financial dimensions from integration. Create a journal line from above info. Code to do above is as follows: DimensionDynamicAccount ledgerAccount; switch(<AccountType>) { case (LedgerJournalACType::Cust) : ledgerJournalTrans.AccountType = LedgerJournalACType::Cust; ledgerAccount = LedgerDynamicAccountHelper::getDynamicAccountFromAccountNumber(<AccountNum>, LedgerJournalACType::Cust); ledgerJournalTrans.LedgerDimension = ledgerAccount; break; case (LedgerJournalACType::Ledger) : ledgerJournalTrans.AccountType = LedgerJournalACType::Ledger; ledgerAccount = LedgerDefaultAccountHelper::getDefaultAccountFromMainAccountRecId(MainAccount::findByMainAccount