Quantcast
Channel: Dynamics 365 Business Central/NAV User Group
Viewing all 11285 articles
Browse latest View live

Forum Post: G/L Accounts Category

$
0
0
Dear Experts I am looking for a good idea to import the G/L Account Categories from Excel or Edit in Excel. I used both Edit in Excel and Rapidstart, but because of many factors this did not work smoothly and needs efforts like you enter manually These are the challenging fields. Thanks for Support

Forum Post: create sales order with multiple line using cal/code

$
0
0
Hi Everyone, I am trying to create sales order with multiple line using cal/code. I am able to create SO with single line, so please help me , to create multiple lines ie in looping of more than one item[If i want to add item: 1000(Bicycle), and 1001(Touring Bicycle)...] Here is my code: Item.INIT; Item."No." := 'Bicycle'; ItemUnitOfMeasure."Item No." := Item."No."; ItemUnitOfMeasure.Code := 'PCS'; ItemUnitOfMeasure.INSERT; Item."Base Unit of Measure" := ItemUnitOfMeasure.Code; Item."Inventory Posting Group" := 'RESALE'; Item.INSERT(TRUE); SalesHeader.INIT; SalesHeader."Document Type" := SalesHeader."Document Type"::Order; SalesHeader."No." :='2010'; SalesHeader."Sell-to Customer No." := '10000'; SalesHeader.VALIDATE("Sell-to Customer No.", '10000'); SalesHeader."Bill-to Customer No." := SalesHeader."Sell-to Customer No."; SalesHeader."Posting Date" := WORKDATE; SalesHeader."Document Date" := SalesHeader."Posting Date"; SalesHeader."Due Date" := SalesHeader."Posting Date"; SalesHeader.Ship := TRUE; SalesHeader.Invoice := TRUE; SalesHeader."Shipping No. Series" := 'S-SHPT'; SalesHeader."Posting No. Series" := 'S-INV+'; SalesHeader."Dimension Set ID" := 4; SalesHeader.INSERT(TRUE); SalesLine.INIT; SalesLine."Document Type" := SalesHeader."Document Type"; SalesLine."Document No." := SalesHeader."No."; SalesLine.Type := SalesLine.Type::Item; SalesLine.SETRANGE("Document Type",SalesHeader."Document Type"); SalesLine.SETRANGE("Document No.",SalesHeader."No."); SalesLine."Line No." := NextLineNo; //FOR SalesLine."No." := TO DO IF SalesLine.FIND('+') THEN NextLineNo := SalesLine."Line No." + 10000 ELSE NextLineNo := 10000; SalesLine."No." := '1000'; SalesLine.VALIDATE("No.",'1000'); //SalesLine."No." := '1001'; //SalesLine.VALIDATE("No.",'1001'); Quantity := 7; SalesLine.Quantity := Quantity; SalesLine."Quantity (Base)":= SalesLine.Quantity; SalesLine."Qty. to Invoice" := SalesLine.Quantity; SalesLine."Qty. to Invoice (Base)" := SalesLine.Quantity; SalesLine."Qty. to Ship" := SalesLine.Quantity; SalesLine."Qty. to Ship (Base)" := SalesLine.Quantity; SalesLine."Gen. Prod. Posting Group" := 'RETAIL'; SalesLine."Gen. Bus. Posting Group" := 'DOMESTIC'; SalesLine."VAT Bus. Posting Group" := ''; SalesLine."VAT Prod. Posting Group" := ''; SalesLine."VAT Calculation Type" := SalesLine."VAT Calculation Type"::"Reverse Charge VAT"; SalesLine.INSERT(TRUE); CODEUNIT.RUN(CODEUNIT::"Sales-Post",SalesHeader); Thanks in advance. mani

Blog Post: Dynamics 365 Business Central on-premise performances to the max with Azure SQL Database Hyperscale

