Hi Experts, please help job queue not running continuously. It runs and stop , checked the event viewer getting below message . any one can help? /////////////////////////////////////////////////////////////////////////////////////// Type: Microsoft.Dynamics.Nav.Types.Exceptions.NavALException SuppressMessage: False SuppressExceptionCreatedEvent: False FatalityScope: None Message: Arithmetic operation resulted in an overflow. StackTrace: at Filter.InvokeWithFilter(NavMethodScope ) at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run() at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit448.CalcNextRunTimeForRecurringJob(INavRecordHandle jobQueueEntry, NavDateTime startingDateTime) at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit448.GetNextRequest_Scope.OnRun() at Filter.InvokeWithFilter(NavMethodScope ) at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run() at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit448.GetNextRequest(INavRecordHandle jobQueueEntry) at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit448.HandleRequest_Scope.OnRun() at Filter.InvokeWithFilter(NavMethodScope ) at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run() at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit448.HandleRequest() at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit448.JobQueueLoop_Scope.OnRun() at Filter.InvokeWithFilter(NavMethodScope ) at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run() at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit448.JobQueueLoop() at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit448.OnRun_Scope.OnRun() at Filter.InvokeWithFilter(NavMethodScope ) at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run() at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit448.OnRun(INavRecordHandle εrec) at Microsoft.Dynamics.Nav.Runtime.NavCodeunit.DoRun(DataError errorLevel, NavRecord record) at Microsoft.Dynamics.Nav.Runtime.NavCodeunit.InvokeRun(Int32 objectId, Object[] args) at Microsoft.Dynamics.Nav.Runtime.ALSession.RunCodeunitAndDisposeSession(NavSession session, Int32 codeUnitId, NavRecord record) Source: MethodScopeFilter HResult: -2146233088 ---------------------------------- Type: System.OverflowException Message: Arithmetic operation resulted in an overflow. StackTrace: at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit448.CalcNextRunTimeForRecurringJob_Scope.OnRun() at Filter.InvokeWithFilter(NavMethodScope ) Source: Codeunit448_47 HResult: -2146233066
↧
Forum Post: JOB NOT RUNNING
↧
Forum Post: RE: Report Selection Sales
Thanks Robertas.
↧
↧
Forum Post: RE: ms dynamics nav services stopped automatically
Hi Richard it seems the service cannot connect to SQL. Usually it is one of two - either SQL Server is not running, or service has wrong connection details to the database. Robertas
↧
Forum Post: RE: How do we delete/clear purchase orders received but not invoiced?
Hi, as others said, you can do a customization, however unless you have an extremely strong NAV partner, the customization is most likely to mess up GLs nd stock costings. Because when the PO is received, items on PO have 'Expected Cost' rather than Actual, and most probably sit in the wrong GL accounts. So I would recommend to finish POs, that is raise invoices and then raise GL Credit Memos (without Items) to clear the balance of vendors. No customization is needed, and is a proper way of working with NAV. Robertas
↧
Forum Post: RE: To migrate code from NAV 2009 to NAV 2017 Do I have to pass by NAV 2013?
No not for code, let me explain it all: There is no direct upgrade tool kit from NAV 2009 to NAV 2017. Then you do have 2 options: Do full upgrade from NAV 2009 to NAV 2013 (technical upgarde and merge 100% normal upgrade from NAV 2009 to NAV 2013), then do another full upgrade from NAV 2013 to NAV 2017. Or, you do first a full Upgrade from NAV 2009 to NAV 2015 (as the toolkit is available from nav 2009 to NAV 2015)(also while doing this you will have to pass by nav 2013 only to do a technical upgrade of the databases), then you can do an upgrade from NAV 2015 to NAV 2017 (your choice either technical only, or full upgrade). P.S. when you see the word 'full upgrade' this means you need to merge, when you see the word 'technical upgrade' you do not need merge. To get furhter insights about this, check my blogs: https://blogs.msdn.microsoft.com/nav/2015/06/12/best-practices-tips-and-tricks-for-upgrading-to-dynamics-nav-2013-r2-or-dynamics-nav-2015/ https://blogs.msdn.microsoft.com/nav/2015/06/17/best-practices-tips-and-tricks-for-upgrading-to-dynamics-nav-2013-r2-or-dynamics-nav-2015-part-2/ https://blogs.msdn.microsoft.com/nav/2017/06/12/best-practices-tips-and-tricks-for-upgrading-to-dynamics-nav-2013-r2-or-dynamics-nav-2015-part-3/ Thanks, Rahman
↧
↧
Forum Post: RE: Interim accounts and Nav
Hi Sandy, almost as you have described, except: - Not AP Interim, but GRNI accounts which in Gen Posting Setup is called 'Inventory Accrual Account (Interim)' - Not AR Interim, but COGS Interim accounts which is in Gen Posting Setup Plus, of course, tax - depending on which country you operate in. Robertas
↧
Forum Post: How to transfer User options from codeunit to the global function of a table via c/al code
Hi all, I have a table called custom table with 7 fields, Custom Code datatype: Code; Custom Picture datatype: BLOB; Expiry Date of type: Date, Toxity of type option: the options are , Caution, Danger, and Hazardous; Custom Number of datatype: integer; Custom Description of type: text and Commission of type decimal. I need to write a codeunit that will be called in the C/AL of the custom table that will transfer user options to the C/AL code From the option list the following code works perfectly on the onValidate() function: I realized when "Custom Toxity" = 1 this is the option for Caution I realized when "Custom Toxity" = 2 this is the option for Danger I realized when "Custom Toxity" = 3 this is the option for Hazardous because the first Option is an empty option string which the system regards as 0; IF "Custom Toxity" = 1 THEN "Custom Description" := 'Caution'; IF "Custom Toxity" = 2 THEN "Custom Number" := 6; IF "Custom Toxity" = 3 THEN Commission := 99.0; When I type it in the codeunit as the following: LOCAL fCustomFunction(VAR updateCustomTable : Record "Custom Test") IF updateCustomTable."Custom Toxity" = 1 THEN updateCustomTable."Custom Description" := 'Caution'; IF updateCustomTable."Custom Toxity" = 2 THEN updateCustomTable."Custom Number" := 6; IF updateCustomTable."Custom Toxity" = 3 THEN updateCustomTable.Commission := 99.0; I also create a Codeunit in the in the C/AL of the Custom Test table in the Custom Toxity - OnValidate() as: fCustomFunction.RUN(); //where fCustomFunction is of datatype Codeunit, and it is a subtype of the written codeunit Custom Function. The table doesn't respond to the code, even though there are no errors.
↧
Forum Post: RE: Posted Purchase Order with wrong Exchange Rate
If you're not running the exchange rate adjustment, then it needs to be done manually via general journals and posting directly to GLs (no vendor is involved). Then it's your choice whether to post the difference into Vendor GL balancing with Purchase Account GL; on the time of payment reverse Vendor GL to post to FX GL. Or post to FX GL straight away, balancing with Purchases GL. It probably depends on the time lapse between invoice and payment. It is all up to you :) Robertas
↧
Forum Post: RE: JOB NOT RUNNING
Hi, what does the Job Queue Entry Log in NAV say? Does it show the error on 'Overflow'? Robertas
↧
↧
Forum Post: RE: JOB NOT RUNNING
The issue has resolved finally checked the related code code unit . Reduced the text field now it functioning perfectly.
↧
Forum Post: RE: ms dynamics nav services stopped automatically
Hi Robertas the SQL server is running well without stopping
↧
Forum Post: RE: ms dynamics nav services stopped automatically
and it was working well like 5 days ago
↧
Forum Post: Word opens on preview
Hi experts, when I click on preview button of a report, instead of preview I get word printout. Please help.
↧
↧
Forum Post: RE: Word opens on preview
Hi in report properties "DefaultLayout" set as Word , that's the reason in preview mode its open in Word File. You need change "DefaultLayout" as RDLC . Regards Subhashis
↧
Forum Post: RE: Word opens on preview
It is RDLC.
↧
Forum Post: RE: New records transfer issue from one table to another
MODIFYALL function is the perfect answer of above query
↧
Forum Post: RE: ms dynamics nav services stopped automatically
how can i fix this
↧
↧
Forum Post: Export purchase lines to text
Hi everyone, I'm using nav 2016 and I need to export some purchase lines to a text file. At the moment I know how to create the file, download to the client but how to get the specific lines this image show below? I have a page (purcha quote) where I have a page part called "PurchLines" linked to Purchase Quote Subform in PagePartId. At the moment I have this code TXT - OnAction() // LACPOS001 MESSAGE('WORD'); Serverfilename := FileManagement.ServerTempFileName('txt'); ClientFilePath := 'C:\teste.txt'; MyFile.CREATE(Serverfilename); MyFile.CREATEOUTSTREAM(MyOutStream); IF PurchaseLine.Find('-') THEN REPEAT counter := counter+1; //MyOutStream.WRITETEXT('9525200001 22-08-18 0 1,1'); //MyOutStream.WRITETEXT(); // This command is to move to next line UNTIL PurchaseLine.Next = 0; //MyOutStream.WRITETEXT('9525200001 22-08-18 0 1,1'); MyFile.CLOSE;// To end the writing and write out to the file. FileManagement.DownloadToFile(Serverfilename,ClientFilePath);
↧
Forum Post: RE: ms dynamics nav services stopped automatically
If it was running 5 days ago and you were able to actually connect to NAV, then you need to see what has changed - database name, instance name, server name, firewall settings. Very difficult to point to a specific fault with so little information, sorry. Robertas
↧
Forum Post: RE: Consume External web service in NAV
Hi Andrey, Thank you for answer. you have an example of use Codeunit 1297.
↧