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

[DotNet] Call async method from C/AL synchronously

$
0
0
Is there any way to call some DotNet async method from C/AL synchronously?

In C# it can be done like this:

Method definition:
public async Task<string> GetDataAsync(string parameter){}
Synchronous call:
string result = somObject.GetDataAsync(parameter).Result;

Unfortunately I can't translate this to C/AL. Property "Result" is not available, and without this part method is called asynchronously. Somehow I need to call this method synchronously, wait until it finishes and grab the result.

NAV 2016 "Enable Full C/AL Tracing"

$
0
0
Easy question. When "Enable Full C/AL Tracing" = True in Service Tier Admin tool, it doesn't actually do anything until I actually Start a trace through Performance Profiler, correct?

I want to turn this on in our Production environment in anticipation of having to do a trace later on down the road but don't want it to cause any performance problems just by having it set to True.

RTC crashes after NAV 2017 Upgrade

$
0
0
Hi,

I upgraded from NAV 2016 cu11 to NAV 2017 cu1 everything went smooth during the process. However the RTC crashes shortly during the startup and returns the following errors:



Problemsignatur:
Problemereignisname: CLR20r3
Problemsignatur 01: Microsoft.Dynamics.Nav.Client
Problemsignatur 02: 10.0.13682.0
Problemsignatur 03: 580f9fe5
Problemsignatur 04: mscorlib
Problemsignatur 05: 4.0.30319.34209
Problemsignatur 06: 53489fcf
Problemsignatur 07: 37bd
Problemsignatur 08: d
Problemsignatur 09: System.ArgumentNullException
Betriebsystemversion: 6.3.9600.2.0.0.272.7
Gebietsschema-ID: 1031
Zusatzinformation 1: 26c1
Zusatzinformation 2: 26c1770e0fff0adbf49075aaecb17427
Zusatzinformation 3: 7ed3
Zusatzinformation 4: 7ed366e00bd3a324628a33cf7bf3b2bb

Application: Microsoft.Dynamics.Nav.Client.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentNullException
Stack:
at System.Resources.ResourceManager.GetObject(System.String, System.Globalization.CultureInfo, Boolean)
at Microsoft.Dynamics.Nav.Client.FormBuilder.NavigationTreeProvider.ProvideImage(System.Func`2<Microsoft.Dynamics.Framework.UI.LogicalImage,System.String>, Microsoft.Dynamics.Framework.UI.NavigationNode, System.String)
at Microsoft.Dynamics.Nav.Client.FormBuilder.NavigationTreeProvider.ProcessDepartments(Microsoft.Dynamics.Framework.UI.LogicalControl, System.Collections.Generic.IEnumerable`1<Microsoft.Dynamics.Nav.Types.Metadata.ActionBaseDefinition>, Microsoft.Dynamics.Framework.UI.UX2006.DepartmentNavigationNode, Microsoft.Dynamics.Nav.Client.FormBuilder.UIBuilderContext, System.Func`2<Microsoft.Dynamics.Framework.UI.LogicalImage,System.String>)
at Microsoft.Dynamics.Nav.Client.FormBuilder.NavigationTreeProvider.ProcessDepartments(Microsoft.Dynamics.Framework.UI.LogicalControl, System.Collections.Generic.IEnumerable`1<Microsoft.Dynamics.Nav.Types.Metadata.ActionBaseDefinition>, Microsoft.Dynamics.Framework.UI.UX2006.DepartmentNavigationNode, Microsoft.Dynamics.Nav.Client.FormBuilder.UIBuilderContext, System.Func`2<Microsoft.Dynamics.Framework.UI.LogicalImage,System.String>)
at Microsoft.Dynamics.Nav.Client.FormBuilder.NavigationTreeProvider.ProcessDepartments(Microsoft.Dynamics.Framework.UI.LogicalControl, System.Collections.Generic.IEnumerable`1<Microsoft.Dynamics.Nav.Types.Metadata.ActionBaseDefinition>, Microsoft.Dynamics.Framework.UI.UX2006.DepartmentNavigationNode, Microsoft.Dynamics.Nav.Client.FormBuilder.UIBuilderContext, System.Func`2<Microsoft.Dynamics.Framework.UI.LogicalImage,System.String>)
at Microsoft.Dynamics.Nav.Client.FormBuilder.NavigationTreeProvider.ProcessNavigationGroups(Microsoft.Dynamics.Framework.UI.LogicalControl, System.Collections.Generic.IEnumerable`1<Microsoft.Dynamics.Nav.Types.Metadata.ActionBaseDefinition>, Microsoft.Dynamics.Framework.UI.NavigationNode, Microsoft.Dynamics.Nav.Client.FormBuilder.UIBuilderContext, System.Func`2<Microsoft.Dynamics.Framework.UI.LogicalImage,System.String>)
at Microsoft.Dynamics.Nav.Client.FormBuilder.NavigationTreeProvider.ProvideNavigationPane(Microsoft.Dynamics.Nav.Types.Metadata.MasterNavigation, Microsoft.Dynamics.Nav.Client.FormBuilder.UIBuilderContext, System.Func`2<Microsoft.Dynamics.Framework.UI.LogicalImage,System.String>)
at Microsoft.Dynamics.Nav.Client.FormBuilder.NavigationBuilder.BuildNavigationPane(Microsoft.Dynamics.Nav.Client.FormBuilder.UIBuilderContext)
at Microsoft.Dynamics.Nav.Client.FormBuilder.NavigationBuilder.Build(Microsoft.Dynamics.Nav.Types.Metadata.MasterNavigation, Microsoft.Dynamics.Nav.Client.FormBuilder.UIBuilderContext)
at Microsoft.Dynamics.Nav.Client.FormBuilder.BuilderSession.RefreshNavigationForm()
at Microsoft.Dynamics.Nav.Client.FormBuilder.BuilderSession.get_NavigationForm()
at Microsoft.Dynamics.Nav.Client.FormBuilder.BuilderSession.CreateLogicalForm(System.String)
at Microsoft.Dynamics.Framework.UI.UISession.CreateLogicalForm(System.String, Boolean)
at Microsoft.Dynamics.Framework.UI.Windows.ClientSessionBase.ShowLogicalForm(System.String)
at Microsoft.Dynamics.Framework.UI.Windows.ClientSessionBase.RunCore()
at Microsoft.Dynamics.Nav.Client.WinClient.NavWinFormsClientSession.RunCore()
at Microsoft.Dynamics.Nav.Client.WinClient.NavClientErrorHandler.ExecuteAndCatchExceptions(System.Func`1<Int32>)
at Microsoft.Dynamics.Nav.Client.WinClient.ExceptionHandler.DoExecute(System.Func`1<Int32>)
at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.RunCore()
at Microsoft.Dynamics.Nav.Client.WinClient.StartWinFormsClient.Run(Boolean)
at Microsoft.Dynamics.Nav.Client.Program.Main(System.String[])


