Quantcast
Channel: Microsoft Dynamics NAV Forum - Recent Threads
Viewing all 29197 articles
Browse latest View live

Microsoft Dynamics NAV Calculate Increase/Decrease value/Qty of Stock

$
0
0

Hi everyone!!
please help me out here..

i want to calculate increase and decrease value/quantity of an item (as seen in increase and decrease column in Inventory Valuation report of NAV)

Any suggestions or formula would be helpful.

Thanks.


Dynamics NAV 2018 - Set Permissions For Spesific Page

$
0
0

Hello everyone.


For GDPR purposes, i need to restrict access to Employee Card to everyone, and allow access only to spesific users.

How is this possible?


Thanks

Modify OIOUBL in Business Central

$
0
0

Hi,

This is a danish localization. In NAV2018 - newer (Business Central) the localization code is moved to an extension.

In older versions of NAV I could open codeunit 13609 - "OIOUBL Export Sales Invoice" and make the adjustment for the file format, but with the Business Central I don't know how I can do it any longer. The code is now in the extension, but the source code is not on github or in the CD-package.

Is my option to go back to an older version of NAV (NAV2017) and take the codeunit there and compile it in the business central and make my changes to the codeunit?

How would you edit the OIOUBL export?

Thanks in advance

How to Create a simple Json file be sent using PUT method

$
0
0

Using REST services I'm trying create a simple file to pass it Using the PUT method. example: the content should look like this ["WO_1234"]

I'm using the following function:



HttpClient := HttpClient.HttpClient();
//HttpClient.DefaultRequestHeaders.Add('x-api-operation',dhbOperation);
HttpClient.DefaultRequestHeaders.Add('x-api-key','GPES0dkIMv2jTdpo2SWyQ7vlYF03v9uc2aouKIul');
HttpClient.DefaultRequestHeaders.Add('Authorization',dhbAuthText);
HttpClient.DefaultRequestHeaders.Add('ContentType','application/json');
HttpClient.BaseAddress := Uri.Uri(BaseURL);

CASE RestMethod OF
'GET':
HttpResponseMessage := HttpClient.GetAsync(Method).Result;
'POST':
HttpResponseMessage := HttpClient.PostAsync(Method,HttpContent).Result;
'PUT':
HttpResponseMessage := HttpClient.PutAsync(Method,HttpContent).Result;

'DELETE':
HttpResponseMessage := HttpClient.DeleteAsync(Method).Result;
END;

HttpResponseMessage.EnsureSuccessStatusCode();
String := HttpResponseMessage.Content.ReadAsStringAsync.Result;


My question is: how to I create HttpContent to be used in the PUT method?

I see examples on the web for JasonTextWriter but it requires Propertyname Exaple: [{"Workorder":"WO_1234"}] . I just need to pass the value without property name ["WO_1234"].

Please help!

Thank you

Dynamics NAV - Perpetual Licence Upgrade question

$
0
0

The latest Dynamics NAV Perpetual price list describes Concurrent Limited Licences as having 'Limited Upgrade' - What does this mean. Ii says refer to Partner Source, but I can't find any reference there.

The preview of query

$
0
0

Hi All,

I am trying to preview the query in codeunit  but not able to get preview .. I tried with using filter eg: setfilter and setrange.

Please suggest, how to preview the query using codeunit.

Qry.OPEN;
WHILE Qry.READ DO BEGIN
END;
Qry.CLOSE;

Thanks

Event to use before posting?

$
0
0

Hi all,

I need to write some business logic  before a Sales post.

I have been a little bit confused with all these events.

Can anyone help me with , which event should i use?

For example, before posting i need to check if a field is TRUE, else throw an error and do not let the user post the Sale.

Regards.

Getting .net issue during job queue process

$
0
0

Hi Everyone,

Have created a codeunit to import file and move processed file to another location. When i run the codeunit manually, it works correctly.

But when i set this codeunit on job queue, it give blow error:


"Microsoft Dynamics NAV Server attempted to issue a client callback to create a DotNet object: System.IO.File (CodeUnit 419 File Management). Client callbacks are not supported on Microsoft Dynamics NAV Server."

