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

Problem with WebClient NAV2018

$
0
0
Hi everyone,

I'm tryng to make a NAV2018 installation, and I'm finding one problem after another.
Now my issue is with the WebClient. First of all, the webApp structure is totally different from the previous versions.
I've configured the IIS like this:

s2perm6ejntl.png

I'm trying to get to the webClient from an outside computer, and I see a HTTP500 error. But when I try to connect from inside of the server, i still seeing the same error, and in the event viewer, i can see 2 asociated errors:
gkka68iag3wo.png

and

b45v6zvtewa2.png


I think I've configred properly the permission, the IIS, but can't find the solution.

Any hint please?

Where does NAV keep answers to security questions?

$
0
0
I wrote a Codeunit that uses an Automation Control to launch an external executable.
First time I ran it, it asked me to confirm whether I allow running it for this session or all sessions.
First I answered "All Sessions", now I want to answer the question differently, but I don't know where the answer is kept so I can reset it.
I though it was in User Metadata or User Personalization, but there are no records for Codeunits, and I removed all records related to my user name and the question still doesn't come up.
I even deleted the ZUP - still no question popping up.
Does anyone know?

Webclient install Azure

$
0
0
When setting up Web client with version 2018 RTM and also with CU2, there is this error:
Action start 10:22:26: InstallFinalize.
WixCreateInternetShortcuts:  Creating IUniformResourceLocatorW shortcut 'C:\Users\user\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Dynamics NAV 2018 Web Client.url' target 'http://localhost:8080/DynamicsNAV110'
CAQuietExec64:  OK.
CAQuietExec64:  Set-WebConfigurationProperty : The data is invalid. (Exception from HRESULT: 0x8007000D)
CAQuietExec64:  At C:\Program Files\Microsoft Dynamics NAV\110\Web 
CAQuietExec64:  Client\Modules\NAVWebClientManagement\NAVWebClientManagement.psm1:623 char:5
CAQuietExec64:  +     Set-WebConfigurationProperty -Filter '/system.webServer/security/ ...
CAQuietExec64:  +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CAQuietExec64:      + CategoryInfo          : NotSpecified: (:) , COMException
CAQuietExec64:      + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.IIs.PowerShell.Provider.SetConfigu 
CAQuietExec64:     rationPropertyCommand
CAQuietExec64:   
CAQuietExec64:  Set-WebConfigurationProperty : The data is invalid. (Exception from HRESULT: 0x8007000D)
CAQuietExec64:  At C:\Program Files\Microsoft Dynamics NAV\110\Web 
CAQuietExec64:  Client\Modules\NAVWebClientManagement\NAVWebClientManagement.psm1:624 char:5
CAQuietExec64:  +     Set-WebConfigurationProperty -Filter '/system.webServer/security/ ...
CAQuietExec64:  +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CAQuietExec64:      + CategoryInfo          : NotSpecified: (:) , COMException
CAQuietExec64:      + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.IIs.PowerShell.Provider.SetConfigu 
CAQuietExec64:     rationPropertyCommand
CAQuietExec64:   
CAQuietExec64:  Error 0x80070001: Command line returned an error.
CAQuietExec64:  Error 0x80070001: QuietExec64 Failed
CAQuietExec64:  Error 0x80070001: Failed in ExecCommon64 method
CustomAction CreateWebApplicationCore returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 10:23:01: InstallFinalize. Return value 3.
WixRemoveInternetShortcuts:  Error 0x80070103: failed to read shortcut attributes from custom action data
CustomAction WixRollbackInternetShortcuts returned actual error code 1603 but will be translated to success due to continue marking
Action ended 10:23:03: INSTALL. Return value 3.

Also other nonsense error related to missing powershell 2.0 or something.. some folder are created, settings in IIS are populated, others not. At the end there is an error. Manualy adding IIS features, rebooting e reinstalling NAV and/or complete WebServer (with or without components), did not help. same error appears again and again.

Does anybody got a clue how to complete the Web Client setup ?


Thank you for your time.

no DotNet System.Net.Sockets.TcpClient in my list

Dynamics NAV phone APP

$
0
0
I have a question about the use of the DYnamics NAV mobile app.
I haev already running the WebClient in my NAV2018 machine, but when I'm trying to connect with the app, i get the "Cannot connect to the server error".
I have a certificate installed on the instance, with its thumbprint, that it is used to conenct the webClient with a URL like this:
https://xxx.xxx.xxx.x:8081/DynamicsNAV110

