Showing posts with label QuickFix. Show all posts
Showing posts with label QuickFix. Show all posts

January 13, 2024

QuickFix: Stop script for service model: AOSService on machine:

If you are getting errors while upgrading your tier-1 environment, trust me you are not alone, many of us facing this error say, 

Error 1: 
Stop script for service model: AOSService on machine







If you remember this is the same issue we had with the earlier version, and to fix this you have to update the VC++ runtime. You can download this from the below link and run it on our tier-1 environment (s).



Error 2:
GlobalUpdate script for service model: RetailServer on machine:(VM Name)


Let's understand why, (Or let's see what the fix is :) )

Whenever you Apply any update from LCS, it will create a package on VM local disk normally at the below location 
ServiceVolume\DeployablePackages  and you have to select the most recent folder (in case you already tried a few times with this error).

Navigate to RetailServer\Scripts and find the file name 'DropAllRetialChannelDbObjects'. 
Here is the entire path in case you need it (ServiceVolume\DeployablePackages\RetailServer\Scripts\DropAllRetialChannelDbObjects), run this SQL query on AXDB on VM and try again to apply the update. 

Tip: This SQL script sometimes takes hours and hours to finish, you can try to stop this execution and select one query at a time from the script. 


-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta

September 15, 2023

QuickFix: Company doesn't exit error on report


In my case it was an issue with the wrong extends of the contract class (of course this happened because of poor copy-paste skills :) ) Check the contract class if you have extended with the SrsReportRdlDataContract class, instead of this you need to add DataContractAttribute on top, that it.




-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta

August 22, 2023

QuickFix: Error while build SSRS report

Error Message:





