Quantcast
Channel: Microsoft Dynamics NAV
Viewing all 64865 articles
Browse latest View live

Forum Post: RE: Can not post the sales order due to the sales tax amount different


Forum Post: RE: Create salesOrder using web service

$
0
0
Yes, it should return you number of created document and it's details . Check in NAV that new order appear.

Forum Post: RE: Wanna fetch Start Date and End Date from Sale price Table

$
0
0
The code seems to be correct. Do you have Sales Price for the Item for the combination?

Blog Post: Let's talk about Shared Fixture and how to profit from this with the Dynamics NAV Test Toolkit

$
0
0
It's been a while that I wrote on NAV and automated tests. In the meanwhile I have been teaching a lot all over Europe, and, yes, advocating test automation in NAV. And what did you do since my last post How-to: Run Standard Tests against Your Code ? Did you dare and try? And did you also have the time/guts to continue with it? I know some that did. In the same meanwhile I succeeded to get MS listen and implement a major request I had posed already some time ago. We'll get to that below as it relates to the topic I would like to talk about here: Test Fixture. If you have been testing software, and probably you do, being in my audience, you know that a major part of your testing effort is getting data prepared to allow you to execute your tests. Having been a tester I dare to claim it is THE major part. Test Fixture is the general term for the setup up your system before you execute your test(s), be it software or hardware. With respect to NAV test automation I have adopted the three level approach Bas Graaf used in his NAV Tech Days presentation ages ago, which he based on xUnit Patterns : Prebuilt Fixture Lazy Setup or Shared Fixture Fresh Setup or Fresh Fixture Applying this to NAV: Prebuilt Fixture is the database we will run our tests on. Typically for the standard Test Toolkit this is CRONUS, containing all sorts of preset data. Lazy Setup or Shared Fixture is the data created at the start of a related number of tests. For those who haven looking into these, this is what the Initialize function takes care of in each test codeunit, and typically is about master, supplemental and setup data. Fresh Setup or Fresh Fixture is data created for a specific test only. So this is data added to the shared fixture needed to execute a specific test. This often entails transactional data and custom master data. When I started the project to get the Dynamics NAV Test Toolkit I had run it on our code as per How-to: Run Standard Tests against Your Code , giving this result: 23 % percent of a total of 16.124 NAV 2016 tests where successful. Using a statistical approach, tackling the most occurring issues first, I could raise this to 72 % in less than a week. And mainly by focusing on the lazy setup : Now how did I achieve this code wise? By creating one generic Initialize function of our own: Initialize() IF NOT IsInitialized THEN BEGIN IsInitialized := TRUE ; N4LibraryLabel.CreateLabels; N4LibrarySetup.CreateTNTSetups; N4LibrarySetup.SetCompanyInformation; N4LibrarySetup.SetWarehouseSetup; N4LibrarySetup.SetInventorySetup; N4LibraryERM.CreateVATPostingSetups; N4LibraryERM.UpdateVATProdPostingGroups; N4LibrarySetup.SetPurchaseSetup; N4LibrarySetup.CreateSalesSetups; N4LibrarySetup.CreateVDESetups; N4LibrarySetup.CreateOWSSetups; N4LibrarySetup.CreateOWSCommunicationSetups; N4LibrarySetup.CreateCBSetups; N4LibrarySetup.CreateOWSNumbersSetups; N4LibrarySetup.CreateMultiple3SNoSeries; N4LibrarySetup.CreateTransactionModes; N4LibrarySetup.CreateMultiplePaymentTerms; N4LibrarySetup.CreateTermPeriodDefinitions; N4LibrarySetup.CreateOWSSelections; N4LibrarySetup.CreateReqWorksheetTemplates; N4LibrarySetup.CreateDeliverabilityCodes; N4LibrarySetup.UpdateItems; END ; ... that I hooked into the local Initialize function of each test codeunits, like in the following example in COD134126 (ERM Reversal VAT Entries): LOCAL Initialize() LibrarySetupStorage.Restore; IF IsInitialized THEN EXIT ; // >> LibraryERMCountryData.CreateVATData; LibraryERMCountryData.UpdateGeneralLedgerSetup; LibraryERMCountryData.UpdateGeneralPostingSetup; LibraryERMCountryData.UpdateVATPostingSetup; IsInitialized := TRUE ; COMMIT; LibrarySetupStorage.Save(DATABASE::"General Ledger Setup"); What the h*ck, lazy setup ? Sho-go-nai as the Japanese say, as I learned form Mark Brummel: Nothing can be done about it. Yes, I had to modify 480 test codeunits (of the total of 628) to get this working! And I told MS that I had to. This could have been prevented by a better design of there Initialize function from the start. And yessss, MS listened and now with NAV 2018 CU3 a redesign has been implemented in the first 100 test codeunits: LOCAL Initialize() // >> LibraryVariableStorage.Clear; LibrarySetupStorage.Restore; IF isInitialized THEN EXIT ; // >> LibraryERMCountryData.CreateVATData; LibraryERMCountryData.UpdateAccountInCustomerPostingGroup; LibraryERMCountryData.UpdateGeneralLedgerSetup; LibraryERMCountryData.UpdateGeneralPostingSetup; ModifyGenJnlBatchNoSeries; isInitialized := TRUE ; COMMIT; LibrarySetupStorage.Save(DATABASE::"General Ledger Setup"); // >> where LibraryTestInitialize is COD132250 (Library - Test Initialize) contain these three event publisher to which we now can subscribe: [External] [IntegrationEvent] OnTestInitialize(CallerCodeunitID : Integer) [External] [IntegrationEvent] OnBeforeTestSuiteInitialize(CallerCodeunitID : Integer) [External] [IntegrationEvent] OnAfterTestSuiteInitialize(CallerCodeunitID : Integer) So getting your lazy setup done on standard tests is a no-brainer. Another threshold taken to get test automation going.