$
0
0
When you’re start implementing Dynamics 365 Business Central on-premise (because you’re not ready for the SaaS now), one of the good decision you can take today is to move your database to the cloud. I’ve written in the past different posts on when and why using Azure SQL Database or S QL Server installed on an Azure VM with Dynamics 365 Business Central (same is for NAV if you want). You can find some links here and here . Normally, my personal experience is resumable as follows: Use Azure SQL Database with Standard Tier only for small installations SQL Server on Azure VM performs better than Azure SQL Database with Standard Tier when users > 10/15 Azure SQL Database is not always cheaper than SQL Server on Azure VM But what about if you need the best performances? Costs are not always the main aspects to consider in this case, expecially if you’re starting a big project (many concurrent users). For very big projects, using SQL Server on an Azure VM without apsects like scaling, monitoring and so on could be a bottleneck. Today I want to signal a very interesting new option that you can start considering: Azure SQL Database Hyperscale . Azure SQL Database Hyperscale is a SQL-based and highly scalable cloud service tier for single databases. It has a cloud-born architecture which decouples compute, log and storage and it provides you with up to 100 TB of storage, with low latency and high throughput. Main features of Azure SQL Database Hyperscale are the following: Big size: it grows in size by 1 TB up to 100 terabytes Very fast! Instantaneous backups (time independent from the size of the db) and they don’t slow down database performance Scalability: every page server stores up to 1 terabyte of data and it acts as an independent database with its own compute power and duplicate replicas. Hyperscale automatically adds a new page server when the used space in existing page servers reaches 1 TB. Secure and reliable: 99.99% availability, disaster recovery, and mission-critical high performance. The wonderful thing is that you can move your Azure SQL Database to the Hyperscale service tier when you want and without requiring any change to your applications using the database (connection strings are always the same). I’ve done in the past days some tests on this new service tier and results are very interesting. To check the gains on performances, I’ve installed a Dynamics 365 Business Central database instance on an Azure SQL Database with the Standard tier (General Purpose, Gen5, 2vCores), I’ve performed some tasks inside this instance and then I’ve moved the database to the Hyperscale service tier. This is my Dynamics 365 Business Central database running on the Standard service tier: and this is the monitoring of resources when performing some business tasks (a set of pre-defined tasks that runs for 15 minutes): After these tests, I’ve switched the database service tier to Hyperscale tier (I suggest to select Gen5 as compute generation because in this way you run on the latest hardware generation). Here I’ve also set the vCore number to 2 (estimated price doubles, you are not forced to do that now and you can stay with defauls values and switch them later if you need more power): When you click Apply, your database starts moving to the new service tier (wait few minutes): and when ready you receive a confirmation message: Now our Dynamics 365 Business Central database runs on the Azure SQL Database Hyperscale tier (you can check the new applyed service tier by going to the database properties): Let’s repeat the same tests now (same set of tasks for the same time slot). The resource monitor when the database is switched to hyperscale is in the red box in the below image: Results noted: Database resource usage are lower Query response time is faster NOTE: results displayed here are on a database with a single user that performs intensive tasks. Gain on performances will be more when the number of users increases. I’ve simulated a load test also by using a Powershell script that performs intensive queries on the database for a long period of time and what I can say is that Hyperscale tier is extremely interesting if you want you have great performances. Remember that if you switch to the Hyperscale service tier you cannot go back to the Standard tier. P.S. you pay per resource’s consumption, costs could be not too much compared to performances that you can have.

Blog Post: Features we can expect in the “2019 Release Wave 2” for Microsoft Dynamics 365 Business Central