+ System

- Provider

[ Name] Application Error

- EventID 1000

[ Qualifiers] 0

Level 2

Task 100

Keywords 0x80000000000000

- TimeCreated

[ SystemTime] 2017-02-23T08:17:49.000000000Z

EventRecordID 41189

Channel Application

Computer ##################

Security


- EventData

Microsoft.Dynamics.Nav.Client.exe
10.0.13682.0
580f9fe5
KERNELBASE.dll
6.3.9600.17415
54505737
e0434352
0000000000008b9c
4c0
01d28dad409ba205
C:\Program Files (x86)\Microsoft Dynamics NAV\100\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe
C:\Windows\system32\KERNELBASE.dll

I'm out of ideas, do you guys have any suggestions?

Enforcing Azure AD password Policy

$
0
0
Hello, we are using Dynamics NAV 2016 hosted on Azure. We have Azure ADto keep the NAV users. Also we are using authentication as Users in NAV so that the user will be authenticated to the AD. is it possible to make User change their password when they open the NAv client.

Does any partner has Microsoft GST functionality developed for NAV 2009 version

$
0
0
Does any partner has Microsoft GST functionality developed for NAV 2009. Else please suggest me that from where i can get for NAV2009 version

permission for generate campaign dimension in navision 2009

$
0
0
user can't able to generate campaign dimension in sales order in NAV 2009 its asking for permission
how to assign rights anybody can advice?

NAV2016:Encryption cannot be reactivated after SQL restore