Blog Post: Getting prepared for the Microsoft Dynamics 365 Business Central subscription eruption

$
0
0
Microsoft Dynamics 365 Business Central launched last week at Directions Asia in Bangkok. As promised in the autumn of 2017, Microsoft will be delivering ‘full fat' NAV in the cloud from 2 nd April. All the talk I've seen since focused on the name (I think it's good, a lot better than the previous efforts and I'm not nostalgic for keeping old names), product (pretty much what I described in my What is Tenerife article except the new interface which was under NDA) or the availability (we get it in the UK so I'm happy, my condolences to those whose countries weren't included but look for W1 in July). But there has not been m... read more

Blog Post: NAV on Docker: running it on an Azure Container Instance

$
0
0
A container image is a lightweight, stand-alone, executable package of a piece of software that includes everything needed to run it: code, runtime, system tools, system libraries, settings. I was a container user from some years, mainly for developing .NET applications for the cloud or on cross-platform environments. I remember also that some years ago I’ve shared a document full of requests for the NAV product team and one of these was a question in order to know if a project regarding having NAV on containers was in plan for the future or not. After that, a day a man called Freddy Kristiansen comes out with the light: “we have NAV on Docker!” Personally, actually I’m using a lot NAV on Docker containers mainly for development and demo purposes. In few minutes, you’re able to have a fully working NAV environment that runs on an isolated environment on your local system ready to go, with the NAV version (and cumulative update) you want. And you can have as many containers as you want (or as your system’s resources permits). I’ve received questions regarding running NAV on Docker on Azure and the answer is yes, you can run the actually available NAV containers also on Azure. The easiest solution is a service called Azure Container Instances . Azure Container Instances makes it easy to create and manage Docker containers in Azure, without having to provision virtual machines or adopt a higher-level service. An Azure Container Instance is a single container that starts in seconds and is billed by the second you use it. The steps are really easy. From your Azure Portal, if you’ve not yet created, create a Resource Group for your container (I recommend to create one for every instace you want to run). Then, select Azure Container Instances and click Create : Now, set your container name (unique for Azure Region), set the Container Image to one of the available Docker container images and set the Resource Group and the Location : Set OS type (be careful here that the default is set to Linux, you’ve to change it to Windows ) and the resources (CPU cores and RAM, and IP address) for your container and click OK: A validation will be performed and if all is ok you’re ready to deploy your NAV container to an Azure Container Instance: After some minutes (pulling and extracting the image takes some time), your NAV container will be provisioned on Azure Container Instance and you can see it’s status and IP address directly from the Azure Portal. To access NAV, just open the browser and navigate to http:// /nav . You can also immediately create a NAV Container on Azure Container Instances via the Azure CLI (and this is what I prefer because it’s the quickest way to bypass all the steps previously described).   From Azure Portal, launch the Cloud Shell (CLI) from the toolbar: Create the Resource Group: az group create --name myNAVRG --location WestEurope After that, you can use the az container create command to create your NAV container based on the Docker image you want: az container create - g myNAVRG - n NAV2018CU3IT -- image microsoft / dynamics - nav : 2018 - cu3 - it -- os - type Windows -- cpu 2 -- memory 4 -- ip - address public - e ACCEPT_EULA = Y USESSL = N ClickOnce = Y publicDnsName =NAV2018CU3IT . westeurope . azurecontainer . io -- dns - name - label NAV2018CU3IT -- ports 80 7046 8080 This command creates a NAV container based on the NAV 2018 CU3 Italian image using 2 core and 4 GB of RAM. The  --dns-name-label  value must be unique within the Azure region you create the instance. User and Password for connection to your just deployed container can be found on the log by using this command: az container logs --resource-group myNAVRG --name NAV2018CU3IT You can have a list of all your available containers on Azure Container Instance (for a Resource Group) with the following command: az container list --resource-group myNAVRG  --output table To delete the previously created container, execute the following command: az container delete --resource-group myNAVRG --name NAV2018CU3IT As you can see, easy and very very productive…

