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

URL in Dynamics NAV 2017's Outlook Integration

$
0
0
Hello guys!

Just wanna ask, I noticed that Outlook Integration in Dynamics NAV 2017 only uses the default instance. If I am going to use the regular NAV database, I don't have any errors. Meanwhile, when I use other databases (like LS Nav), I get into trouble. (Yeah, my boss wanted me to throw out to the window for not resolving this.)

The default NAV instance for NAV 2017 is DynamicsNAV100. I use port 10046 for the client services. So to say, Outlook Add-in looks at https:\\[My computer name]\DynamicsNAV100.

Let's say that I have an instance of LSNAV100 with database other than the NAV's demo database, is there any way for me to change the URL where the Outlook Integration looks at? Even LS Nav database has assisted setup so I assume that it should also work there.

Thanks!

Insert or Modify some code to codeunit using extension

$
0
0
Hello,

I have read some article in https://community.dynamics.com/nav/f/34/t/218002, that we can't change standard object using extension and we have to work some way around using event published by Microsoft.

But what if we really need to comment or add some code in the middle of the function? Because event published by Microsoft only OnAfter and OnBefore.

Is there really no other way?


Nav Upload data error

$
0
0

I Have checked the network , its working fine and it is the same. Did not understand

why out of the blue moon this issue has arose!

Enter Faction Values on NAV

$
0
0
Hello,

I would like to know if it is possible to save values as a fraction. IE: US and UK size charts where you have 28 3/4, etc
I don't know if there is any special property, like a SQL collation, or something that suports saving the data in this format.

Order no not displaying in ILE , after posting Item reclass journal

$
0
0
after posting item reclass journal , the order no in item reclass is not automatically being fetched and displayed in ITE.
Can anyone tell me , how this can be achieved... as i'm new in ERP NAV .

NAV Service (Windows Client) no connection with different URL (DNS)

$
0
0
Hi,

I have installed multiple NAV Services with Port Sharing. (LIVE, TEST with Windows Auth. and LIVE, TEST with NavUserPassword)
As example:
AD Domain: mydomain.local
NAV Service: navserv@mydomain.local

Services:
(Windows Auth)
LIVE
TEST
(NavUserPassword)
LIVEU
TESTU

Alle Services are working fine but ...

I added a new DNS Zone example.com for which we have a wildcard certificate which is already configured for the services. I created an A-Record "NAV" which holds the IP for the navserv Server. nav.example.com -> navserver@mydomain.local

When I start the service the net.tcp listener is listening for navserver@mydomain.local

Now I would like to use the external domain for the services.

When I try to access the Service from Windows Client with nav.example.com:8046/navservice I get the error
" A server was not found at "net.tcp://nav.example.com:8046/nav/Service". Either the URL is incorrect or the server is currently not available.
If I change the connection string back to localhost I can connect as expected.

Important things to know..
- Firewall is turned of
- Services are working with internal DNS records or even with ip
- nslookup nav.example.com is working on the server and delivers the correct ip
- ping nav.example.com is working (firewall is off)
- User is setup in nav
- Service User is setup correct ... Because all services are working with correct
- I'm testing the connection directly from the dns server where nav is installed. It's also the DC (I know ... )
-

Summary ...

localhost:8046/nav = OK
navserv.mydomain.local:8046/nav = OK
<IP>:8046/nav = OK
nav.example.com:8046/nav = NOK

ANY idea?






help call web service

$
0
0
I am trying to call web service basing me in the standard codeunit 10752 SII Doc. Upload Management.
I am calling to the codeunit that receive two parameters, code and description of a client and if the Client exist update the description.
Instead of receive the correct response like I am receiving when I call the web service with a external tools I am receiving the definition of the web service
I have the request in a XML document like this
<Envelope xmlns="schemas.xmlsoap.org/.../envelope">
    <Body>
        <ActuaCliente xmlns="urn:microsoft-dynamics-schemas/codeunit/Prueba1">
            <codigo>20000</codigo>
            <descripcion>cambio nombre</descripcion>
        </ActuaCliente>
    </Body>
</Envelope>

This is de code below ¿Any Idea?

Best Regards


WebServiceUrl := 'localhost/.../Prueba1';
Myfile.OPEN('D:\Pruebas\doc2.txt');
Myfile.CREATEINSTREAM(Request);


vbigtext.READ(Request);
vbigtext.GETSUBTEXT(TempString,1);
RequestText := TempString;
HttpWebRequest := WebRequest.Create(Uri.Uri(WebServiceUrl));