Code written in codeunit:

  FileMgt.MoveFile(GLSetup."Import File Path"+RecFile.Name,GLSetup."Import File Path"+'Processed\'+'Processed_'+ RecFile.Name)

Thanks!!


EFT Payment journal NAV error for USD Vendors

$
0
0

Dear Colleagues, can you please give me your insight over the following:

I am getting the following error: 'Currency Code must be equal to '' in Bank Account; No.=TD CANADA TRUST US. Current value is USD'


I reviewed the EFT setup and it is correct. Currencies are on place as well correctly.

I am :

- using Payment Journal.

-using a Bank Account card with USD currency assigned.

-vendors already setup for EFT, with their own bank accounts, preferred bank, remittances assigned, etc.

-payment journal lines with USD currency (so, aligned with bank's currency)

Thanks in advance, happy holidays!

-DM

NAV Capacity. Work Center's vs Concurrent Capacity on Routings

$
0
0

Dear Colleagues, 

Is the Concurrent capacity on the Routing operation overwriting the capacity of the work center selected for it? 

Regards, 

DM

Track of Indirect cost using Production Orders. Is it possible?

$
0
0

 Dears, 

Is it possible to track indirect cost for the production orders? Specially for Labour/Work Centers?

The Work Center has he indirect cost that sums up with the Direct and Overhead ones to do the 'Unit Cost' of it, BUT, we are just posting to one G/L through the Gen. Prod Posting group assigned and clearly there's no differentiation (or at least I have not seen it yet, perhaps I missed it!)

Thanks, have a good one.

-DM

Deposit uncleared from previous Bank Reconciliation (north America)

$
0
0

Has this happened to you before?

  • You open the new Bank rec. (north america version) in NAV
  • Suggest the lines
  • A deposit is not appearing and you know it was not cleared on the previous one ( I review the previously posted bank reconciliation, it was NOT cleared)
  • It is not being pulled into the new Bank Rec.

If it happened to you, please share how you dealt with it. Thank you.

-DM

Issues moving from On-Premise to Azure SQL

$
0
0

I have recently moved my NAV 2016 to a Test Cloud environment and have the database on Azure SQL but am having issues with the Database collation.

Within the NAV Administration whenever i change the Database credentials to SQL Authentication and apply it is stating that the database is using an unsupported collation - 'SQL_Latin1_General_CP1_CI_AS' and prompting to use the development environment to change it.

However - when i open the database in the Development envrionment i'm prompted that the server requires a 'Per Databse License to be opened on SQL Azure'

I did try to run the powershell to Import the NAVServerLicense to rectify this error but the NAV Server will start and then stop within 60 secs.

Any guidance would be most appreciated

Merry Christmas and Happy New Year 2019

$
0
0

Dear Friends, Customers and Partners,

Wish you and your family a Merry Christmas and Happy New Year 2019!

Best regards,

Khoa Nguyen.

Object run permission

$
0
0

Hello everyone,

I am new here and we are still using NAV 2009 in my company.

My question is : what can I do if someone add some code in Codeunit 1 under function LogInStart(), this code runs a form 99999 that my license does not allow me to Run/Design it.

This will block my system no ? Because every time I try to start the ERP, then the codeunit 1 will try to run this form and I will get the error "You do not have permission to read ...."

Any idea how I can fix this ? Should I ask Microsoft for a special License ?

Thank you.


Auto import of text file through XML

$
0
0

Hello Everyone,

I an trying to auto import text files from a particular folder, through XML in NAV 2017.

I have written the code in codeunit. when i manually run this codeunit. it import all the files correctly. But when i schedule it through job queue, it doesn't import any file . and no error is shown in job queue also.

Below is the code:

GLSetup.GET;

RecFile.SETRANGE(Path,GLSetup."Import File Path");
RecFile.SETRANGE("Is a file",TRUE);
IF RecFile.FINDSET THEN
REPEAT

InFile.OPEN(GLSetup."Import File Path"+RecFile.Name);
InFile.CREATEINSTREAM(InS);

IF XMLPORT.IMPORT(50010,InS) THEN BEGIN
InFile.CLOSE;

FileMgt.CopyServerFile(GLSetup."Import File Path"+RecFile.Name,GLSetup."Import File Path"+'Processed\'+'Processed_'+ RecFile.Name,TRUE);
FileMgt.DeleteServerFile(GLSetup."Import File Path"+RecFile.Name);

END
ELSE
BEGIN
InFile.CLOSE;

FileMgt.CopyServerFile(GLSetup."Import File Path"+RecFile.Name,GLSetup."Import File Path"+'Error\'+'Error_'+ RecFile.Name,TRUE);
FileMgt.DeleteServerFile(GLSetup."Import File Path"+RecFile.Name);

END;

UNTIL RecFile.NEXT = 0;

Please suggest.

How to use SETFILTER with OR logical operation.

$
0
0

I want to use filter on two fields of the same table with one value.

There are two columns named as posting date and document date and let's suppose I want to get rows having either posting date =TODAY OR document date =Today.

When I use SETFILTER two times it gives me rows having posting date and document date=TODAY.

BUT I want to get all rows whose posting date is TODAY may be document date is different and all rows whose Document date is TODAY may be posting date has different value.

I hope its enough to understand the scenario.

May be there is no possibilities to use OR with SETFILTER but if you Know another way to solve it then feel free to share with me I'll really appreciate that.

Thank you.

Dynamics Nav 2009 for v9.x

$
0
0

We have to upgrade our org to version 9.x Will Dynamics Nav 2009 work in the new environment?

What should be done from our side?

Is there any way I can flow the item values cost in Bin Content.?

$
0
0

Dear Experts,

Is there any way I can flow the item values cost in Bin Content.? Please suggest me to do this.

NAV2016 Permission Conflict

$
0
0

Hi,

I just took over application manager role and tasked to enhance the existing user roles & permissions.

One of the significant issues in NAV2016 is any user who granted with PR/PO creation and Vendor read is able to view the company trial balance. The way to get to the trial balance is at Vendor List -> click on the number of Balance (LCY) in Vendor Statistics factboxes -> select any record in Vendor Ledger Entries and choose Navigate -> click on the No of Entries for G/L Entry line -> General Ledger Entries will appear. Click on G/L Account No. to show pulldown list and choose Advanced -> at Select - G/L Account List window, credit & debit amounts already shown together with Trial Balance report button ready to choose to produce. 

I did a test by removing the Read Permission from one permission set for PO/PR creation. It works for Vendor List which navigation stopped after Vendor Ledger Entries but any PO cannot be posted for quantity receive with error message "You do not have the following permission on Tabledata G/L Entry: Read".

I wonder whether anyone out there also facing this problem. Anyone help is much appreciated.

Many thanks in advance.

Viewing all 29197 articles
Browse latest View live


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