Blog Post: Visual planning boards highlight service order scheduling with NAV

$
0
0
“A picture is worth a thousand words” - this statement can by all means be applied to our graphical planning board add-ins that are the perfect choice when it comes to convincing potential customers of the added value of the ERP system in the pre-sales stage. They are intuitive-to-use, help making planning and resource data transparent, illustrate dependencies and allow a much more agile scheduling. This blog post specifically aims at Microsoft Dynamics NAV partners and takes the Visual Service Scheduler as example for illustrating 4 important reasons why and how the graphical planning boards help to actively support the sales consultation and to underline the value of Microsoft Dynamics NAV.

Forum Post: Received and Invoiced Purchase Order not being deleted

$
0
0
Hi all, I'm having an issue where completely received and invoiced PO are still showing up in Purchase Order. Its seem to only happen on some PO while most are deleted on the final Invoice. This mean that trying to filter PO on "Completely Receive" and "Not Invoiced", give me PO that, well, are completely receive and invoiced. Here's a screenshot of one: You can see it is fully Received and Invoiced, yet was not deleted. Thank you.

Forum Post: RE: Create salesOrder using web service

$
0
0
Hi Andrey, No, new order isn't appeard in NAV in postman am getting wsdl as response with 200 status code

Forum Post: Microsoft Dynamics NAV Licensing

$
0
0
Could anyone help me to understand MIcrosoft Dynamics NAV licensing? I am trying to understand that can we use our Microsoft Dynamics NAV developer license to customize our client Dynamics NAV system as support after implementation.

Forum Post: How to invoke-navcodunit with navuserpassword