I am trying to connect the app to the same URL, but it doesn't work. What should be like the URL to connect the app? Should I creaet a new instance, or new site in the IIS of the server?

Thank you very much

Dynamics NAV Universal App barcode scanner

$
0
0
Hi there guys

Does any one have experience with infrared barcode scanners in Universal App. I have a Honeywell device with windows embedded 8.1. This device have demo application for scanning barcodes. But the barcode does not working in Dynamics NAV ... The demo application does not work in background so I can't to use barcode scanner when application is minimized. Is there any way to "wakeup" barcode scanner in Universal app.

Please for help

Best regards

Looking for something like a data warehouse for NAV

$
0
0
I heaped one custom development on another to fulfill our reporting needs and now it looks like I basically reinvented a data warehouse. Now I want to replace it with a real data warehouse as it would be cleaner and more maintainable. This is what it would need to do (as this is what the homegrown solution does). Important to understand that the scenario is a company group consisting of one headoffice and subidiaries in multiple countries.

- Copy data from various geographically distant NAV servers/databases/companies into one place several times a day

- Consolidate tables, in the sense that from every company's Item Ledger Entry one common Consolidated Item Ledger Entry is generated with a primary key like Company, Entry No.

- Define reports on top of these

- The reports get emailed out automatically in an Excel format at specified times to specified receivers

- Central Dimension-like thing. I don't really mean it in the NAV Dimensions sense but NAV Dimensions are one possible solution for this. But I actually mean it in the OLAP Dimension sense. Perhaps best explained through an example of how I am doing it in my custom development. Headoffice enters Global Item Numbers into a central database here. From this every day an XML file is automatically generated and automatically sent to every subsidiary's NAV server where it is automatically imported into a custom table. Users when entering an Item can give it any number they want but also link it via a new field to this new table containing the global item numbers. When the data such as Item Ledger Entries is uploaded into the central system and consolidated into one table (see above) this also comes with it. Thus, from the consolidated item ledger entry table, summing it up by the global item number, you can create a report that shows you the inventory all over the company group. Or sales. On a broader general note the requirement is that users of a local NAV in a subsidiary should be able to assign "Dimension-like data" to items, customers, accounts etc. selecting from a list that is not maintained by them but maintained by the central organization on a central server geographically distant.

I THINK I just reinvented a data warehouse - something like SAP BW? I don't know that product but I think what I developed must be similar to what a lot of other global companies need for reporting? Is this even called data warehouse? I think so. But I would like to replace it with a clean standardized solution, not home-developed.

My main worry is that it would be hard for someone else to maintain my solution. Also, it is not that reliable. All this exporting files via Job Queue and uploading them with scripts and FTP is not 100% reliable. It requires constant monitoring. For whatever reason the Job Queue and XMLPorts sometimes say "I/O error" then the whole thing stops, does not try it again, we have to keep an eye on them.

MySQL ADO.Recordset.Update QQ

$
0
0
Hi Experts,

Am having this error whenever I run my code.

Here's my code:

j1yp39gof6cg.png

Here's the error after it runs:

aorsbkzjt2cw.png

Although in my script or query I only use 1 table.

I did try using an updated version of MySQL Driver but I'm having difficulty connecting it in the server so I stick with the older one.

I don't know what to do, am going crazy for days now.

Hope you could help me out guys.

Thanks,
Marc

The Server "DynamicsNAV100" was unable to process the request. The application will close

$
0
0
I can no longer insert a record into a table after deleting a field from that table on NAV 2017. I can insert successfully into other tables except this one. This the error message from the event view.

