Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all 10032 articles
Browse latest View live

Batch Report

$
0
0
Hi everyone,

I'm trying to create a batch report/routine that automatically updates all open POs that contain items that have had their purchase price quotes updated.
This batch report will update the relevant cost/etc.. information on the purchase order lines from the item card

Can anyone please help me with such a task!?

Thank you so much in advance

Trying to openEdit a General Journal TestPage

$
0
0
Hi,
I'm trying to test the Post Action in TestPage General Journal, but when i use the OpenEdit() it always returns an error saying that i can't open the page. If i don't put this option the returned error is "This Page is not open".

Here is my code
var
LibJournal: Codeunit "Library - Journals";
GenJournal: TestPage "General Journal";


LibJournal.CreateGenJournalLineWithBatch(GenjournalLine, DocumentType::" ", AccountType::Vendor, Vendor."No.", 0);
GenJournal.OpenEdit();
GenJournal.GoToRecord(GenjournalLine);
GenJournal.Post.Invoke();

I've tried different libraries, creating batches and templates separately, but nothing seems to work.
Any ideas?
Thanks in advance

where is bank sort code and account no

$
0
0
hi, im using nav 13 but cant see sort code and account no? i have them in my old nav? why are they not there? i am using GB verison

SetRange in Dataport

$
0
0
Hi,

Primary: Boolean
Item: Code 20

I'm trying to import a CSV file using Dataport. This CSV file has multiple records.
I want to check if there are any records in the table before importing the CSV file, if so, then if their Primary field is true, then before importing the CSV File I want to set that Primary field to be false, otherwise just proceed to import all the records.

Can anyone help me with how would I SetRange and access the previous record and search for that field?
Any help would be appreciated.

Regards.

Illustrator Tech Pack Fashion integration NAV

$
0
0
Hello,
I would like to discuss a possible project to implement and i would be open to read some ideas.
Designers fashion use Illustrator or speadsheets to make their tech pack fashion.
Imagine a scenario where designers build their tech pack in illustrator and the goal here is to intregate with nav's manufacturer so that the productions would automatically created.

The problem here is that i don't know what kind of file can illustrator export, or if there is a middle solution in order to integrate Illustrator / NAV

I am available to read any sugestions .

Thanks

Debug Onprem with AAD Authentication

$
0
0
Hi!
We have a customer that has a onprem envrionment with AAD authentication.
Is it possible to debug a user session that is connected with AAD?

What I can read it isnt possible which is really awful if that is through.
"AAD authentication is supported only for Dynamics 365 Business Central sandboxes. AAD authentication cannot be used for on-premise servers."
https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-json-files

What have you done to be able to debug your customer users?

Problem using TLS12/13 for connection with webService

$
0
0
Hi everyone,

I am working with NAV 2018, installed windows server 2012 R2 standard.

I have created a a few years ago an integraion with an external webService. it is working perfectly, but they are changing the security protocol to use TLS 1.2 or 1.3. The system administrators from the webService gave me a new URL for testing that we can connect via TLS1.2 or higher. I'm jsut changing the URL in my development, and I get this error(filtering traffic with fiddler):

y6mkur4i6j08.png


This is the error in NAV:

0amjp27w5ihk.png


"Error in call System._ComObjectSend with the message: Cannot finde the specified resource"

The code is like this:
ServicePointManager.SecurityProtocol := SecurityProtocolType.Tls13;
  
 
  IF ISCLEAR(XMLHTTP) THEN
    CREATE(XMLHTTP,FALSE,TRUE);
  XMLHTTP.open('POST', 'https://express5.xxx.com/expressconnect/shipping/ship',0,User,PSWD);
  XMLHTTP.setRequestHeader('Content-Type: ', 'application/x-www-form-urlencoded');
  XMLHTTP.setRequestHeader('Host','express5.xxx.com');
  XMLHTTP.setRequestHeader('SOAPAction', 'https://express5.xxx.com/expressconnect/shipping/ship');
  
  XMLText := 'xml_in=' +  XMLDocDotNet.OuterXml;
  XMLHTTP.send(XMLText);

It worries me that may be it will be an issue with the server, or any setting of it..

Any hint? Thank you all

Webservice with table datapercompany=no

$
0
0
Hello,

Business Central Spring Edition,

We have Table1, with datapercompany=yes.
this table has a field with a relation to table2
table2 is datapercompany=no.

Via webservice, we add a value to table2
and after, add a line to table 1 => Error : related info in table1 doesn't exist ...
If we look into the table with classic client, the data is ok on table1.

If we do the same with table2, datapercompany=yes, no problem.

the problem is with datapercompany=no.
If we insert manually, with classic client, the data in table2, same error with table 1.


When we call a webservice, the url contains always a companyname
/WS/companyname/page/NameOfPage same url with datapercompany=yes or no.

If we restart the webservice service, it's ok, but not a solution...