$
0
0
Hi I am using powershell to run a few navcodeunits but I am getting credential errors because my environment has been setup with navuserpassword authentication. Is there a way to handle this without switching to windows credientials. Here is the error: Invoke-NAVCodeunit NAV -CodeunitId 37044411 -MethodName rdSetupWarehouseEmployeesForAllLocationsWithDefaultLocationFromPowershell -Argument "TESTFORLONGNAME,Detroit" Invoke-NAVCodeunit : The server has rejected the client credentials. + CategoryInfo : NotSpecified: (0:Int32) [Invoke-NAVCodeunit], FaultException`1 + FullyQualifiedErrorId : MicrosoftDynamicsNavServer$NAV,Microsoft.Dynamics.Nav.Management.Cmdlets.InvokeNavCodeunit

Forum Post: RE: Received and Invoiced Purchase Order not being deleted

$
0
0
If you've Invoiced PO from an Invoice Document with "Get receipt" Function, the order isn't deleted: you've to run Report Delete Invoiced Purchse Orders

Blog Post: Microsoft Dynamics 365 Business Central: Advanced Reporting and Budgeting

$
0
0
This article focuses on the launch of Dynamics 365 Business Central and how to enable decision making for managers and executives I used to spend more than 70,000 hours helping organizations achieve success with ERP/CPM/CRM solutions, on a cloudy autumn day in 1982, my second year into my accounting degree, I experienced the birth of the first generation CPM tool. On that day, before me was VisiCalc spreadsheet software on an Apple II Plus. The President of Videx, Paul Davis, was telling me how this technology was enabling his startup that created a circuit board to expand Apple II’s 40 column screen to 80, and his function key pad for the Apple II keyboard would make it easier to budget, model, plan, and analyze his company’s business. His passion to spread the value of his creation by working with Steve Jobs and Wozniak’s engineering team to deliver the beginnings of a corporate performance management solution was not lost on me. After 33 years in providing ERP/CPM/CRM software for organizations and most of those years with the Microsoft Dynamics product line,  I can say with some confidence the newly released Microsoft Dynamics Business Central will be a leading Cloud ERP system.  Like most Cloud ERP systems, transaction processing, such as order processing to collection of payment, is managed well. Departments work together seamlessly by the interdepartmental flow of transactions and shared business processing rules. What is unclear is how a Cloud ERP system can enable world-class decision making by business unit managers and executives. Cloud is new, and therefore Cloud ERPs such as Dynamics 365 Business Central have been outfitted with the latest technology, offer modern user experience, secure application programming interface (API), and the ability to extend with industry or user specific functionality through custom programming or independent software vendor application add-ons. Improvements in Cloud ERP systems have focused on reducing the costs to process transactions with more categorization, improving user satisfaction, compliance, security, and reducing the cost to extract information out of the ERP for departmental managers to optimize business process decisions. What is missing from Cloud ERPs, such as Microsoft Dynamics 365 Business Central are tools for executives and business unit managers to make world-class decisions. To read more about Dynamics 365 Business Central and the 13 times I will list that represent what a world-class CPM solution should have, click here . Related Posts Microsoft NAV 2016 Version Upgrade! Never Worry!! Microsoft Azure Cloud Services 101 Cloud-based CPM Rules Now and the Future

Forum Post: RE: Microsoft Dynamics NAV Licensing

$
0
0
@kerry55: Please refer to the following link: www.encorebusiness.com/.../dynamics-nav-license-types

Forum Post: RE: Microsoft Dynamics NAV Licensing

$
0
0
Yes, a developer license can be use to customize NAV also afte the implementation stage. At customer site, you need to set the NAV service tier in order to use the customer’s license. For developing and support, you can change this license with yours and make support/customizations. Regarding licensing in general, the link above covers all.

Forum Post: RE: How to invoke-navcodunit with navuserpassword

$
0
0
I don’t think it’s possible. You need to have the user under which you’re running the PowerShell script on NAV. You don’t need to switch to Windows authentication: In your PowerShell script, first create the user in NAV with your Windows credentials (using New-NavServerUser) with the appropriate permissions. In this way you’ve A Windows user with the correct permissions in NAV. Then, run Invoke-NAVCodeunit.

Forum Post: Config Package Error

$
0
0
I am tying to export a production forecast from a live company and import it into a test company. The forecast date on all the lines has a value in it. However on using the config package to import the forecast, I get the following error message. "Forecast Date must have a value in Production Forecast Entry: Entry No.=732. It cannot be zero or empty.". Could anyone please explain what could be wrong?

Forum Post: Importing Lot numbers using web services

$
0
0
Hi. I'm currently importing sales invoices using the page 43 (Sales Invoice) exposed as a web service, that works perfectly. The problem I have is how I can include also a lot tracking in the Item Tracking Card. I'm been searching for a while but I've been unable to find the correct page for doing this. Can somebody point me to the right direction? I'm using NAV 2015 Thanks, Ignacio

Forum Post: RE: Config Package Error

$
0
0
It seems that for this entry the date is not passed. Can you activate debugger?

Forum Post: RE: Received and Invoiced Purchase Order not being deleted

$
0
0
Hi All, I am having the reverse issue where a partially received purchase order has disappeared from the purchase order listing so I cannot complete it.... Thanks, John
Viewing all 64865 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>