I would like to create label printing on NAV 2018. Please guide
↧
Lables printing on NAV report
↧
Use object in Extension from another Extension
Hi guys
Just playing around with extensions on a D365BC preview Docker image, and ran in to a question.
Can i create a Extension with say a Codeunit with some functions in it.
And then create another Extension that uses these functions.
AL dosent see it, even when downloading symbols after the first extension is installed.
There is a command in AL to Download SourceCode, but it dosent work, and i dont know what its for.
Anyone??
Just playing around with extensions on a D365BC preview Docker image, and ran in to a question.
Can i create a Extension with say a Codeunit with some functions in it.
And then create another Extension that uses these functions.
AL dosent see it, even when downloading symbols after the first extension is installed.
There is a command in AL to Download SourceCode, but it dosent work, and i dont know what its for.
Anyone??
↧
↧
Shipping in UK
What are the major shipping companies, and what is the add-on used in UK ?
In Sweden I use LogTrade covering schenker, Bring, DSV, DHL, PostNord
In US I use Lanham E-ship covering USPS, UPS, FEDEX
I'm wondering what to use in UK and what shippers it covers?
In Sweden I use LogTrade covering schenker, Bring, DSV, DHL, PostNord
In US I use Lanham E-ship covering USPS, UPS, FEDEX
I'm wondering what to use in UK and what shippers it covers?
↧
Web Service cannot start
In NAV17 environment I created Page Web Services following Walkthrough: Creating and Interacting with a Page Web Service (OData) (https://msdn.microsoft.com/en-us/library/hh166960(v=nav.90).aspx).
But when I tried to run the web services can’t reach this page message is displayed in browser.
![zpueog6ghw8r.png]()
PS. I have disabled firewall, set rule to allow the port (7048) and also checked on enable OData Services in NAV Administration.
1. In command prompt I wrote the following code and I found that port 7048 is listed as TCP and listening
How to start the web service?
But when I tried to run the web services can’t reach this page message is displayed in browser.

PS. I have disabled firewall, set rule to allow the port (7048) and also checked on enable OData Services in NAV Administration.
1. In command prompt I wrote the following code and I found that port 7048 is listed as TCP and listening
netstat -an
2. When Write following in Cmd following outpot is shown
telnet host 7048
---> Connecting To host...Could not open connection to the host, on port 7048: Connect failedHow to start the web service?
↧
NAV 2016 - Writing multiple lines in Record link table in Notes
Hi Folks -
In the Record link table I need to write multiple lines in the Notes blob field. I tried using the below function, it works for 1 line using the standard NAV Settext function. I tried calling the same function with different text but it takes the last one. How can I write multiple lines in the Notes blob field. Something like
Customer No - 10000
Credit limit - 20000
Division - 100
Any help is highly appreciated. Thanks RJ
RecordLink.RESET;
RecordLink.INIT;
RecordLink."Link ID" := LinkNo;
RecordLink."Record ID" := RecRef.RECORDID;
RecordLink.URL1 := GETURL(CLIENTTYPE::Current, COMPANYNAME, OBJECTTYPE::Page, PAGE::"Customer Card");
RecordLink.Type := RecordLink.Type::Note;
RecordLink.Created := CURRENTDATETIME;
RecordLink."User ID":=USERID;
RecordLink."To User ID" := "To user ID";
RecordLink.Company:=COMPANYNAME;
RecordLink.Notify := TRUE;
SetText('Customer No. - 10000',RecordLink);
SetText('Credit Limit - 20000',RecordLink);
SetText('Division Code - 1100',Recordlink);
RecordLink.INSERT;
LOCAL SetText(NoteText : Text;VAR RecordLink : Record "Record Link")
ps := NoteText;
SystemUTF8Encoder := SystemUTF8Encoder.UTF8Encoding;
SystemByteArray := SystemUTF8Encoder.GetBytes(s);
RecordLink.Note.CREATEOUTSTREAM(Ostr);
lx := SystemByteArray.Length DIV 128;
IF x > 1 THEN
y := SystemByteArray.Length - 128 * (x - 1)
ELSE
y := SystemByteArray.Length;
c1 := y;
Ostr.WRITE(c1);
IF x > 0 THEN BEGIN
c2 := x;
Ostr.WRITE(c2);
END;
FOR i := 0 TO SystemByteArray.Length - 1 DO BEGIN
c1 := SystemByteArray.GetValue(i);
Ostr.WRITE(c1);
END;
In the Record link table I need to write multiple lines in the Notes blob field. I tried using the below function, it works for 1 line using the standard NAV Settext function. I tried calling the same function with different text but it takes the last one. How can I write multiple lines in the Notes blob field. Something like
Customer No - 10000
Credit limit - 20000
Division - 100
Any help is highly appreciated. Thanks RJ
RecordLink.RESET;
RecordLink.INIT;
RecordLink."Link ID" := LinkNo;
RecordLink."Record ID" := RecRef.RECORDID;
RecordLink.URL1 := GETURL(CLIENTTYPE::Current, COMPANYNAME, OBJECTTYPE::Page, PAGE::"Customer Card");
RecordLink.Type := RecordLink.Type::Note;
RecordLink.Created := CURRENTDATETIME;
RecordLink."User ID":=USERID;
RecordLink."To User ID" := "To user ID";
RecordLink.Company:=COMPANYNAME;
RecordLink.Notify := TRUE;
SetText('Customer No. - 10000',RecordLink);
SetText('Credit Limit - 20000',RecordLink);
SetText('Division Code - 1100',Recordlink);
RecordLink.INSERT;
LOCAL SetText(NoteText : Text;VAR RecordLink : Record "Record Link")
ps := NoteText;
SystemUTF8Encoder := SystemUTF8Encoder.UTF8Encoding;
SystemByteArray := SystemUTF8Encoder.GetBytes(s);
RecordLink.Note.CREATEOUTSTREAM(Ostr);
lx := SystemByteArray.Length DIV 128;
IF x > 1 THEN
y := SystemByteArray.Length - 128 * (x - 1)
ELSE
y := SystemByteArray.Length;
c1 := y;
Ostr.WRITE(c1);
IF x > 0 THEN BEGIN
c2 := x;
Ostr.WRITE(c2);
END;
FOR i := 0 TO SystemByteArray.Length - 1 DO BEGIN
c1 := SystemByteArray.GetValue(i);
Ostr.WRITE(c1);
END;
↧
↧
Pass -settings switch to DynamicsNAV:// protocol handler?
Hi there,
I'm using the following way to open my client:
"C:\Program Files (x86)\Microsoft Dynamics NAV\100\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe" -settings:"C:\Users\someuser\AppData\Roaming\Microsoft\Microsoft Dynamics NAV\100\testsettings.config"
Is there any way to achieve the same using the "DynamicsNAV://" protocol handler url? Something like this:
"DynamicsNav://xxx:10046/yyy//" -settings:"C:\Users\someuser\AppData\Roaming\Microsoft\Microsoft Dynamics NAV\100\testsettings.config" (<- that doesn't work - it ignores the settings switch)
(Reason: I need to put that url into the "Windows Client Base URL"-field of the server instance to force use a certain config file with that instance)
Thanks in advance!
Markus
I'm using the following way to open my client:
"C:\Program Files (x86)\Microsoft Dynamics NAV\100\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe" -settings:"C:\Users\someuser\AppData\Roaming\Microsoft\Microsoft Dynamics NAV\100\testsettings.config"
Is there any way to achieve the same using the "DynamicsNAV://" protocol handler url? Something like this:
"DynamicsNav://xxx:10046/yyy//" -settings:"C:\Users\someuser\AppData\Roaming\Microsoft\Microsoft Dynamics NAV\100\testsettings.config" (<- that doesn't work - it ignores the settings switch)
(Reason: I need to put that url into the "Windows Client Base URL"-field of the server instance to force use a certain config file with that instance)
Thanks in advance!
Markus
↧
Extending Code Field 20 -> 40
Hello,
we have an internal discussion where I need your advice.
As long as I develop NAV changing fieldlength is always a thing where you have to think about alternatives for this.
I would change the field and search all related fields and functions and so on ..
BUT a collegue wants to do this by exporting all objects as text and replace ALL Code[20] fields to Code[40]. ALL Code fields.
What I need from the best community is pros and cons for this approach. I'm absolutely against this.
So correct my standing or tell me why this is a bad idea. I need some good arguments.
we have an internal discussion where I need your advice.
As long as I develop NAV changing fieldlength is always a thing where you have to think about alternatives for this.
I would change the field and search all related fields and functions and so on ..
BUT a collegue wants to do this by exporting all objects as text and replace ALL Code[20] fields to Code[40]. ALL Code fields.
What I need from the best community is pros and cons for this approach. I'm absolutely against this.
So correct my standing or tell me why this is a bad idea. I need some good arguments.
↧
Wrong Result return RunOnClient = No
Hi,
According to MSDN we can define the dot net interpo is running at Client or Server side. But some of the case it working on Server Side but return result is taking from client information. I don't know what is the reason of this. Does anybody face this issue?
Regards,
According to MSDN we can define the dot net interpo is running at Client or Server side. But some of the case it working on Server Side but return result is taking from client information. I don't know what is the reason of this. Does anybody face this issue?
Regards,
↧
Dynamic rectangle size inside a table row
Hi all,
I have a rectangle placed into a table row. It contains another table inside with hidden expression on several rows. My problem is when the table is smaller than its max size (for example 2 out of 7 rows are visible) the size of the table row that contains the rectangle still 7 rows high. how can I make it dynamically change it heights according to the amount of visible rows ?
I have a rectangle placed into a table row. It contains another table inside with hidden expression on several rows. My problem is when the table is smaller than its max size (for example 2 out of 7 rows are visible) the size of the table row that contains the rectangle still 7 rows high. how can I make it dynamically change it heights according to the amount of visible rows ?
↧
↧
get item selection by just typing value for No 2 field
Dear Friends,
As you know that there is no bar-code field in Item master. I want scan bar code value and store in No 2 field.
when user scan the bar code in sale order , the system should bring the item into sales line table.
Please advice
Warm Regards
Kris
As you know that there is no bar-code field in Item master. I want scan bar code value and store in No 2 field.
when user scan the bar code in sale order , the system should bring the item into sales line table.
Please advice
Warm Regards
Kris
↧
Data lost during upgrade
Hi all,
I am upgrading a database from 2009 to 2018 and I faced an issue. After the upgrade the table 77 Report selections does not contain 2 tables that were present at clean 2018 Navision. Reports 116 Statement and 1303 Standard Sales - Draft Invoice are present into a database but are missing in the table 77.
Any ideas why do that entries disappear?
I am upgrading a database from 2009 to 2018 and I faced an issue. After the upgrade the table 77 Report selections does not contain 2 tables that were present at clean 2018 Navision. Reports 116 Statement and 1303 Standard Sales - Draft Invoice are present into a database but are missing in the table 77.
Any ideas why do that entries disappear?
↧
Enable Navigate button previous/next records in page
Hi everyone,
I don't know why but my page have the "next" and the "previous" button disabled like the image below
![23nv9gsz44ow.png]()
if i create a new receipt this buttons isnt working.. what i need to do?
![weq1hofr9wdq.png]()
I need to when clicking in those buttons navigate throw the records.. In purchase order this is ok but how to put this in my page?
I don't know why but my page have the "next" and the "previous" button disabled like the image below

if i create a new receipt this buttons isnt working.. what i need to do?

I need to when clicking in those buttons navigate throw the records.. In purchase order this is ok but how to put this in my page?
↧
Obsolete and duplicate actions still visible after Data upgrade from Nav 2013 R2 to Nav 2018 CU2
Hi..We have a customer database which is upgraded from Nav 2013 R2 to Nav 2018 Cu2. After upgrading the database,we where still able to see some obsolete actions in Nav 2018 CU2 as well as duplicate actions for Statistics,Release etc in some page among which only one action performs operations when selected.
For Example:Credit Cards Action is present in Nav 2013 R2 which is obsolete in 2018 CU2
![4mhbjdpg3zhp.png]()
This happens only in the customer environment.
1)Customer environment has Nav2018 CU2 installed.
2)Same database is restored in an other server.Still the problem exists.
3)We imported all upgraded objects set in an other server on top of Cronus database.This problem doesn't occur.
However since its an upgrade customer data needs to be there.
Could you guys let us know valuable inputs.Thanks in advance
For Example:Credit Cards Action is present in Nav 2013 R2 which is obsolete in 2018 CU2