$
0
0
A week ago, Microsoft came with this message on twitter: Which basically pointed to an URL that was (for me) difficult to find on Microsoft Docs. I literally had to find the tweet again to find the list of expected features again .. so I figured: If I have a problem finding it, others might have problems as well. So, here it is: The (updated) list of features we can expect in the 2019 Release Wave 2 Key dates for the 2019 release wave 2 of Dynamics 365 When I just scheduled this blog, Eva Dupont tweeted this: I guess it’s very much “on topic”, so let’s include this URL as well: Key dates for the 2019 release wave 2 of Dynamics 365 Look out for August 2nd to get your hands on the preview, and obviously to October 1st for the RTM release!  Following the link, you will be able to download a PDF (in your own language) with a description of all upcoming features. What am I looking forward to? Since we’re at it, let’s talk about the ones that I am really looking forward to myself :-). Basically, anything “client” related is in my opinion very important, just because we know that in this next major release, the Windows Client won’t exist anymore. So: Longer timeout period for server connection : this is a no-brainer. It was only added quite late to the list, but good to know that the “session timeout period” for BC Online will increase to “hours” in stead of just 20 minutes. Multi-tasking across multiple pages : I know many users have been asking for this – not me in particular, but who am I? I spend more days in outlook and VSCode than in the actual client ;-). Speed and agility of data entry : We have a customer we will be upgrading to BC15 (that’s what I call it), and speed of data-entry is going to be very important for them .. . Customize a user profile without writing code : also again something I hear a lot from our consultants – something we need to be able to do! I just hope Microsoft will implement this on “personalization”-level, and not on “designer”-level, where we would need to compile it in code / or an extension needs to be created/changed/deployed. Users need to be able to do this on their own – and it should not involve anything technical. Saving and personalizing list views : this is a no-brainer as well. So useful! Add links to your navigation menu : Do I need to say more? Resize columns with fewer clicks : at this point it’s not really intuitive (open personalization, and start resizing columns). So any improvement in this area is always appreciated! Full keyboard shortcut support : THE number one for all I am concerned. I’m all into shortcuts, and powerusers (if I can call ‘m that) apparently as well. So I’m really looking forward to August, when this will be in the preview releases! All great additions, and a awesome step towards getting into parity with the windows client. Probably people will still have their doubts – but that’s ok ;). Not only the client-related stuff I’m looking forward to – also technical stuff, like: Support for performant data upgrade from C/AL tables to AL tables Attach and debug next : Duh… Surrogate keys : very interested how this is going to look like – I just hope I won’t have to do major changes to the product we are rebuilding at this moment ;-). Ability to download a database backup file : again, feedback I have been getting from lots of people .. And finally we’ll have it (or so they say ;-))! What am I NOT waiting for? And may be a list of what I wasn’t really waiting for (since lately , I’m all into testability: you always have to test the opposite truth as well to have a full test – well, in this case, to have a full story, I have to talk about the opposite as well ;-)) More power to developers using Designer : personally, I’m not a fan of the Designer. It has brought lots of confusion (and crashes) .. but I’ll give it a go in August to see what it will bring. Page background tasks : A first step into async processes .. . To be honest, I don’t see “it” yet. I need usecases .. . I missed a webcast about it – so probably it’s just me (and a matter of time) ;-). (Sorry, Kenny ;-)). Base application delivered as AL applications : if that is still a surprise, well, read this post . I’m actually quite against the “Customizing-the-Base-App-in-AL” as any form of solution. For me, it’s a 100% no-go, and I will do anything I can to go fully for AL Extensions. And after all the investments we have been doing, I’m confident we will succeed. Why am I against it? Well, in my opinion, it’s at least as bad as going hybrid (aka “side-by-side”. You can read all about my opinion on that here ). With all the changes we have been going through – and we are still going through – I don’t see why we would have to implement even a third development model as a partner. I know some people see it as a step in the AL direction. Well, it IS a step, sure .. but the only direction I can think of is “South” ;-). It feels too much like putting off the inevitable to me .. . And yes, I realize that some things are not possible with extensions, like extending primary keys, reports, options, posting routines, .. or missing events. We also had to deal with all of these … . Anyway, I’m at it again – I told myself to shut up about this very topic… , but apparently it’s stronger than me ;-). I’ll stop here… So here you go. To recapitulate, the main topic of this post is simply to share the URL to the list of features: The (updated) list of features we can expect in the 2019 Release Wave 2 ! But now at least you have some useless opinions on top of it ;-).

Forum Post: RE: Email logging with Business Central

$
0
0
I was able to resolve the issue of emails not going to the Queue folder. The issue is the Assisted Setup Wizard did not setup the correct email address for the Mail Flow rules. To resolve, I went to Office 365 Portal, Admin Center, Exchange Admin Center, Mail Flow. There are two rules created Log Email Sent to This Organization and Log Email Sent from This Organization. The rule is set to bcc the email to the Queue email. However, it was set to queue@mydomain.com which is incorrect. After setting it to queue@mydomain.onmicrosoft.com, it worked! The other thing I ran into is when I was testing I was sending emails from inside my organization, so the rule failed. I ended up removing the requirement for an email to be sent from outside the organization for testing purposes. And one other thing is I had two contacts with the same email address and the interaction log gets recorded on the first one it finds! Don Saito - ERP Efficiency Experts

Blog Post: Why the Idle Client Timeout Won’t Work

$
0
0
Overview Just a friendly reminder (or reminder for myself) that in order to get the Idle Client Time to work properly. Make sure you change the Keep Alive Interval to something greater than Idle Client Timeout. If you set the Idle Client Timeout to something LESS THAN Keep Alive Interval, the client will not disconnect automatically if they’re idle . The Default When you install Dynamics 365 Business Central (aka Dynamics NAV), this setting will be defaulted to 2 minutes. So if you want to kick people off if they’re idle for 5 minutes, make sure you remember to change this default setting. Conclusion Another one of those GOTCHA things when setting up the software…