How to correct this problem ?

Thx





Security protocol TLS 1.2 in Dynamics NAV 2013

$
0
0
Hi out there!

I am trying to increase a web requests security protocol in order to access a web service which is requiring TLS 1.2.
My default SSL is not accepted.

The request is send from Dynamics NAV 2013 (7.00).

I have of course searched for a solution to this problem elsewhere. One single line should be enough:
ServicePointManager.SecurityProtocol := 3072;

This however does not grant me access to the server.


HttpWebRequest := WebRequest.Create(txtURLiLG);

ServicePointManager.SecurityProtocol := 3072; // 3072 = Tls12 (TLS 1.2)

HttpWebRequest.Timeout := 600000; // 10 minutes
HttpWebRequest.ReadWriteTimeout := 600000; // 10 minutes

HttpWebRequest.ContentType := 'text/xml;charset=utf-8';
HttpWebRequest.Method := 'POST';
SystemTextUTF8Encoding := SystemTextUTF8Encoding.UTF8Encoding();
Bytes := SystemTextUTF8Encoding.GetBytes(XMLDoc.InnerXml);
HttpWebRequest.ContentLength := Bytes.Length;
RequestStream := HttpWebRequest.GetRequestStream();
RequestStream.Write(Bytes, 0, Bytes.Length);
RequestStream.Close;


Do any of you have a hint setting securety protocol to TLS 1.2 in Dynamics NAV?

Thanks.

Best regards
Jan

Zetadocs Express Addin unable to open docs without Internet Explorer

$
0
0
As Internet Explorer is being discontinued later in the year, we have started disabling it in pcs. An issue we discovered though is Zetadocs Express addin is unable to open any documents without IE. Nothing happens. We raised it with Equisys, who informed us of the below KB.

https://www.equisys.com/Support/Technotes/info-documents-in-factbox-open-in-internet-explorer

Basically, they have no solution for it. We have tried a few workarounds (ie hacks) to try and hijack the call and force it to open in a PDF client, or Edge browser, but to no avail. It seems that it is very hard coded to use the IE browser. I wonder if anyone has found a workaround for this at all?

We are using NAV 2018 first release, with the Windows client.

Export to Excel

$
0
0
Hello, a user have to connect to navision using RDP. When she tries to export Vendor ledger entries to Excel, a blank Excel sheet opens. When she tried to copy the lines from Navision and paste it on the Excel installed on her Laptop, the format of the amount changes. For all 4 figures amount, the formatting is as Text and for the 3 figures amount it is as Number.

It does not seem to be a permission or Excel issue because when we tried to connect to Navision on the server with her user credentials, the export to excel and Copy paste of the vendor ledger entries work fine.

Any hint of how to resolve it?

BACS - how to chnage the exported file format

$
0
0
hello, how do you chnage the bacs format in the exported file

BACS bulk file missing

$
0
0
hello! in the old NAV there was export to a bulk file, where is this option in the newer NAV

NAV 2015 Bug? TableRelation and Enabled with condition

$
0
0
Recently I encountered a reproducable NAV 2015 client crash that took me a while to understand.

Table "A" contains a field "Ref B"(Code 20) that is used to reference Table "B". Therefore the Field "Ref B" has its property TableRelation to "Table B"."PK Field".

Page "Card A" uses table "A" as SourceTable.
An action "Show Card B" opens RunObject "Page Card B" with RunPageLink "PK Field"=FIELD("Ref B").

This works without problems.
Now I wanted to disable the Action as long as the Link to Table B is empty. So I added a check to the action's "Enabled" property:
"Ref B"<>''

From now on the NAV Client crashes (=closes without any notice) as soon as I try to open Page "Card A".

Everything works fine if i either
- remove the condition from Enabled in tha action or
- remove the TableRelation from Table "A"


Is this a known bug? Does it persist in newer NAV (or Dynamics) versions?
It there a workaround (aside from removing one or the other)? ;-)

Problem with jobs in the work queue

$
0
0
Navision 2018.
Created a job in the work queue. Registered the schedule. The validity period is not limited. Everything works, but from time to time the task stops working. No error messages. What could be the reason for such strange behavior?

External Tables and distributed transactions

$
0
0
Hi all,
I am a fan of External Tables. I prefer them to the linked objects for their flexibility and no mandatory use of views.
I have a problem with this scenario. I have the SQL instance of Nav on a server while the external table points on a server on another instance SQL.

I have to write in the external table some informations about warehouse receipt lines. If I write with a test function all works fine.
If I call the same function during the post of the warehouse (Codeunit 5760 Whse.-Post Receipt) the records in the external tables are written, the warehouse is deleted but no posted warehouse appear!!

I have configured DTC (Microsoft Distributor Coordinator) in both servers.
Anyone have any suggestion to solve this problem?

The versione of Nav is Business Central 14.0

Thank you