$
0
0
Hello,
I've a sql and NST on one machine. I used the NAV integrated Encryption Management. I exported the encryption key...
This server crashed :-( So, I installed a new server, created a new NST and restored the database on it (SQL restore).
It shows up that the encryption is enabled in that DB. (but not encryption key)
Now, I try to import the encryption key. By importing the key, It tells me it will decrypt and recrypt the data, ok so far. Then it hangs with error "unable to encrypt data. The provided string is toot long".

I tried to create a Cronus DB, import the same key there (worked), change the database and restart the service but it looks smarter that that :blush:

Actually some of my data are unreadable :-1: What's wrong?
Thanx for support.

Chris

Import Permission Set with Powershell?

$
0
0
With Export-NAVAppPermissionSet a Permission Set can be exported.
But is there a cmdlet or another way to import a Permission Set from a file that has been exported with the above cmdlet?

Ribbon on NAV 2016 web client too wide

$
0
0
client running NAV 2016 web client in unpdated google chrome browser

The ribbon for the contact list page is too wide so the action buttons can't be seen. (see screenshot)

Not sure where this configuration would lie?

7vrlrjfq1n1t.png

NAV 2016 sorting Contact List

$
0
0
I've got a user that would like to sort the contact list page by City and\or state after applying a filter.

Where would this change need to be made in the dev environment?

She's after the type of sorting where you can click column header for example 'city' and have the filtered results on the list page rearrange from ascending to descending and back again.

Thanks,

WooCommerce Requirements to synchronize with Navision

$
0
0
Hello Guys,
I am developing an e-commerce website and i want to synchronize it with Navision ERP, i need guidance as to what is required for woo commerce to inform the people form the ERP side, please help.

Thank you.
Elias

NAV System table 'Date' strange filtering

$
0
0
We recently did a test upgrade from NAV2015 to NAV2017 and doing some testing of custom functionality. We noticed a strange behavior of the NAV System table 'Date'. Apparently the table does not filter correct on the boxes of the customer, while this behavior is not occurring on our test-server.
Here is a brief explanation of the issue:

Code:
UseOrderDate := 041417D;
Date.SETRANGE("Period Type",Date."Period Type"::Date);
Date.SETRANGE("Period Name",'Friday');
Date.SETFILTER("Period Start",'>=%1',UseOrderDate);
IF Date.FINDFIRST THEN
MESSAGE('Date = %1',Date."Period Start")
ELSE
MESSAGE('Date not found.');

Results:
- On our server the result is correct, as:
'Date = 04/14/2017.

- On the customer server (we tried a few different boxes, but same result):
'Date = 01/03/0001'.

According to the Customer's IT person and SQL specialist this behavior is not related to any SQL server setting.
The only difference is that we use 'SQL-2012' as our test server while our customer is using 'SQL-2016'.
I would assume that SQl-2016 is compatible with NAV2017. (build: 10.0.14199).

Any ideas?

Inventory Planning

$
0
0
Dear All,

Good Afternoon. When i run Planning Worksheet/Requisition Worksheet, system will consider each Location Inventory and Settings (SKU) and propose the Quantity to Purchase/Produce.

Currently i got 1 scenario:

Nav: Nav 2013
Inventory in Location Blue: 1000
Inventory in Location Red: 0
Outstanding Purchase Order in Red: 2000

Red Location actually act as my Goods Receiving Location before go into QC Location. Blue Location is after QC to store the Raw Materials/Components.
Red -> QC -> Blue

In SKU Settings-Replenishment:
Both Location i set as below:
Reordering Policy: Maximum
Reorder Point: 2500
Maximum Inventory 3000

When i run Planning Worksheet, system will check by Location and propose me to purchase:
1. Blue: 2000 quantity to purchase.
2. Red: 3000 quantity to purchase.

In actual, my company level total projected inventory will be 3000 (1000 on hand + 2000 outstanding PO), thus my planner actually NO NEED to purchase but based on settings, it will ask my planner to purchase for Blue and Red.

Did Nav got any settings or methods can solve my problem?


Thank You.


Best Regards,

Frederick

New developer experience/VS code + menusuite

$
0
0
Hi all,

I might have completely missed something... but how do i add new pages to the menu in VS code?
Can't find it in any of the samples.

Gr, Erik

Deprecation not Calculating on some FA

$
0
0
Deprecation not Calculating on some FA .

Dep calculated on some FA but not calculating dep on some FA ..

why this not calculating on some FA..


The following SQL error was unexpected.

$
0
0
NAV2015, SQL Server2014

Hey,

my users are getting this error recently: "The following SQL error was unexpected. New request is not allowed to start because it should come with valid transaction descriptor".

Google suggests it's a bug in SQL2005 or I need to install .NET Framework 2.0 Service Pack 1. This did not help.

It happens when they change the Variant Code in the sales line table. After they click the error away and try again it doesn't pop up again.

Do you guys have any suggestions?

Thanks!

Technical Upgrade only

$
0
0
Hey,

I have a customer in NAV2015. I want to use the goodies of NAV2017: (better dev environment and events).
I want to do this because the customer currently has a lot of custom code and they still need a lot of custom code. Doing a full upgrade takes to much time and interferes with their need of having new developments on a weekly basis. So what I want to do is upgrade them to NAV2017 without upgrading the application code. Then I can finally start using events! So new developments will use events so that I don't change the standard NAV code and step by step I can update old developments to also use events.
After a few months their database will be 99% back to base Navision + Events and I can do an easy Application update.


Any thoughts? I guess it is not recommended to do a technical upgrade only?
Has anyone tried this?

Object Compatibility Between Cumulative Updates?

$
0
0
Is it ok to develop objects in a later CU than the client is running?

For example, if a client is running 2016 CU8, and my development server has 2016 CU14, can I develop objects on the development server and export them for use at the client? Do the objects formats change due to CUs?

If the answer is no, it seems that separate servers must be installed on the development server for each CU in use at a client. I am hoping that is not the case of course...

I would tend to think they might change, but only actually do between certain updates. If this is the case, where can I find a list of the updates that change the object file formats?

Thanks!

How to pass getfilter value to setrange?

$
0
0
Hi all,

I need help to pass the filter value to setrange..

Lets say when preview report filter posting Date.

I want pass to item.setrange(posting Date:filters).

something like this.

Thanks.

I am getting a very strange error,when i m trying to run objects..

$
0
0
t8gsuom19vfl.png
Actually i have done a new installation of NAV2016..And trying to run objects of previous NAV2016 database.
Previous one version is 42815,and newer version is 48067...
Any idea how to reslove it?.
Kind thanks..
Viewing all 10032 articles
Browse latest View live


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