Forum Post: Can I buy more disk space in BC Saas?

$
0
0
I need to know how many disk space there is in a Saas deployment of BC. [I found it now, 80GB] Can I buy more disk space? Graziano.

Forum Post: RM Destination error in Dynamics NAV 2016

$
0
0
Hi - One of our customer is getting the below error when they get out of NAV and then try to go back in and they are on NAV 2016. This is the first time they are getting this error. Any help in resolving this issue is highly appreciated. Thanks Regards S.

Forum Post: Alert notificaton before Publishing an extension

$
0
0
Dears, I trying to find a way to notify the users that I'm going to publish an extension, because it will kick them out the system when i publish it. If anyone got any idea doing it let me know. Example of what I'm saying: Before I publish the extension an alert box appears to all the client users that the extension will be published so they save their work and close the software. Thanks in advance

Forum Post: The operation could not complete because a record in the job queue entry table was locked by another user. Please retry the activity in NAV 2018

$
0
0
Hi Team I experienced the above error, I wrote this below code in a codeunit //Number of users = 4/ Four ImprestHeader.CALCFIELDS("Pending Approvals"); IF (ImprestHeader."Pending Approvals" = 4) AND (ImprestHeader."Request Status" = ImprestHeader."Request Status"::"Pending Approval") THEN BEGIN Approval.RESET; Approval.SETRANGE("Table ID",52121500); Approval.SETRANGE("Document No.",ImprestHeader."No."); IF Approval.FINDFIRST THEN BEGIN REPEAT IF (Approval."Sequence No." = 1) AND (Approval.Status = Approval.Status::Open) THEN Approval.VALIDATE(Status,Approval.Status::Canceled); Approval.MODIFY; UNTIL Approval.NEXT = 0; END; END; //Number of users = 1/ One ImprestHeader.CALCFIELDS("Pending Approvals"); IF (ImprestHeader."Pending Approvals" = 1) AND (ImprestHeader."Request Status" = ImprestHeader."Request Status"::"Pending Approval") THEN BEGIN Approval.RESET; Approval.SETRANGE("Table ID",52121500); Approval.SETRANGE("Document No.",ImprestHeader."No."); IF Approval.FINDFIRST THEN BEGIN REPEAT IF (Approval."Sequence No." = 3) AND (Approval.Status = Approval.Status::Open) THEN Approval.VALIDATE(Status,Approval.Status::Canceled); Approval.MODIFY; UNTIL Approval.NEXT = 0; END; END; //Number of users = 1/ One ImprestHeader.CALCFIELDS("Pending Approvals"); IF (ImprestHeader."Pending Approvals" = 1) AND (ImprestHeader."Request Status" = ImprestHeader."Request Status"::Released) THEN BEGIN Approval.RESET; Approval.SETRANGE("Table ID",52121500); Approval.SETRANGE("Document No.",ImprestHeader."No."); IF Approval.FINDFIRST THEN BEGIN REPEAT IF (Approval."Sequence No." = 3) AND (Approval.Status = Approval.Status::Open) THEN Approval.VALIDATE(Status,Approval.Status::Canceled); Approval.MODIFY; UNTIL Approval.NEXT = 0; END; END; //Approve ImprestHeader.CALCFIELDS("Pending Approvals"); IF (ImprestHeader."Pending Approvals" = 0) AND (ImprestHeader."Request Status" = ImprestHeader."Request Status"::"Pending Approval") THEN BEGIN ImprestHeader."Request Status" := ImprestHeader."Request Status"::Released; ImprestHeader.MODIFY; END; COMMIT; This code on a report CleanedApprovals.ImprestDocument("Imprest Header"); COMMIT; After run it, it worked yesterday but today it was showing the above error message.

Forum Post: RE: The operation could not complete because a record in the job queue entry table was locked by another user. Please retry the activity in NAV 2018

$
0
0
That is the error message displayed

Forum Post: RE: The operation could not complete because a record in the job queue entry table was locked by another user. Please retry the activity in NAV 2018