HttpWebRequest.UseDefaultCredentials(TRUE);
HttpWebRequest.Method := 'POST';
HttpWebRequest.ContentType := 'application/xml';
ByteArray := Encoding.UTF8.GetBytes(RequestText);
HttpWebRequest.ContentLength := ByteArray.Length;
MESSAGE(TempString);
IF NOT TryCreateRequestStream(HttpWebRequest,RequestStream) THEN BEGIN
  MESSAGE('ERROR');
  EXIT;
END;
RequestStream.Write(ByteArray,0,ByteArray.Length);
IF NOT TryGetWebResponse(HttpWebRequest,HttpWebResponse) THEN BEGIN
  MESSAGE('ERROR');
  EXIT;
END;
StatusCode := HttpWebResponse.StatusCode;
StatusDescription := HttpWebResponse.StatusDescription;
ResponseText := ReadHttpResponseAsText(HttpWebResponse);
MESSAGE(ResponseText);

IF NOT StatusCode.Equals(StatusCode.Accepted) AND NOT StatusCode.Equals(StatusCode.OK) THEN BEGIN
//  ProcessBatchResponseCommunicationError(
//    TempSIIHistoryBuffer,STRSUBSTNO(CommunicationErr,StatusDescription));
  EXIT;
END;

Send To Excel (Formatting Times)

$
0
0
I'm working with NAV 2016 database. When using "Send to Excel" functionality the time fields get automatically formatted as Military time. Meaning, if one of the fields has a value of 12:05am the send to excel exports it as 00:05. How can I fix that so Send To Excel keeps the time format as it is in NAV?

NAV2017 CU21 - Workflows and Warehouse Shipments

$
0
0
I have a Sales Order that went through approval process and is now Released.

It has a Warehouse Shipment attached. Now that the user is trying to post the shipment, the system is trying to reopen the sales order and kick off the approval process again - preventing the user from posting because approval is required.

The reopening and releasing comes in when the Posting Date on the Sales Order and the Warehouse Shipment is different. (Codeunit 5763)
However, the user is able to change the posting date on the Sales Order without needing to reopen the document.

Surely, reopen and release is then not needed?
Or the user will have to set the Sales Order Posting Date to the same as the Warehouse Shipment before posting - voiding the purpose of the code in the first place.


reupo6i8ifkh.png

Report designer Word

$
0
0
If I export and then import (without making any changes) I get an error someting like word document has an incorrect format, the file can't be readed. I don't get the problem.

Call an asmx web service from NAV

$
0
0
I am a complete beginner in web services. Can anyone please help me in call an external asmx web from NAV 2016 and pass a parameter during the call?
I understand this is not a step by step training forum, but a step by step process in calling the web service and then passing a parameter will rescue me.
My apologies ahead :s

D365 Business Central - Modify a Report

$
0
0
The question is simple. Which are the steps to modify a standard report in Business central?

How to rectify Posting Date of Consumption Entries on Finished Production Order

$
0
0
Dear Sir,

Unfortunately an User has noticed his mistake after changing the Production Order Status from Released to Finished. He noticed that He booked the Consumption Entries in wrong date.

How to rectify the posting date in nav 2016?

kindly reply.

Creating a Email body in NAV 2016

$
0
0
Hi everyone,

I would like to know if there is any other way to create an Email body template by getting the input from the user, apart from importing a HTML file which contains the Email body template. I have hard coded it like this for using it in multilanguage.

