Hi all, I'm trying to modify all records in list in my OnClose trigger in page, I used Rec.Modify(TRUE) in my OnClose Trigger and it seems wrong, only the 1st record in the list has been modified and not all records. anyone know how to do this ? thanks in advance.
↧
Update All Records in List in OnClose Trigger Page
↧
Repeat Table Header in Report
any tricks or idea on how can i repeat table header in each page of the report ? thank in advance

↧
↧
API calling error
Hello experts.
I am consuming a API through NAV with POST method,all required parameters I passed.But still I m getting an error message.
if anybody faced this kind of error ever,then please tell me how to get resolve this.
![g2dbctg0w0nl.png]()
Code in NAV
![0ma8fpwg7jjm.png]()
![cuxcnd7lch84.png]()
Error messge.
![t74rdq9r2sdt.png]()
Kind Regards
I am consuming a API through NAV with POST method,all required parameters I passed.But still I m getting an error message.
if anybody faced this kind of error ever,then please tell me how to get resolve this.

Code in NAV


Error messge.

Kind Regards
↧
Error acces Lock TABLE in nav 2013
I have 2 reports who uses the same table. (pT_Filter --- TemporalFilter)
The table is in the 50000 range.
There are only a few lines referred to this table.
REPORT 50001
REPORT 50002
Sometimes, when I try to execute from differents users. (Or either from same user both reports at the same time). Nav throw me an error from this table is Locked
Maybe there is a problem in report 50001, but I cant explain myself why is this happening.
The table is in the 50000 range.
There are only a few lines referred to this table.
REPORT 50001
[b]OnPreReport[/b]
pT_Filter.RESET;
IF NOT pT_Filter.GET THEN
pT_Filter.INSERT;
pT_Filter."Date From CG21" := v_periodFrom;
pT_Filter."Date To CG21" := v_periodTo;
pT_Filter.MODIFY;
[b]OnPostReport[/b]
pT_Filter."Date From CG21" := '';
pT_Filter."Date To CG21" := '';
pT_Filter.MODIFY;
REPORT 50002
[b]OnPreReport[/b]
IF NOT pT_Filter.FINDFIRST THEN
pT_Filter.INSERT
ELSE BEGIN
pT_Filter.RESET;
pT_Filter.LOCKTABLE;
pT_Filter."Date from CG19" := text_from;
pT_Filter."Date to CG19" := text_to;
pT_Filter.MODIFY;
COMMIT;
END;
Sometimes, when I try to execute from differents users. (Or either from same user both reports at the same time). Nav throw me an error from this table is Locked
Maybe there is a problem in report 50001, but I cant explain myself why is this happening.
↧
How to select Language in a Encoding DotNET NAV Object
Hi guys.. I'm developing a report and I need select a language to work. How i can do it.. thanks.
This is my code:
StreamReader := StreamReader.StreamReader(InStr, Encoding.Unicode);
....
StreamWriter := StreamWriter.StreamWriter(OutStr, Encoding.Unicode);
FOR I := 0 TO STRLEN(linea) DO BEGIN
Char := COPYSTR(linea, I + 1, 1);
InStrFieldValue := InStrFieldValue + Char; //Char is a Chinese character i need a Spanish char
IF Char = ';' THEN
BEGIN
FillField(num_campo, InStrFieldValue);
num_campo += 1;
END;
END;
This is my code:
StreamReader := StreamReader.StreamReader(InStr, Encoding.Unicode);
....
StreamWriter := StreamWriter.StreamWriter(OutStr, Encoding.Unicode);
FOR I := 0 TO STRLEN(linea) DO BEGIN
Char := COPYSTR(linea, I + 1, 1);
InStrFieldValue := InStrFieldValue + Char; //Char is a Chinese character i need a Spanish char
IF Char = ';' THEN
BEGIN
FillField(num_campo, InStrFieldValue);
num_campo += 1;
END;
END;
↧
↧
Save file in Excel and Email on the fly - NAV 2016
I have a very simple processing only report that goes through the Sales Header table for Quotes only and adds User Id, Quote No. and Amount in excel per User ID. At the end of my loop I am calling CreateExcelBook. I just want to save this spreadsheet and send it out as a attachment to the user ID. Emailing is not a issue but my issue is how to save it as a excel file on the fly while the report is running.
I have seen post in this forum for old version of NAV but unfortunately those Excel buffer functions do not exist in NAV 2016 or have changed in NAV 2016.
Any help is highly appreciated.
Thanks
RJ.
I have seen post in this forum for old version of NAV but unfortunately those Excel buffer functions do not exist in NAV 2016 or have changed in NAV 2016.
Any help is highly appreciated.
Thanks
RJ.
↧
Question About Report funcions (SKIP)
Hello, how are you.. i'm new at NAV reports and i've some doubts about NAV Report functions. Could somone tell me if SKIP function makes a rollback of data process only for that record dataItem?
And the others funcions (QUIT, BREAK).
Thanks.
And the others funcions (QUIT, BREAK).
Thanks.
↧
NAV 2013 R2 - Why can't this URL field be longer than 20?
Hello,
I've created a new table and in this table there's a field called "Link", it's of type Text with a length of 50 and it's ExtendedDataType is set to URL.
When I try to insert anything above 20 characters I get the following error:
![4fjntrvemqzb.jpg]()
Is there some implicit restriction in NAV that doesn't allow more characters, or is there some property that I just can't seem to find that will allow more characters?
Best regards
Marcus
I've created a new table and in this table there's a field called "Link", it's of type Text with a length of 50 and it's ExtendedDataType is set to URL.
When I try to insert anything above 20 characters I get the following error:

Is there some implicit restriction in NAV that doesn't allow more characters, or is there some property that I just can't seem to find that will allow more characters?
Best regards
Marcus
↧
Table Run command not working in 2013?
The Run button is there but "the specified command is not supported". Will this change in RTM?
↧
↧
NAV 2009 R2 Web Service, URL works only if it is launched in NAV Server first?
We recently upgraded from 2009 SP1 to 2009 R2.
After NAV Server and Web Services are installed and configured in a 3-tier environment, we registered SPN using a Domain user account - stb4navwebsrvs.
C:\Users\silee>setspn -L stb4navwebsrvs
Registered ServicePrincipalNames for CN=stb4navwebsrvs,OU=Service Accounts,OU=IT
,OU=Locations,DC=stb,DC=com:
mssqlsvc/STBVMDEVNAVDB.stb.com:1433
mssqlsvc/STBVMDEVNAVDB:1433
MicrosoftDynamicsNavServer/STBVMDEVWEBSRVS.stb.com:7046
http/STBVMDEVWEBSRVS.stb.com:7047
http/stbvmdevwebsrvs
http/stbvmdevwebsrvs.stb.com
We also using "httpcfg set urlacl -u http://+:7047/DynamicsNAV/ -a
^(A;^;GX^;^;^;..." command to add stb4navwebsvrs to URLACL,
We made stb4navwebsrvs the Local Administrator to both the SQL Server and the NAV Server.
We also grant SUPER right to stb4navwebsrvs
But still, when I test this URL http://stbvmdevwebsrvs:7047/DynamicsNAV/WS/1481STB/services any where, I am getting this page back
- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
- <s:Body>
- <s:Fault>
<faultcode xmlns:a="urn:microsoft-dynamics-schemas/error">a:Microsoft.Dynamics.Nav.Types.NavDatabasePasswordException</faultcode>
<faultstring xml:lang="en-US">The login failed when connecting to SQL Server STBVMDEVNAVDB.</faultstring>
- <detail>
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">The login failed when connecting to SQL Server STBVMDEVNAVDB.</string>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
But if I run this command in stbvmdevwebsrvs, it returns the correct result, only then, any other PC's logged on with my name is returning the same result, if I run this URL.
- <discovery xmlns="http://schemas.xmlsoap.org/disco/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<contractRef ref="http://stbvmdevwebsrvs:7047/DynamicsNAV/WS/1481STB/SystemService" xmlns="http://schemas.xmlsoap.org/disco/scl/" />
<contractRef ref="http://stbvmdevwebsrvs:7047/DynamicsNAV/WS/1481STB/Page/EmployeeQualification" xmlns="http://schemas.xmlsoap.org/disco/scl/" />
<contractRef ref="http://stbvmdevwebsrvs:7047/DynamicsNAV/WS/1481STB/Page/EmplQualAPIDev" xmlns="http://schemas.xmlsoap.org/disco/scl/" />
</discovery>
Could anyone advise, what seems to be the issue?
Incidentally, I also make computer account stb\stbvmdevwebsrvs$ the owner of the Database and assign it with SUPER permission.
After NAV Server and Web Services are installed and configured in a 3-tier environment, we registered SPN using a Domain user account - stb4navwebsrvs.
C:\Users\silee>setspn -L stb4navwebsrvs
Registered ServicePrincipalNames for CN=stb4navwebsrvs,OU=Service Accounts,OU=IT
,OU=Locations,DC=stb,DC=com:
mssqlsvc/STBVMDEVNAVDB.stb.com:1433
mssqlsvc/STBVMDEVNAVDB:1433
MicrosoftDynamicsNavServer/STBVMDEVWEBSRVS.stb.com:7046
http/STBVMDEVWEBSRVS.stb.com:7047
http/stbvmdevwebsrvs
http/stbvmdevwebsrvs.stb.com
We also using "httpcfg set urlacl -u http://+:7047/DynamicsNAV/ -a

We made stb4navwebsrvs the Local Administrator to both the SQL Server and the NAV Server.
We also grant SUPER right to stb4navwebsrvs
But still, when I test this URL http://stbvmdevwebsrvs:7047/DynamicsNAV/WS/1481STB/services any where, I am getting this page back
- <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
- <s:Body>
- <s:Fault>
<faultcode xmlns:a="urn:microsoft-dynamics-schemas/error">a:Microsoft.Dynamics.Nav.Types.NavDatabasePasswordException</faultcode>
<faultstring xml:lang="en-US">The login failed when connecting to SQL Server STBVMDEVNAVDB.</faultstring>
- <detail>
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">The login failed when connecting to SQL Server STBVMDEVNAVDB.</string>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
But if I run this command in stbvmdevwebsrvs, it returns the correct result, only then, any other PC's logged on with my name is returning the same result, if I run this URL.
- <discovery xmlns="http://schemas.xmlsoap.org/disco/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<contractRef ref="http://stbvmdevwebsrvs:7047/DynamicsNAV/WS/1481STB/SystemService" xmlns="http://schemas.xmlsoap.org/disco/scl/" />
<contractRef ref="http://stbvmdevwebsrvs:7047/DynamicsNAV/WS/1481STB/Page/EmployeeQualification" xmlns="http://schemas.xmlsoap.org/disco/scl/" />
<contractRef ref="http://stbvmdevwebsrvs:7047/DynamicsNAV/WS/1481STB/Page/EmplQualAPIDev" xmlns="http://schemas.xmlsoap.org/disco/scl/" />
</discovery>
Could anyone advise, what seems to be the issue?
Incidentally, I also make computer account stb\stbvmdevwebsrvs$ the owner of the Database and assign it with SUPER permission.
↧
Nav 2016 Sales invoice unit price incl of tax not working
In Nav 2016, business requirement is, salesmen will enter unit price of incl tax. But in under sales invoice page ->Lines section-> i have added the column of unit price incl of tax, when i entered the value, it's not working with Qty, statistics in total incl Tax showing zero but when i entered with unit price exl of tax column, it working fine with QTY. it's GST structure not VAT. Please advise how to swap and make it working with unit price incl of taxes
↧
how to improve item ledger entry performance for NAV2015
I have upgraded from Nav 4.0 SP3 to NAV2015 and noticed that the item ledger entry is very slow when displaying the movements. Any idea how this can be improved. I have only 1 year of data for the item but it is very slower when compared to my old database containing 11 years of data.
Would appreciate very much if someone could advise?
Would appreciate very much if someone could advise?
↧
Finding applied cust. ledger entry
Hey,
i'm currently working on a project, and i need to find applied entries for a document type payment using C/AL. hope somebody can show a code snip on how to do it.
i'm currently working on a project, and i need to find applied entries for a document type payment using C/AL. hope somebody can show a code snip on how to do it.
↧
↧
Item Unit cost
Hi ,
We are using Nav 2016, Costing method is Weighted Average cost.
We receive an Item $2 from supplier A and will give to Supplier B to Modify that item. Supplier B will charge $.50 per item for Modification.
So Final Product value is $2.50 , how to capture the actual Unit cost in the system .
Thanks
We are using Nav 2016, Costing method is Weighted Average cost.
We receive an Item $2 from supplier A and will give to Supplier B to Modify that item. Supplier B will charge $.50 per item for Modification.
So Final Product value is $2.50 , how to capture the actual Unit cost in the system .
Thanks
↧
Nav 2016 invoice want in decimals 0.00 is not working
In nav 2016, in general ledger setup and sales & receivable and purchase & payable setup, all round precision is set 0.00, still when i enter unit price 40.2 for 2 qty, automatically instead 80.4 it's converted in 81 in the line. Also i've done setup the local currency ![bzk5uruqylsr.png]()
Please let me know how to turn off round precission
![678fc2l5wrrg.png]()

Please let me know how to turn off round precission

↧
Schema Sync, Definition has changed, etc
Question for folks. NAV 2017. I make a change to a table, say Job, and sync that one table immediately. Why is it, then, that the RTC client reports that the definition of the Sales Header has changed on Sales Order pages?
Am I missing something in how sync works these days? I have a vague memory that this might have to do with subscriptions.
Am I missing something in how sync works these days? I have a vague memory that this might have to do with subscriptions.
↧
Refresh button on ribbon not visible on Req. worksheet page customized page
Hi All,
There is strange issue happening with one of my customized page in nav 2016.
I did some customization on req. worksheet page, but somehow not able to view refresh button on ribbon.
I already checked in configuration mode but there also i cannot view the refresh button icon.
But if I run the same page on other database, i can able to view that icon.
for other worksheet type page like vouchers, I can view the refresh icon as well.
Can somebody help me to understand the issue please ?
There is strange issue happening with one of my customized page in nav 2016.
I did some customization on req. worksheet page, but somehow not able to view refresh button on ribbon.
I already checked in configuration mode but there also i cannot view the refresh button icon.
But if I run the same page on other database, i can able to view that icon.
for other worksheet type page like vouchers, I can view the refresh icon as well.
Can somebody help me to understand the issue please ?
↧
↧
Dimension Priority
Hi all,
I have a situation regarding how the dimension priority should work. We are using Dynamics NAV 2017, W1 version. The scenario is as follows:
Client has a global dimension for department, this department is extremely important to them, as it determines how reporting to the board is done. They are a print manufacturer which is very complicated. We have the expected cost turned on, as we need that to reflect in the GL at time of receipt or shipment of items, as well as consumption of raw materials.
The issue is this, the GRN Suspense account (2222010), which is the set as the Inventory accrual account (Interim) needs to have dimension department set to 140. The opposite side of that entry, to GL account Inventory Account (Interim) - (1711000) should post to dimension department 110.
I have these on the two GL accounts as the default dimension. In the dimension priority, I have set the GL table to be priority 1 for all source codes, and then the Item table as priority 2. The item I am purchasing does not have a default dimension set, not is it set to use any dimension.
When I create a PO for a Vendor and the item, the Vendor has no default dimensions. The PO is created with no dimensions at all, and when I try receive the PO line, I get an error that I need to enter the department dimension as 140 for GL account 2222010. This is set as the default dimension on the GL account. I then enter a dimension for the PO line, and set it to 140, and receive. The GL entries then post both sides to department 140, and not to the dimension set on the various GL accounts, and the GL is priority 1.
Sample of what should happen:
PO 100
Vendor ABC - No dimensions set. - Trade Payables GL account has department dimension set as 110 by default.
Item 101 - no dimension - The interim and Inventory accounts in the GL have the department dimension set by default. Accrual account (interim) - Department 140
Inventory account (Interim) - Department 110
No dimensions on the PO header or line.
When receipt, receive dimension error that department should be 140 for Accrual account, which it is in the actual account.
This has me stumped as to whether I will be able to accomplish the clients requirements.
Is there anyway for me to get around this? I basically need my PO receipt to post to separate department dimensions for both sides of the interim posting, and then when invoiced to same.
I don't see the dimension priority doing anything for me in this regard, as no matter what I change and setup, I get the same error at time of receipt.
Any insight or assistance on this would be greatly appreciated.
Thanks
Malcolm
I have a situation regarding how the dimension priority should work. We are using Dynamics NAV 2017, W1 version. The scenario is as follows:
Client has a global dimension for department, this department is extremely important to them, as it determines how reporting to the board is done. They are a print manufacturer which is very complicated. We have the expected cost turned on, as we need that to reflect in the GL at time of receipt or shipment of items, as well as consumption of raw materials.
The issue is this, the GRN Suspense account (2222010), which is the set as the Inventory accrual account (Interim) needs to have dimension department set to 140. The opposite side of that entry, to GL account Inventory Account (Interim) - (1711000) should post to dimension department 110.
I have these on the two GL accounts as the default dimension. In the dimension priority, I have set the GL table to be priority 1 for all source codes, and then the Item table as priority 2. The item I am purchasing does not have a default dimension set, not is it set to use any dimension.
When I create a PO for a Vendor and the item, the Vendor has no default dimensions. The PO is created with no dimensions at all, and when I try receive the PO line, I get an error that I need to enter the department dimension as 140 for GL account 2222010. This is set as the default dimension on the GL account. I then enter a dimension for the PO line, and set it to 140, and receive. The GL entries then post both sides to department 140, and not to the dimension set on the various GL accounts, and the GL is priority 1.
Sample of what should happen:
PO 100
Vendor ABC - No dimensions set. - Trade Payables GL account has department dimension set as 110 by default.
Item 101 - no dimension - The interim and Inventory accounts in the GL have the department dimension set by default. Accrual account (interim) - Department 140
Inventory account (Interim) - Department 110
No dimensions on the PO header or line.
When receipt, receive dimension error that department should be 140 for Accrual account, which it is in the actual account.
This has me stumped as to whether I will be able to accomplish the clients requirements.
Is there anyway for me to get around this? I basically need my PO receipt to post to separate department dimensions for both sides of the interim posting, and then when invoiced to same.
I don't see the dimension priority doing anything for me in this regard, as no matter what I change and setup, I get the same error at time of receipt.
Any insight or assistance on this would be greatly appreciated.
Thanks
Malcolm
↧
Job Queue Log Entries Time Zone
When I look at the Job Queue Log Entries, is the time the Job ran shown in my time zone? The actual company is in the UK - I see an Adjust Cost ran, according to the entry it ran at 11:01 a.m. I want to confirm 11:01 a.m., is Pacific Time Zone
↧
Table 1304 Sales Price & Discount Buffer Table - what is it for?
I populated Table 7002 Sales Price Table. When I go to the Item List, on the Ribbon there is an icon for Sales Price & Discount. When I open the icon - the information I populated Table 7002 with is there. What is the purpose of the Sales Price & Discount Buffer Table?
↧