Severity Code Description Project File Line Suppression State
Error Path: [AxReport/<ReportName>]:"An unhandled exception was thrown while validating <ReportName>with callstack System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)
   at Microsoft.Dynamics.AX.Metadata.Extensions.Reports.AxReportDataSetParameterExtensions.GetAssociatedReportParameter(AxReportDataSetParameter datasetParameter, AxReport report)
   at Microsoft.Dynamics.AX.Metadata.Validation.DataSetParameterConstraint.Validate(ModelValidationContext context, AxReportDataSetParameter element)
   at Microsoft.Dynamics.AX.Metadata.Validation.AxReportValidator.ValidateDataSets(AxReport report, ModelValidationContext validationContext)
   at Microsoft.Dynamics.AX.Metadata.Validation.AxReportValidator.DoValidate(AxReport report, Uri uri, IMetadataProvider metadataProvider, IDiagnosticSink diagnostics)
   at Microsoft.Dynamics.AX.Metadata.Validation.ValidatorBase`1.StartValidation(T objectToValidate, Uri uri, IMetadataProvider metadataProvider, IDiagnosticSink diagnostics)."


Fix: Sorry to say in this way, but simply create a completely new report and copy the design from the current to the new report, this should work.


-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta

July 31, 2023

[Solved] Unable to find a feature in 'Feature management' workspace

If you are struggling to find a required feature in the 'Feature management' workspace, simply click on 'Check for updates' and most hopefully the feature you are looking for will start appearing in the list. 




-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta

July 10, 2023

QuickFix: Golden config database promotion to UAT

Hi Folks, 

If you are reading this post, I would assume you already followed Microsoft docs on the same topic but are unable to follow all the steps as it says. 

Here is the MS doc URL, 


There is a wrong command example that asks you to navigate to the SQL folder as below (Export the database from SQL Server)




Actual the path for SWL is wrong, the correct path should be as below, 

C:\Program Files\Microsoft SQL Server\160\DAC\bin

I have raised this with Microsoft and hopefully, this will be fixed soon. 

Cheers


-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta

March 04, 2023

QuickFix: Set default browser in Visual studio for debugging

Introduction:
In the realm of Dynamics 365 development, encountering issues when debugging and finding that Visual Studio opens objects in Internet Explorer (IE) can be quite frustrating. Although Microsoft no longer officially supports IE, this peculiar behavior persists. Fortunately, there is a simple solution: changing the default browser within Visual Studio. In this blog post, we will guide you through the steps to configure your preferred browser, such as Chrome, for seamless debugging in Dynamics 365.

Step 1: Navigating to Visual Studio Extension
To begin, open Visual Studio and access the "Extensions" menu.

Step 2: Dynamics 365 Extension Options
Within the "Extensions" menu, locate and select the "Dynamics 365" extension. This will open the options panel specific to Dynamics 365 development.

Step 3: Debugging Configuration
Within the Dynamics 365 extension options, find and select the "Debugging" section.

Step 4: Modifying Default Browser
In the Debugging section, you will find the option to modify the default browser used for object debugging.

Step 5: Set Preferred Browser
Choose your preferred browser, such as Chrome or any other compatible browser, as the default option for object debugging.



Conclusion:
By following these simple steps, you can easily resolve the issue of Visual Studio opening objects in Internet Explorer during debugging sessions in Dynamics 365. Take control of your debugging experience and choose a browser that aligns with your preferences and development requirements.

Happy debugging and seamless development!

#VisualStudio #Dynamics365 #Debugging #Development #BrowserConfiguration

-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta

December 22, 2022

QuickFix: How to check component of a deployable package

Wondered how to check the components of a deployable package on LCS? 

If you are not sure about a deployable package component and what models/packages it may contain, you can get these details on LCS where it might store on AssetLibrary without even downloading and extracting. 

Try this: Navigate to LCS > Your project> Asset Library > Software deployable package and select a package for which you want to get more details, scroll right and you will see the option "Show component details", click on this and it will show you all the Packages it contains. 






If you scroll further down in the right pane area, you will get more details about the package like its compatibility with earlier versions, package ID, build, version, publisher, etc. 


-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta

December 08, 2022

QuickFix: Visual studio run as admin by default

Hi Folks, 

If you just rolled out a new DEV VM and using VS for first time OR even you are using any VM for development, you must aware that Visual studio should run as admin to use for development. You may not be able to do all the things without Admin run. 

Now here I am sharing a quick tip to run VS as admin by default.
1. Click on window icon and search 'devenv'
























2. Right click on this and 'Open file location'
3. Copy shortcut from here and paste on desktop.
4. Now you got this shortcut on your desktop, right click on this and click property > Advance
5. Here select 'Run as administrator'' check box. and click on ok/apply. 



















That's it. Now the desktop shortcut will always run as admin. 


-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta

July 22, 2021

QuickFix: Delete command button doesn't work as expected

Scenario: I've created a form with multiple data sources, one of the tab pages needs its own new, delete button. (Can not use design property). When adding command buttons for New and delete, New works fine but delete doesn't. 

Possible reason: There is a lot of commands which start with Delete, and probably you have chosen the 'Delete' command, while you need to choose 'Delete record' as this button spouse to delete a record (or multiple records). Try this.

-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta

April 14, 2021

Quick Fix: Batch service didn't start Error 1064

Error message: Windows could not start Microsoft Dynamics 365 Unified operations: Batch management Service service on Local Computer. 

Error 1064: An exception occurred in the service when handling the control request.





Solution: Check if the system is under maintenance mode, if yes disable the same and try again.

-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta

October 05, 2020

QuickFix -15:[Solved] Error The data value violates integrity constraints.

Getting below error while importing a file using the Data management framework. 

Issue: 

"The data value violates integrity constraints"

Possible solution: 

Check two things primarily. 

1. If any mandatory fields are blank in file

2. Set if a unique filed contain duplicate values in file.


-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta

September 04, 2020

QuickFix -14:[Solved] Error "error occurred while doing bulk copy from temp table to entity table"

While importing a file using Data entity getting below error, 

 Error message:

"Error occurred while doing bulk copy from temptable to entity table- '0' '<Entity Name>' record(s) inserted in staging"

Solution

Normally this error comes when there are issues with data. Check your input file look for field values that are part of the primary key. There must be some duplicate value where the system is throwing the above error. 

-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta

July 10, 2020

QuickFix -13:[Solved] Error "labelc.exe exited with code -1"

Error message:

warning RG0000: Duplicate resource key!  Name was: "<labelId>"1 warnings(s). 

labelc.exe exited with code -1.

Possible reason:     

This error comes when there are duplicate rows in your label file. There are two or more rows with the same labelId.


Solution: 

Check your respective label file with <LabelId> , there must be some duplicate records and remove one duplicate row there. 

 

-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta

June 01, 2020

QuickFix -12: 'Open with logic app designer' missing in Visual studio

Recently I installed VS2019 professional on a new machine and while developing Logic Apps through ARM I can not see the option to open my JSON file in logic app designer. 



To overcome this issue, download another addins "Azure Logic Apps Tools for Visual Studio 2019"

























-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta

January 27, 2020

QuickFix-10: Dynamics365FO-AppChecker

The Dynamics Application checker is a set of technologies that allow developers to gain insight into their application code (i.e. source and metadata) in ways that have not been possible before. The technology is based on representing both source code and metadata in XML and providing rich search facilities by using the XQuery language to express declarative queries over the source code. The current implementation runs inside a BaseX repository running locally on the developer's box.
You can find more information about

  1. Installing BaseX here
  2. Github respo: https://github.com/microsoft/Dynamics365FO-AppChecker
  3. BaseX official site: www.basex.org

-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta

December 21, 2019

QuickFix-9: Dynamics 365 Talent: Attract and Dynamics 365 Talent

Dynamics 365 Talent is now Dynamics 365 Human Resources

New updates are on the way for D365 Talent, checkout below links

Building a more successful workforce with Dynamics 365 Human Resources

Announcing changes to Dynamics 365 Talent

-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta

August 23, 2019

QuickFix-7: Feature management in D365FO

Feature management OR Flighting is a new concept introduced by Microsoft from D365FO version 10.0 that allows turning on new features, which are delivered but not activated by default.
Some of these “hidden” new functionalities are: 
  1. ·        Client alert notifications by email
  2. ·        Manage access to network printers across legal entities
  3. ·        Business events
Check these links for more details





-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta


August 01, 2019

QuickFix-6: How to check if code is running on batch server

If you want to check if the code is running either on the batch or locally, call below method.

1. For sysOperation framework: this.isExecutingInBatch().
2. RunBase batch: this.isInBatch()

both methods will return a boolean.

-Harry Follow us on Facebook to keep in rhythm with us. https:fb.com/theaxapta