Type: Microsoft.Dynamics.Nav.Client.NavClientClosingException Fatal: False ShowError: True Message: <ii>The server "DynamicsNAV100" was unable to process the request. The application will close.</ii> StackTrace: at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoExecute(Func`1 execute) at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoRethrowWithCatchException(Exception exception, Boolean designMode) at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.WinFormsDispatcherUnhandledException(Object sender, DispatcherUnhandledExceptionEventArgs eventArgs) at Microsoft.Dynamics.Framework.UI.WinForms.WinFormsDispatcher.HandleDispatcherException(Object sender, Exception e) at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t) at System.Windows.Forms.Control.WndProcException(Exception e) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.RunMessagePump() at Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.RunCore() at Microsoft.Dynamics.Nav.Client.WinClient.NavClientErrorHandler.ExecuteAndCatchExceptions(Func`1 execute) Source: Microsoft.Dynamics.Nav.Client.WinClient HResult: -2146233088
Type: Microsoft.Dynamics.Nav.Types.Exceptions.NavServerSessionException Message: <ii>The server "DynamicsNAV100" was unable to process the request. The application will close.</ii> StackTrace: at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.<>c__DisplayClass11_0.<DoRethrowWithCatchException>b__0() at Microsoft.Dynamics.Nav.Client.WinClient.NavClientErrorHandler.ExecuteAndCatchExceptions(Func`1 execute) Source: Microsoft.Dynamics.Nav.Client.WinClient HResult: -2146233088
Type: Microsoft.Dynamics.Nav.Types.Exceptions.NavServerSessionException Message: <ii>The server "DynamicsNAV100" was unable to process the request. The application will close.</ii> StackTrace: at Microsoft.Dynamics.Nav.Client.ConnectionStateManager.CallServer[T](BeginCallServerMethod beginCallServerMethod, EndCallServerMethod`1 endCallServerMethod, ServerCallOptions options) at Microsoft.Dynamics.Nav.Client.ServiceConnection.CallServer[T](BeginCallServerMethod beginCallServerMethod, EndCallServerMethod`1 endCallServerMethod) at Microsoft.Dynamics.Nav.Client.ServiceConnectionBase.InsertRecord(NavRecordState& state, NavDataSet recDataSet, Boolean belowXRec, Boolean isEmptyMultipleLine) at Microsoft.Dynamics.Nav.Client.DataBinder.NstDataAccess.InsertRecord(NavRecord record, Boolean belowxRec, Boolean updateState) at Microsoft.Dynamics.Nav.Client.DataBinder.NavBindingManager.Insert(NavRowEntry rowEntry, Boolean updateState) at Microsoft.Dynamics.Nav.Client.DataBinder.NavTransactionManager.PerformSave(SaveDraftAction saveAction, NavRowEntry navRowEntry, RecordStates preSaveRecordState) at Microsoft.Dynamics.Nav.Client.DataBinder.NavTransactionManager.Save(NavRowEntry navRowEntry, SaveDraftAction saveAction) at Microsoft.Dynamics.Nav.Client.DataBinder.NavTransactionManager.Save(SaveDraftAction saveAction) at Microsoft.Dynamics.Nav.Client.UIPatterns.SaveOnNavigationPattern.Save(SaveDraftAction saveAction) at Microsoft.Dynamics.Nav.Client.UIPatterns.SaveOnNavigationPattern.CurrentRowChanging(Object sender, CurrentRowChangeEventArgs e) at System.EventHandler`1.Invoke(Object sender, TEventArgs e) at Microsoft.Dynamics.Framework.UI.BindingManager.OnCurrentRowChanging(CurrentRowChangeEventArgs e) at Microsoft.Dynamics.Framework.UI.BindingManager.CanChangeCurrentRow() at Microsoft.Dynamics.Framework.UI.VirtualRows.CanChangeCurrentRow(Int32 index, Boolean& updateCurrentRow) at Microsoft.Dynamics.Framework.UI.VirtualRows.CanChangeCurrentRow() at Microsoft.Dynamics.Framework.UI.VirtualRows.MoveTo(Int32 index) at Microsoft.Dynamics.Framework.UI.BindingManager.MoveTo(Int32 index) at Microsoft.Dynamics.Framework.UI.RepeaterViewportControl.MoveToImpl(Int64 index) at

Figure out dead inventory

$
0
0
Hello everyone,

Wondering if anyone has a good way to figure out "dead" inventory in NAV? What I'm looking for is to somehow get a list from NAV where I can say "Show me all items where the last item ledger entry was from before <date>" with other small parameters... Is there anything out of NAV that can do that or is that a custom report?

Thanks

Dangers of importing non-trusted .fob files due to Event Subscriptions

$
0
0
The source code at the end of this post is perhaps a light hearted take on a serious issue, albeit one that is probably not well known. After some thought I feel that the wider community being aware of this is better than not letting the cat out of the bag, and any malicious hackers having a zero-day environment to play with.

Event triggers are a handy way to build solutions, especially for vertical products that you wish to import seamlessly without modifying any objects outside of your product range. This raises a security concern though, in that when you import a compiled object, the event subscriptions come into effect immediately. In theory you could even use a codeunit setup to run itself once to update data during implementation, and then remove itself when done.

So how is this an issue? Well, you could easily make an object that opens a http connection and sends the customer list from all companies in the database, or inserts a BACS payment. This code would run in the background without any user intervention.The object might even delete itself when done, or copy itself into an old and unused (but universally licensed) object number.

In the past whenever I have downloaded a handy tool in object form, I would import it and imediately scour the code, usually exporting it as text to be 100% sure nothing is hiding in there. With the ability to rewrite the source code separately from the compiled code in the Object Metadata table, malicious code could be hidden entirely.

I would suggest that before importing any .fob files, the following steps should occur:
  1. Import the fob into a quarantined database with no sensitive data, not connected to any network
  2. Design the object and save it, thus overwriting the compiled code with the visible source code.
  3. Check the object as usual
  4. Export the object for use in your real databases

Another defense might be to have a codeunit of your own which subscribes to the insert trigger of the Event Subscription table and throws an error whenever anything tries to add to it, thereby catching it during import.

Below is a basic proof of concept, somewhat inspired by the Useless Machine (a box with a switch that promptly switches itself off when switched on). Using numerous event subscriptions, the only purpose of this object is to remove itself. It is triggered by logging in, logging out, and any global insert/modify/delete actions. There is no indication that this has happened.
OBJECT Codeunit 50026 Useless Object
{
  OBJECT-PROPERTIES
  {
    Date=15.03.18;
    Time=11:40:54;
    Modified=Yes;
    Version List=USELESS OBJECT;
  }
  PROPERTIES
  {
    Permissions=TableData 2000000001=rimd,
                TableData 2000000071=rimd,
                TableData 2000000140=rimd;
    OnRun=BEGIN
            RunAway(TRUE);
          END;

  }
  CODE
  {
    VAR
      EventSubsciption@1100168001 : Record 2000000140;
      Object@1100168000 : Record 2000000001;
      ObjectMetadata@1100168003 : Record 2000000071;

    [EventSubscriber(Codeunit,1,OnAfterOnGlobalModify,"",Skip,Skip)]
    LOCAL PROCEDURE KingArthur@1100168000(RecRef@1100168000 : RecordRef;xRecRef@1100168001 : RecordRef);
    BEGIN
      RunAway(TRUE);
    END;

    [EventSubscriber(Codeunit,1,OnAfterOnGlobalDelete,"",Skip,Skip)]
    LOCAL PROCEDURE SirBedevere@1100168005(RecRef@1100168000 : RecordRef);
    BEGIN
      RunAway(TRUE);
    END;

    [EventSubscriber(Codeunit,1,OnAfterOnGlobalInsert,"",Skip,Skip)]
    LOCAL PROCEDURE SirGalahad@1100168004(RecRef@1100168000 : RecordRef);
    BEGIN
      RunAway(TRUE);
    END;

    [EventSubscriber(Codeunit,1,OnAfterCompanyOpen,"",Skip,Skip)]
    LOCAL PROCEDURE SirLancelot@1100168001();
    BEGIN
      RunAway(TRUE);
    END;

    [EventSubscriber(Codeunit,1,OnAfterCompanyClose,"",Skip,Skip)]
    LOCAL PROCEDURE SirRobin@1100168003();
    BEGIN
      RunAway(TRUE);
    END;

    LOCAL PROCEDURE RunAway@1100168002(SomethingHappened@1100168000 : Boolean);
    BEGIN
      IF SomethingHappened THEN BEGIN
        IF EventSubsciption.GET(50026,1100168000) THEN
          EventSubsciption.DELETE;

        IF Object.GET(Object.Type::Codeunit,'',50026) THEN
          Object.DELETE;

        IF ObjectMetadata.GET(ObjectMetadata."Object Type"::Codeunit,50026) THEN
          ObjectMetadata.DELETE;
      END;
    END;

    BEGIN
    END.
  }
}

Import-NAVdata taking up a HUGE amount of space

$
0
0
Hi

I have a NAV 2015 navdata file that I extracted from the LIVE system at customer site.
When I try to import this on my developer server using the exact same version on a SQL 2016 the database grows to enormous sizes.

the navdata file is 2.8 GB - a fairly small database.
I have tried all sorts of things - currently the import is working on import of company no 2 from that file and the database file (.mdf) has grown to 85GB and the transaction log has grown to 15GB - and is has been running for quite a few hours now.

These sizes make absolutely no sense to me.
If i do the same import job on a SQL 2012 - it runs smoothly - no big issues, database files or long import times.

Have anybody experienced this kind of behaviour on SQL 2016 and knows which properties or settings to tweak to make the import work?

NAV 2015 - XMLPort export blank fields

$
0
0
Hi all,

I've a question. I'm trying to export a XML file with many optional fields (it's an items's extraction with many commercial informations). I setupped optional elements properties with MinOccurs = "Zero" and MaxOccurs = "Once" or sometimes "Unbounded". If i don't insert any values in this element, i would like to extract XML file without empty element's tag. Is it possible?

Thanks a lot.

Into attach file there is an example.

NAV 2015 - Job Queue Log Entries Job stuck in Process doesn't upda

$
0
0
Hi guys,

I've a job that imports data from Excel Buffer that works fine if I run it manually ( although it takes 2 hours to import a 12MB file), but if it's running from the Job Queue it starts but doesn't update the End Date/Time and the Status keeps in Process.

Any ideas?

Link of Items from Posted Purchase Receipts. to Inventory Movement

$
0
0
hi,

is there a possible link to items of Posted Purchase Receipt. to Inventory movement?


NAV 2017 CU10: Event 705 Long Running SQL statement

$
0
0
Hi
I have a demo setup on my client of NAV 2017 CU10. NST, SQL, Client, Dev. Environment all local; demo database with CRONUS company.

My system regularly logs the following event
Server instance: DynamicsNAV100
Category: Sql
ClientSessionId: 00000000-0000-0000-0000-000000000000
ClientActivityId: 00000000-0000-0000-0000-000000000000
ServerSessionUniqueId: 00000000-0000-0000-0000-000000000000
ServerActivityId: 00000000-0000-0000-0000-000000000000
EventTime: 03/16/2018 15:00:07
Message <ii>Threshold Trace Tag. Execution Time = 1259 milliseconds
    Long Running SQL statement Task ID:9
    </ii>
ProcessId: 6296
Tag: 000007S
ThreadId: 18
CounterInformation:
The event is logged every 30 seconds + Execution Time, as stated in the event message.

I cleared out a stale entry in the Active Session table, that shipped with the demo database. The Session Event Table, that is frequently named in connection with that event contains about 30 to 50 records.

What might be causing this event and how do I stop NAV from spamming my event log?

getElementsByTagName

$
0
0
Hello guys,

I need to select value from xmlfile.

Variables:
XMLDOC@1003 : Automation "{F5078F18-C551-11D3-89B9-0000F81FE221} 6.0:{88D96A05-F192-11D4-A65F-0040963251E5}:'Microsoft XML, v6.0'.DOMDocument60";
DOCNode@1005 : Automation "{F5078F18-C551-11D3-89B9-0000F81FE221} 3.0:{2933BF80-7B36-11D2-B20E-00C04F983E60}:'Microsoft XML, v3.0'.IXMLDOMNode";
DOCNodeList@1006 : Automation "{F5078F18-C551-11D3-89B9-0000F81FE221} 3.0:{2933BF82-7B36-11D2-B20E-00C04F983E60}:'Microsoft XML, v3.0'.IXMLDOMNodeList";
sessionid@1007 : Text;

Code:
DOCNodeList:=XMLDOC.getElementsByTagName('Data');
DOCNode :=DOCNodeList.item(0);
sessionid := DOCNode.selectNodes('SessionId').item(0).text;
MESSAGE(sessionid);

XML file looks like
<Data xsi:type="LoginInfoDto">
<SessionId>fQVic1y4Y7tetqTojdygAydPdZ2519s5zFryZFG5</SessionId>
</Data>

If I remove xsi:type="LoginInfoDto" from data element it's works fine, how can I do in my code that automaticly remove that line?

How can I implement atransheader and transfooter on Report ID 1306

$
0
0
In NAV 2017 on the Sales Invoice Report ID 1306 - Standard Sales - Invoice
I'll need to print a transheader and transfooter, how can this be done ?

Why the standard report ID 1306 always print an extra page ?

$
0
0
In NAV 2017 the standard report 1306 - Standard Sales - Invoice always print two page on a cronus DB with 2 items on the invoice, I don't have this issue with Report ID 206.

How can I get report ID 1306 - Standard Sales - Invoice to only print one page instead of two ?
Page 2/2 is always blank :-(

VAT Automatic coupling, where to start.

$
0
0
Hello! I've just started working as an intern at a small company. They gave me my first project that sounds easy but i dont know where to start.

Transferring a balance / balance of a given general ledger card / cardboard to a given other ledger card.

• Which cardboard / cartons should you pass?
• Which card to pass?
• Which balances to pass by date?
• Certification No.
• Which general ledger log is to be built into a template
• Which general ledger logbook should be created?
• Accounting text

Items appearing in the chart of accounts automatically transfer to the counter account, prepare as a general ledger.

Sorry for my bad english.

Thanks for your support!
Viewing all 10062 articles
Browse latest View live


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