$
0
0
It's hard to say what can be the cause of this deadlock. You need to collect some more data on the processes that are running at the moment of the locking. I think, NAV SQL Tracing should help you here. Enable tracing, as explained here: https://cloudblogs.microsoft.com/dynamics365/no-audience/2012/09/18/example-of-how-to-use-sql-tracing-feature-to-profile-al-code/?source=nav When selecting the events to trace, add the Lock:Deadlock event - this can give a clue on the code that locks the table.

Forum Post: RE: RM Destination error in Dynamics NAV 2016

$
0
0
Seems, you've reached the maximum number of connections your server accepts. In NAV Administration mmc snap-in, this is the parameter "Max Concurrent Connections". Or the same in the CustomSettings.config file Default value is 500, but probably it is set too low in your server settings. It's also a good idea to add up some additional sessions to this number. The error in this screenshot does not fire immediately when the maximum number of connections is reached. When all connections are busy, new users attempting to connect will be waiting for an available session. And only when the number of simultaneous waiting sessions reaches some threshold (which is defined by the WCF settings), the server will throw this error.

Forum Post: Changing the Login Page

$
0
0
Hi, I have 2 Dynamics 365 Business Central Servers. One, I have setup locally and the other is hosted by our training/implementation company. One is configured with UserPassword and the other Windows Authentication. They are both running the same version... " US Dynamics NAV 13.0 (24630)" I don't know if it is possible, but I would like the login screens to be the same. The first one is the UserPassword one and the other is the WIndows Authentication one. Is this possible? I like the user password field in the page better than the pop-over Sign in screen.

Forum Post: RE: NAV- Web client-url

$
0
0
Hi, I'm trying to do something similar to an on prem server but I'm having some issues... I have deployed my Business Central Server on 3 servers. 1 is the Business Central Application Server, the other my SQL Server and the last my IIS Web Server. All is up and running but I can only reach the Web Client via the following URL http://server-name/BC130 If I add the domain name after the server name, http://server-name.mydomain.com/BC130 , it no longer works. The site comes up and I get the windows Authentication Prompt but after entering my credentials, I get the following error in the event viewer: Error accessing Website Type: Microsoft.Dynamics.Nav.Types.NavServerNotFoundException Message: A server was not found at "net.tcp://server-name.mydomain.com:7146/BC130/Service". Either the URL is incorrect or the server is currently not available. DNS is setup correctly but I think there must be a setting where the business central server will only respond to queries coming from a certain url. Thanks

Forum Post: RE: The operation could not complete because a record in the job queue entry table was locked by another user. Please retry the activity in NAV 2018

Forum Post: Validation In Bank Receipt Voucher

$
0
0
Hi Folks, i want to give the validation in Bank receipt voucher if one user is already doing the entry the another user should not be able to do the entry kindly suggest.

Blog Post: Dynamics 365 Business Central: how to detect if an extension is running on SaaS or on-premise

$
0
0
When developing extensions for Dynamics 365 Business Central, you could have scenarios where you want to execute a procedure or a business process only if the extension is running on a SaaS environment or in an on-premise environment (or maybe having a different behaviour accordingly to the environment). To check if your extension is running on a SaaS environment, you have now a method called SoftwareAsAService() in the Permission Manager (9002) codeunit. This method returns TRUE if the extension is running on a SaaS environment, FALSE otherwise. An example of usage: I think it’s all self explanatory and very easy. Hoping to have answered a question received today…

Forum Post: RE: RM Destination error in Dynamics NAV 2016

$
0
0
Many Thanks Alexander, your help is truly appreciated. Thanks S.

Forum Post: NAV Three tier installation (Create TABLE on master database error)

$
0
0
HI. I am doing a three tier installation of NAV 2018. - SQL server i Installed SQL database components (without demo database) and I restored my database backup. - NAV server I installed NAV server. - On client computer i installed NAV client. vWhen I try to open database FROM NAV server i get error Microsoft Dynamics NAV Development Environment The following SQL Server error or errors occurred: 262,"42000",[Microsoft][SQL Server Native Client 10.0][SQL Server]CREATE TABLE permission denied in database 'master'. SQL: CREATE TABLE [dbo].[$ndo$srvproperty] (license IMAGE NULL Domain user wich I am using to open database is sysadmin on SQL server and db_owner on both NAV and master database. I also gave those permissions on service account. Error still persist. Then I tried to manually create this table, and upload lic file in it error stil persist. Next step was to give permission on this table for both accounts. Error stil here. Is there anxthing else I can try? What ever I do, error is aleays the same.
Viewing all 11285 articles
Browse latest View live