Auto import file from folder (Job Queue) - Cloud BC

$
0
0
Hi all,
for cloud BC, are we able to auto import file from certain path or folder?
3rd party will export file to the certain folder..
then BC need to auto import from this folder.

Thanks.

Retrieve value from XML file with <

$
0
0
Hi

I am trying to retrieve values from a retrieved XML file after making a POST webservice call. The structure of the returned XML file is -

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
<soap:Body>
<CalculateRateResponse xmlns="http://external website address">
<CalculateRateResult><Connote Entity="PK0"><_currency>&#163;</_currency><accno>123456</accno><carrierid>4</carrierid><carriername>Test Carrier1</carriername><carrzone>ZONE 1</carrzone><chgwgt>5</chgwgt><condate>31/03/2021</condate><currency>GBP</currency><datelong>20210331</datelong><deliverytimeraw>[none]</deliverytimeraw><freightlinedetails><amt>10</amt><cube>0.1</cube><desc>Piece</desc><ref>101002</ref><wgt>5</wgt><youritemdesc>MEXICO Swivel Chair, black</youritemdesc></freightlinedetails><fromzone>ZONE 1</fromzone><grandtotmrkup>0.00</grandtotmrkup><grandtotpostpickuprate>0.00</grandtotpostpickuprate><grandtotrate>0.00</grandtotrate><gstamount>0.00</gstamount><gstonmrkup>0.00</gstonmrkup><mrkupchrg>0.00</mrkupchrg><postpickupgst>0.00</postpickupgst><rate>0.00</rate><rateerror>An Applicable rate could not be found!</rateerror><rateerrorgeoloc>Unable to determine Geo Location</rateerrorgeoloc><recaccno>TEST</recaccno><recaddr><add1>Station Road, 21</add1><add3>Cambridge</add3><add4>Cambridgeshire</add4><add5>CB1 2FB</add5><add6>UNITED KINGDOM</add6></recaddr><recloc>0,0</recloc><recname>TEST RECEIVER</recname><rtzexpire>999912312359</rtzexpire><sendaddr><add1>7122 South Ashford Street</add1><add3>London</add3><add4>Greater London</add4><add5>W2 8HG</add5><add6>UNITED KINGDOM</add6></sendaddr><sendloc>0,0</sendloc><sendname>SENDER NAME</sendname><service>PARCEL</service><taxrate>20</taxrate><totalcost>0.00</totalcost><totcostplusmrkup>0.00</totcostplusmrkup><totcube>0.1</totcube><totdgcharge>0.00</totdgcharge><totitems>10</totitems><totlevy>0.00</totlevy><totpostpickuprecovery>0.00</totpostpickuprecovery><totsurchrg>0.00</totsurchrg><totwgt>5</totwgt></Connote></CalculateRateResult>
</CalculateRateResponse>
</soap:Body>
</soap:Envelope>

From the returned file I would like to extract certain values such as carriername (Test Carrier1) however struggling. Please could you advise on what the best approach would be to extract fields from a file with a structure like the above

Thanking you all in advance for any assistance.

Regards
Gurn

FIFO Unit Cost with lots

$
0
0
Hi all,

For what i understand NAV allows the item to be batch(Lot) tracked

Purchases:
Posting date = 01/01/2021
Item code = A
Qty = 1
Item cost = 1000
Lot No = A1

Posting date = 02/02/2021
item code = A
Qty = 1
Item cost = 2000
Lot no = A2

When we make a sales order :
Posting date = 03/03/2021
Item code = A
qty = 1
Item Price = 3000
Lot No =A2 ( that means system has to take the item cost = 2000 /-)

Is there any chance that using FIFO the system can always take in consideration the unit cost of the first item in stock?
In the above case the unit cost should be 1000 , although i'm selling the Lot A2

Thanks for the help.

Field locked for editing

$
0
0
Hi,

I want to edit the last modification date in the Item Card after adding or modifying the Unit of Measure records but I have not succeeded and I suppose it is because the field is blocked

I have tried it this way:
    [EventSubscriber(ObjectType::Page, Page::"Item Units of Measure", 'OnInsertRecordEvent', '', true, true)]
    local procedure OnNewItem(var Rec: Record "Item Unit of Measure")
    var
        Item: Record Item;
        ItemCard: Page "Item Card";
    begin
        Item.SetCurrentKey("No.");
        Item.SetRange("No.", Rec."Item No.");
        if Item.FindSet() then begin
            Message('Successful in Item No.: %1', Item."No.");
            ItemCard.Editable := true;
            Item."Last Date Modified" := Today;
            Item."Last DateTime Modified" := CurrentDateTime;
            Item."Last Time Modified" := DT2time(CurrentDateTime);
            ItemCard.Update();
            ItemCard.Editable := false;
        end;
    end;

How can I unlock a field for editing after inserting or modifying records?
Viewing all 10032 articles
Browse latest View live


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