BodyBlob.Blob.CREATEOUTSTREAM(BodyStream);
CR13 := 13;
CR10 := 10;
BodyStream.WRITETEXT(Line1+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(''+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(Line2+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(Line3+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(''+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(Line4+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(Line5+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(''+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(Line7+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(Line8+ RefNo + FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(''+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(Line9+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(Line10+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(''+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(Line11);

Where the line1 to line10 are text constants. In this case the Email body cannot be changed. But i am looking for a way to change it so the user will be able to change the Email body as they see fit. I have looked into Notification Templates 1510, which is not preferable because it uses HTML file to create the Template.

Can someone please throw a light on where should i look or what should i do? Any help is highly appreciated. Thanks in advance.

Mathan.

MDM and unified app

$
0
0
We´re currently trying to install the Dynamics NAV app on users iPad’s via our MDM system.

Is there a way to install the Dynamics NAV app with an already inserted server path, so that users doesn’t have to put
the URL in manually?

Perhaps with a key/value? If so, what is the key called?

We have thought of just sending an email with the urlprotocol ms-dynamicsnav:// but that´s not especially seamless for the user.

NAV2018 - UK BACS Export with headers and Footers

$
0
0
Im currently working on the HSBC BAC Export for a customer in NAV 2018, which has had all the BAC's functionality removed by MS.

The BACS file is a standard 18 file format as shown below :
VOL1000024 801014 1
HDR1A801014S 180101400002400010000 10243 102450000000
HDR2F0102400100 00
UHL1 10244999999 000000001 DAILY 000
0901277777777701709012774859633000000000001000A.N.Y.COMPANY GENERICREF1 MR R BLOGS
0901273333333301709012774859633000000000001000A.N.Y.COMPANY GENERICREF2 MRS A PERSON
0901274444444401709012774859633000000000001000A.N.Y.COMPANY GENERICREF3 MR G SMITH
0901279999999901709012774859633000000000001000A.N.Y.COMPANY GENERICREF4 MISS J DOE
0901277485555501709012774859633000000000001000A.N.Y.COMPANY ED101452 MR ED
0901277485963309909012774859633000000000005000TEST PAY CONTRA A.N.Y.COMPANY
EOF1A801014S 180101400002400010000 10243 102450000000
EOF2F0102400100 00
UTL10000000005000000000000500000000050000001 0000000TEST PAY

Up until now we have not been able to get an answer from Microsoft as to how we can use header and footer lines with Data Exchange Definitions, so it looks like we might have to go down the route of re-inventing the while and putting the BACS files back into NAV 2018 in the custom object ranges.

RTC crash (2017 CU20)

$
0
0
RTC crashes sometimes when I navigate between Outlook and RTC and try to copy some text in Outlook. The user doesn't have any personalization. Another users dont have this problem. .Net Framework is 4.7 as on another machines.

I get follow in event log.

Application: Microsoft.Dynamics.Nav.Client.exe
Framework Version: v4.0.30319
Description: The application requested process termination through System.Environment.FailFast(string message).
Message: Value does not fall within the expected range.
Stack:

System.Environment.FailFast(System.String)
Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoRethrowWithCatchException(System.Exception, Boolean)
Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.WinFormsDispatcherUnhandledException(System.Object, Microsoft.Dynamics.Framework.UI.DispatcherUnhandledExceptionEventArgs)
Microsoft.Dynamics.Framework.UI.WinForms.WinFormsDispatcher.HandleDispatcherException(System.Object, System.Exception)
System.Windows.Forms.Application+ThreadContext.OnThreadException(System.Exception)
System.Windows.Forms.Control.WndProcException(System.Exception)
System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)
System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef) System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.RunMessagePump()
Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.RunCore()
Microsoft.Dynamics.Nav.Client.WinClient.NavClientErrorHandler.ExecuteAndCatchExceptions(System.Func`1<Int32>)
Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoExecute(System.Func`1<Int32>)
Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.RunCore()
Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.Run(Boolean)
Microsoft.Dynamics.Nav.Client.Program.Main(System.String[])

Showing Multiline text in Report Word Layout

$
0
0
Howdy everyone, I have created a Word Layout for my report but its not showing Multiline text (paragraphed), its just displaying as one continuous line of text. Am i missing out something? How do I rectify this?

XSL(T) Transformation of XML Files in NAV 2018

$
0
0
I’m currently trying to carry-out an XML transformation an XML file that a 3rd party sends, so that is converted into a human-readable format using a supplied XSL file. This resulting file is then opened in an internet browser for subsequent printing. I’ve tried the Transformation ‘by hand’ and it works perfectly.

I’ve three filestreams (XML-in, XSL-in and XML-out). I’ve tried using the functionality (TryTransformToXMLOutstream) contained in the codeunit XML DOM Management, but it claims it can’t find the XSL file in the system32 folder, even though I have ‘given’ the process the XSL file’s data through the filestream, so I don’t know why it has gone looking for it!

I tried taking elements of the TryTransformToXMLToOutstream functionality, cross-referencing it to C# examples found on the internet, but it complained about ‘null’ parameters. I’m almost of the opinion of getting something working in .NET/C# (because it seemingly gives better flexibility for this kind of functionality) and including this as a DLL into NAV.

Anyhow, my real question: has anybody undertaken the task of Transforming an XML file using an XSL in any of their projects?

Sending an XML file with HTTP

$
0
0
Hi everyone,

As I wrote in the tittle, I hae to send an XML file via HTTP. But the issue is that, the XML must be converted intro a string, because I have to ad at the start of the file the "xml_in=" text. I am trying to do it in this way:
XMLHTTP.send('"xml_in=' + XMLDocDotNet.OuterXml + '"');

But it looks that is isn't wortking, because I receive in the response an error message. How can I convert the XML file into a string, to concate with "xml_in=", and send it to a server?

Thank you for your help
Viewing all 10032 articles
Browse latest View live


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