This happens only in the customer environment.
1)Customer environment has Nav2018 CU2 installed.
2)Same database is restored in an other server.Still the problem exists.
3)We imported all upgraded objects set in an other server on top of Cronus database.This problem doesn't occur.
However since its an upgrade customer data needs to be there.
Could you guys let us know valuable inputs.Thanks in advance
↧
↧
Sql Error sync-navtenant error NAV18
I´m upgradaing from Nav 13 to Nav 18, when ´m trying to compile objects I´m getting this error
The following SQL error was unexpected:Incorrect syntax near '$7'.
In the Event Viewer
Message:
<ii>El siguiente error SQL no se esperaba:
Incorrect syntax near '$7'.
Instrucción SQL:
DECLARE @StatisticsToDrop NVARCHAR(MAX);
SELECT @StatisticsToDrop = COALESCE(@StatisticsToDrop +', ', '') + '[Ex$Cust_ Ledger Entry].'+ s.name
FROM sys.stats AS s
INNER JOIN sys.stats_columns AS sc ON (s.stats_id = sc.stats_id AND sc.object_id = s.object_id)
INNER JOIN sys.all_columns AS c ON (c.column_id = sc.column_id AND c.object_id = s.object_id)
WHERE s.object_id = OBJECT_ID('Ex$Cust_ Ledger Entry')
AND (c.name = 'Customer Posting Group' OR
c.name = 'Salesperson Code' OR
c.name = 'No_ Series' )
@ROWCOUNT > 0 BEGIN
SET @StatisticsToDrop = CONCAT('drop statistics ', @StatisticsToDrop)
EXECUTE sp_executesql @StatisticsToDrop
END
Any Idea?
The following SQL error was unexpected:Incorrect syntax near '$7'.
In the Event Viewer
Message:
<ii>El siguiente error SQL no se esperaba:
Incorrect syntax near '$7'.
Instrucción SQL:
DECLARE @StatisticsToDrop NVARCHAR(MAX);
SELECT @StatisticsToDrop = COALESCE(@StatisticsToDrop +', ', '') + '[Ex$Cust_ Ledger Entry].'+ s.name
FROM sys.stats AS s
INNER JOIN sys.stats_columns AS sc ON (s.stats_id = sc.stats_id AND sc.object_id = s.object_id)
INNER JOIN sys.all_columns AS c ON (c.column_id = sc.column_id AND c.object_id = s.object_id)
WHERE s.object_id = OBJECT_ID('Ex$Cust_ Ledger Entry')
AND (c.name = 'Customer Posting Group' OR
c.name = 'Salesperson Code' OR
c.name = 'No_ Series' )
@ROWCOUNT > 0 BEGIN
SET @StatisticsToDrop = CONCAT('drop statistics ', @StatisticsToDrop)
EXECUTE sp_executesql @StatisticsToDrop
END
Any Idea?
↧
Accounting Period in DB1 FA Depreciation Method
Hi all,
As we know, the standard DB1 depreciation method of FA in NAV is considering the system's accounting period when calculating the depreciation.
For example, if the depreciation starting date is 1 March 2018 (No. of depreciation year = 4) and the accounting period is from Jan-Dec, by using DB1 depreciation method, NAV will calculate the depreciation until Dec 2018 and take the Dec 2018 book value as Jan 2019 depreciation basis.
By using the same depreciation method, is it possible to use different accounting period (which depends on the FA depreciation starting date) to calculate the FA depreciation? (i.e. if FA depr. Starting Date = April 2018, then the accounting period will be April '18 - March '19)
Thank you
As we know, the standard DB1 depreciation method of FA in NAV is considering the system's accounting period when calculating the depreciation.
For example, if the depreciation starting date is 1 March 2018 (No. of depreciation year = 4) and the accounting period is from Jan-Dec, by using DB1 depreciation method, NAV will calculate the depreciation until Dec 2018 and take the Dec 2018 book value as Jan 2019 depreciation basis.
By using the same depreciation method, is it possible to use different accounting period (which depends on the FA depreciation starting date) to calculate the FA depreciation? (i.e. if FA depr. Starting Date = April 2018, then the accounting period will be April '18 - March '19)
Thank you
↧
Create continous report in SSRS
Report wise, does anyone here has successfully create a continous report that is printed on dot matrix printer?
I've been developing a similar report and have zero success rate to print the report. The problem was SSRS will automatically change the page orientation based on the paper size and and ruined the report design. For example, if the paper width = 8 and height =4, SSRS will automatically change the page orientation to landscape
Is this a SSRS normal behaviour? If it is, I wonder if there is workaround solution to disable the functionality? If it's not possible, do you guys have any idea on how to create such report?
Thanks.
I've been developing a similar report and have zero success rate to print the report. The problem was SSRS will automatically change the page orientation based on the paper size and and ruined the report design. For example, if the paper width = 8 and height =4, SSRS will automatically change the page orientation to landscape
Is this a SSRS normal behaviour? If it is, I wonder if there is workaround solution to disable the functionality? If it's not possible, do you guys have any idea on how to create such report?
Thanks.
↧
Problem using a WebService from a Web App
Hi everyone,
I'm finding an issue with the upgrad and migration of NAV. In the old server, I was running a self developed WebApp, that was consuming different webServices from NAV2013 without any problem. The WebApp is develoepd in C#.
Now, I've migrated NAV to a new server, and upgraded to NAV2018. In the WebApp, I've changed the references to the webService in the new server. I'm connecfting to the app forms without any problem, but when it needs to use any of the webServices, I found this error in the Event Viewer:
The access to Nav is navUserPassword.
Any hint with this issue? If any infor is needed, I will ansewr inmediately, I'm quite desperate with this...
Thank you all
I'm finding an issue with the upgrad and migration of NAV. In the old server, I was running a self developed WebApp, that was consuming different webServices from NAV2013 without any problem. The WebApp is develoepd in C#.
Now, I've migrated NAV to a new server, and upgraded to NAV2018. In the WebApp, I've changed the references to the webService in the new server. I'm connecfting to the app forms without any problem, but when it needs to use any of the webServices, I found this error in the Event Viewer:
Event code: 3005
Event message: Excepción no controlada.
Event time: 17/04/2018 9:33:56
Event time (UTC): 17/04/2018 7:33:56
Event ID: 1377ba09b69b4676912727c7c2a74b71
Event sequence: 12
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/2/ROOT/Picking-1-131684240033263190
Trust level: Full
Application Virtual Path: /Picking
Application Path: C:\Websites\Picking\
Machine name: SRV-DC01
Process information:
Process ID: 4724
Process name: w3wp.exe
Account name: IIS APPPOOL\Website
Exception information:
Exception type: WebException
Exception message: Error de la solicitud con el código de estado HTTP 401: Unauthorized.
en System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
en System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
en WebService.PDAMgt.ExistePicking(String numPicking)
en Picking.Entrada.txtCodigo_TextChanged(Object sender, EventArgs e)
en System.Web.UI.WebControls.TextBox.OnTextChanged(EventArgs e)
en System.Web.UI.Page.RaiseChangedEvents()
en System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Request information:
Request URL: http://srv-dc01:8090/Picking/Entrada.aspx
Request path: /Picking/Entrada.aspx
User host address: 192.168.2.140
User:
Is authenticated: False
Authentication Type:
Thread account name: IIS APPPOOL\Website
Thread information:
Thread ID: 7
Thread account name: IIS APPPOOL\Website
Is impersonating: False
Stack trace: en System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
en System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
en WebService.PDAMgt.ExistePicking(String numPicking)
en Picking.Entrada.txtCodigo_TextChanged(Object sender, EventArgs e)
en System.Web.UI.WebControls.TextBox.OnTextChanged(EventArgs e)
en System.Web.UI.Page.RaiseChangedEvents()
en System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Custom event details:
The access to Nav is navUserPassword.
Any hint with this issue? If any infor is needed, I will ansewr inmediately, I'm quite desperate with this...
Thank you all
↧
↧
Store must be open for this operation from Excel Buffer (NAV 2016 CU 26)
Dear All,
The following error message occurs during Export to Excel Report. The report is build on Excel Buffer Table.
As recomended, I have changed the values in OperationTimeout, MaxUploadSize (In Server Level) & MaxNoOfXMLRecordsToSend (In client Level), though it's showing the same error message.
What is the solution ?
Kindly reply.
Thanks,
navuser1
The following error message occurs during Export to Excel Report. The report is build on Excel Buffer Table.
A call to Microsoft.Dynamics.Nav.OpenXml.Spreadsheet.Workbook Writer.Dispose failed with this message: Store must be open for this operation
As recomended, I have changed the values in OperationTimeout, MaxUploadSize (In Server Level) & MaxNoOfXMLRecordsToSend (In client Level), though it's showing the same error message.
What is the solution ?
Kindly reply.
Thanks,
navuser1
↧
lot number of product dont appear in invoice report
o, I'm trying to show a product with multiple lot numbers in a invoice, but it isn't appearing..
In the table Item entry Relation I have two lot as the image below show
![aph5tgtnpm0k.png]()
So now I want to print the invoice and the cyan section is not shown and the yellow background don't print anything.
![uqh89516l1na.png]()
Here I have a example of a old invoice where everything is working... Am i putting the wrong info in the table Item Entry Relation which is the base of the report I'm building?
![d0qehs2abvni.png]()
In my report the cyan section is the Lot Number and the yellow section is a label with the lot No.
![dj3ucrip1qd2.png]()
Anyone can figure what's happening?
In the table Item entry Relation I have two lot as the image below show

So now I want to print the invoice and the cyan section is not shown and the yellow background don't print anything.

Here I have a example of a old invoice where everything is working... Am i putting the wrong info in the table Item Entry Relation which is the base of the report I'm building?

In my report the cyan section is the Lot Number and the yellow section is a label with the lot No.

Anyone can figure what's happening?
↧
Dynamic Nav Android App call Android app to barcode result
<https://blogs.msdn.microsoft.com/nav/2017/07/21/qr-code-with-microsoft-dynamics-nav-app/>
I've followed this guide to implement barcode reading on Dynamics Nav App, however its not very accurate. Android camera keeps going out of focus, resulting image is quite noisy.
The decoding function is deployed on .NET assemblies so I was wondering, deploying from .NET assemblies could I call a Barcode Scanner App in android app to scan the Barcode and return the result?
I've followed this guide to implement barcode reading on Dynamics Nav App, however its not very accurate. Android camera keeps going out of focus, resulting image is quite noisy.
The decoding function is deployed on .NET assemblies so I was wondering, deploying from .NET assemblies could I call a Barcode Scanner App in android app to scan the Barcode and return the result?
↧