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

lot number of product dont appear in invoice report

$
0
0
o, I'm trying to show a product with multiple lot numbers in a invoice, but it isn't appearing..

In the table Item entry Relation I have two lot as the image below show

aph5tgtnpm0k.png


So now I want to print the invoice and the cyan section is not shown and the yellow background don't print anything.

uqh89516l1na.png


Here I have a example of a old invoice where everything is working... Am i putting the wrong info in the table Item Entry Relation which is the base of the report I'm building?

d0qehs2abvni.png


In my report the cyan section is the Lot Number and the yellow section is a label with the lot No.
dj3ucrip1qd2.png


Anyone can figure what's happening?

Using global variable in page event subscriptions

$
0
0
Hello all,

When creating a publisher function, we can use IncludeSender and GlobalVarAccess for accessing global variables of the publishing object. However, I cannot find any means like this while subscribing to standard page events (OnAfterGetRecordEvent, OnOpenPageEvent, etc.). There are so many customizations for calculating variables for only display purposes on a page. I want to put them out of the page context for better maintainability. What is the best practice for it?

NAV TaskScheduling Error "The specified directory service attribute or value does not exist."

$
0
0
Hi All,

Really stuck with this so hoping someone has a solution.

Problem: The TaskScheduler does not run a scheduled Job Queue Entry with a 'User ID' other than the Service Domain Account. It changes the Job Queue Entry 'Scheduled' column to 'No'(in Red) from 'Yes' and does not create a Job Queue Log Entry. You have to view the Event Viewer log to see the cause of the error (Event Viewer -> Applications and Service Logs' -> Microsoft -> DynamicsNAV -> Common -> Admin).

Error Detail:
Server instance: NAVServices
Category: TaskScheduling
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: ‎2018‎-‎04‎-‎18T11:05:00.828986100Z
Message <ii>(COMException): <ii>The specified directory service attribute or value does not exist.

System Information:
  • NAV GB 2018.CU3
  • NAV Server is running with Domain Account
  • We followed all steps to provision the domain account. (here)
  • Windows Server 2012 R2
  • There are multiple domains on the network

Observations:
Logging into NAV as the Domain Service account user and resetting the Job Queue Entry will set the 'User ID' on the Job Queue entry as the logged in User. The TaskScheduler will run the scheduled job without failure thereafter. If you then log in as a user (domain) and reset, the job fails again. My best guesses here are:
  • Issue lies with Domain Service account setup
  • Issue lies with Domain Service account impersonating the 'User ID' on the job queue task.
  • Issue lies in the Domain itself or perhaps having multiple domains
  • Issue is a NAV service issue requiring a Cumulative Update, see this article.
  • We were on NAV2017.GB.CU10 and had the same issue, so thought upgrading to NAV2018 might help.




CALCSUM showing incorrect value.

$
0
0
Hi all,

I have an Amount tendered field in a table which when computed using CALCSUM function shows a different amount than when I manually sum the columns. Anybody knows of any solution to this?

Regards,
Rahul.

Approval Workflow for Purchase Documents per Item

$
0
0
Dear all,

One of my customers has a particular approval process for purchase documents which I try to implement using the standard feature "workflow".
There are three scenarios:

1) below 10k
2) between 10k and 100k
3) above 100k

Each scenario requires the approval of two users belonging to different hierarchies.

1) scenario 1: one user sequence 1, one user sequence 2
2) scenario 2: one user sequence 1, one user sequence 2
3) scenario 3: one user sequence 1, one user sequence 2

I created three work flows for each scenario with the correct filters (document type, amount, status::open) and three "Workflow User Groups" containing:

Workflow User Group 1
- User 1 Sequence 1
- User 2 Sequence 1
- User 3 Sequence 2
- User 4 Sequence 2


Workflow User Group 1
- User 5 Sequence 1
- User 6 Sequence 1
- User 7 Sequence 2
- User 8 Sequence 2


Workflow User Group 1
- User 9 Sequence 1
- User 10 Sequence 1
- User 11 Sequence 2
- User 12 Sequence 2

My work flow work fine: I request approval. Each of the sequence 1 users sees the request. NAV waits for one sequence 1 and one sequence 2 user to approve before changing the status to "approved". This fullfills the requirement of 4 eyes check by hierarchy.

Now, the customer says that this is not sufficient.
He wants to have one sequence 1 and one sequence 2 user only.
They should be fix per item.

My idea was to set a default "Workflow User Group" on each item containing each time the two people per default to approve the transaction.

Is there any way to represent this in standard without hardcoding a workflow for each "Item No."?

Thanks

Best regards,
Sébastien

CALCSUM showing incorrect value.

$
0
0
Hi all,

I have an Amount tendered field in a table which when computed using CALCSUM function shows a different amount than when I manually sum the columns. Anybody knows of any solution to this?

Regards,
Rahul.

Attempt to post Jnl Line clears ShortCutDim3 and then complains about missing Dim3

$
0
0
(NAV2016 - Platform CU8 build 45046, Application CU5 build 45243)

I have a client who recently started using the third dimension, after having used two dimensions for years.
They have some G/L Accounts set with Code Mandatory for the third dimension and also set up with a default third dimension. In most situations, this works as expected. NAV suggest the specified dimension, but they can change it. If they delete it, it will not allow posting.

However, several users complain that once in a while their Journal behaves strangely. Even when the third dimension is filled, they get an error in Posting saying they will need to enter a third dimension value. When they click Ok then the third dimension value is cleared on all journal lines. They can then enter the third dimension value for all lines again, and during posting, they get the same error. Restarting the NAV client solves the problem, but what is going on?? At first, I didn't believe it, but I got a video recording of it.

I suspected a platform issue, but I can't find anything like this in the CU descriptions.

I then suspected a SingleInstance codeunit in some sort of "bad state" with some filters. I have looked at the list of SingleInstance codeunits in the base, and my only suspect is no. 19: "Gen. Jnl.-Post Preview". I have not dug deep into this one, but we haven't modified it, and we haven't modified anything related to Dimensions either.

My final idea was a usage of FILTERGROUP(1) on a dimension table. I have also searched for that, but also without luck. (The Danish Add-On Lessor uses that a lot, but not on anything related to Dimensions)

Any idea, or has anyone seen this before?

Anyone using Tradeshift with NAV2017?

$
0
0
I have tried to setup NAV2017CU10 and NAV2017CU14 to a Tradeshift sandbox account, as described here:
https://community.dynamics.com/nav/b/navvideos/archive/2015/12/22/how-do-i-use-document-exchange-service-to-send-amp-receive-invoices-in-microsoft-dynamics-nav

However, I keep getting this error when trying to test my connection:
"Authentication failed because the remote party has closed the transport stream."

When I try using NAV2018RTM and NAV2018CU1 and DevPreview it works fine.

Anyone with an idea on how to solve this issue? (without upgrading to NAV2018)

(My guess is that due to lacking support of TLS1.2 in NAV2017, but I'm unable to find any documentation)

Error when creating new user(Error Message: Some or all identity references could not be translated)

$
0
0
Hi everyone,
we have a Dynamics NAV 2013 R2 installation (Version 7.10.36897).
The topology of the implementation is the following two virtual machines are used as application servers each one having one DynamicsNAV71 nav server instance,in front of them a load balancer,and behind them a SQL cluster with two nodes(vms) with always On availability group.
Only the windows client is used and windows authentication credential type is used.
NAV is connected into 2 domains (domain 1 and domain 2). All the servers are staged in domain 1. (please see the attachment for the hierarchy tree)
Users from both domains can access the windows client through the load balancer.New NAV Users from domain 1 can be created inside domain 1,and new users from domain 2 can be created inside domain 2a0xm3orc1fv5.jpg

The error is raised when a Super user from domain 1 tries to create one new windows authenticated nav user user from domain 2.
Steps to get the error are the following:
1.Press the dropdownlist for selecting windows user name in new user card page
2.Then in the Select User,Group,Computer dialog box we select the location of domain 2
3.In the check name we pass a valid windows user Domain2\userx
4.When we go to press ok, we are prompted to pass the network credentials for an account with permissions for Domain 2.
5.We pass correct account credentials and when we press ok, we are getting this error: "A call to Microsoft.Dynamics.Nav.Management.DSObjectPicker.DSObjectPickerWrapper.InvokeDialogAndReturnSid failed with this message:Some or all identity references could not be translated)cp1mrz98j7hd.jpg

The strange thing is that if we go and add the user through finding his windows sid from the powershell and then add him with a sql query it works, user is created correctly with any permissions we want,can access the client etc. (or if we use the cmdlet -NewNAVserverUSer)
So if we follow the steps:
1.In powershell
$objUser = New-Object System.Security.Principal.NTAccount(" Domain2\userx ")
$strSID = $objUser.Translate([System.Security.Principal.SecurityIdentifier])
$strSID.Value
it returns a valid sid
2.in sql server


USE [NAV]

DECLARE @USERSID uniqueidentifier, @WINDOWSSID nvarchar(119), @USERNAME nvarchar(50), @USERSIDTXT varchar(50)

SELECT NEWID()
SET @USERNAME = 'Domain2\userx'
SET @USERSID = NEWID()
SET @USERSIDTXT = CONVERT(VARCHAR(50), @USERSID)
SET @WINDOWSSID = 'S-1-x-xx-xxxxx-xxxxx-xxxx-xxxx'

INSERT INTO [dbo].[User]
([User Security ID],[User Name],[Full Name],[State],[Expiry Date],[Windows Security ID],[Change Password],[License Type]
,[Authentication Email])
VALUES
(@USERSID,@USERNAME,'',0,'1753-01-01 00:00:00.000',@WINDOWSSID,0,0,'')

INSERT INTO [dbo].[User Property]
([User Security ID],[Password],[Name Identifier],[Authentication Key],[WebServices Key],[WebServices Key Expiry Date],
[Authentication Object ID])
VALUES
(@USERSID,'','','','','1753-01-01 00:00:00.000','')

INSERT INTO [dbo].[Access Control]
([User Security ID],[Role ID],[Company Name])
VALUES
(@USERSID,'SUPER','')
GO

Any thoughts,proposals are very much appreciated
Kind regards
PS We have found the following two relevant posts but in the first one the issue is bypassed and it won't say why it works or not
https://community.dynamics.com/nav/f/34/t/144073
and we did find another trusted domain related issue in the following article:
forum.mibuso.com/discussion/26615/nav-5-login-on-trusted-domain-problem



Cannot change "Type" option in SubPageLink

$
0
0
Hi everyone!

I've jsut realized than, when I upgrade NAV2013 to NAV 2018, the subpagelink between page 42-SAles ORder, and page 9087-Sales Line FactBox , it's broken.
This is how the subpagelink should be:
Document Type=FIELD(Document Type),Document No.=FIELD(Document No.),Line No.=FIELD(Line No.)

But when I try to copy that on my NAV 20148, I can see this error:

mh2zydyboddz.png

"Cannot write 'Document Type=FIELD(Document Type),Document No.=FIELD(Document No.),Line No.=FIELD(Line No.)' in Field No.'"

When i try to open the subpagelingk, the type option is blocked on const mode, I cannto change it.

9xr9z3lb95hn.png

Why can this be happening?

Thank you all for your tips

Microsoft Dynamics NAV Server attempted to issue a client callback to download a file: XML

$
0
0
Hello every one,

my requirement is to generate XML file on Server (with shared path), and i am trying to achive the same using report, when i run the same using RTC file is getting generate. NAV version (2017)
but when i run the same from Job Queue it throws back with error below
"Microsoft Dynamics NAV Server attempted to issue a client callback to download a file: XML"
and below is the peace of code that i am trying to generate XML file.

any help to resolve would be much appreciated. thanks in advance.

FullFileName := FileName;
ServerFiletxttemplateName := FileMgt.ServerTempFileName('xml');
FileVar.CREATE(ServerFiletxttemplateName);
FileVar.CREATEINSTREAM(InStr);
xmlDoc.Save(InStr);
FILE.DOWNLOADFROMSTREAM(InStr,'','<TEMP>', '',Magicpath);
UPLOADINTOSTREAM('','<TEMP>','',Magicpath,InStr);
FileVar.CLOSE;
FileMgt.CopyClientFile(Magicpath,FileName,TRUE);

Wrong Item Tracking Application Entry

$
0
0
Dear Sir,

While working on a migrated database(NAV 2016), I have found that a Item Ledger Entry (Sales Shipment) is applied with a Item Ledger Entry (Purchase Receipt) with a different Serial No. (Item tracking No.).

I think, it's the outcome of wrong customization.
Kindly guide me where I have to check to avoid wrong application.

Thanks in advance.

-
navuser1

Approval Link on Email

$
0
0
Hello,

My client is using Dynamics Nav 2009 RTC.
They want to use the Document Approval functionality of Navision in a different way.

They want the Notification Email which is received to carry a link and by clicking on that link the document is approved in navision. This is required specifically for top Management.

Please, can anyone direct me in the direction I should go in other to get this working.

Regards
Christopher
NG

How to autofit with Excel Buffer, without using Openexcel ( Nav 2015 excel buffer version)

$
0
0
Hi,

I have a problem with Excel Buffer,I'm working on Nav 2015 and I have to create a report that export data from Purchase Line to Excel. After creating the excel I have this code on PostDataItem :

TempExcelBuffer.CreateBook(Title);
TempExcelBuffer.WriteSheet(Title,COMPANYNAME,USERID);
TempExcelBuffer.CloseBook;

....

Then I send the excel directly from the server via Mail to the target Recipient. The problem is that in the new Excel Buffer, the excel is generated using only XlWrkBkWriter, XlWrkShtWriter and the XlWrkBk or XlWrkSht are not initialized. I don't know how to initialized those variable to make the autofit of column, without using TempExcelBuffer.OpenExcel that download the file to client (I need to have the file modified server side).

Does anyone have any idea?

Thank You

Yahoo Currency Exchange Rate Replacement?

$
0
0
The word is that Yahoo has discontinued supplying exchange rates through web services because they were not intended for commercial distribution. Does anyone have a replacement for this?

'Create failed' when publishing extension for NAV 2017 CU10

$
0
0
Hello!

I'm encountering this error message when I'm trying to publish an extension
for NAV 2017 CU10. I have checked the license, permission for the user and
tried publishing the navx file on another server. Has anyone encountered this
error and found a solution for it?

I use the NAV 2017 Administration Shell to publish it since that automatically
loads all PowerShell commands. I'm running the shell and thus the commands as
Administrator which is a local administrator with SUPER rights on NAV.

51kvobxeymmz.png

Kind Regards,
Alexander

VAR Parameter in Events

$
0
0
Hi,

I started to implement Workflows in NAV 2017 and came about the following code fragments in Codeunit 1521 Workflow Response Handling:
PROCEDURE ExecuteResponse@2(VAR Variant@1000 : Variant;ResponseWorkflowStepInstance@1001 : Record 1504;xVariant@1004 : Variant);
    ...

          ELSE BEGIN
            OnExecuteWorkflowResponse(ResponseExecuted,Variant,xVariant,ResponseWorkflowStepInstance);
            IF NOT ResponseExecuted THEN
              ERROR(NotSupportedResponseErr,WorkflowResponse."Function Name");
          END;
So here the Event OnExecuteWorkflowResponse is raised and then ResponseExecuted is checked and if not TRUE, an ERROR is raised.
The Event has the following prototype:
[Integration]
    LOCAL PROCEDURE OnExecuteWorkflowResponse@47(VAR ResponseExecuted@1000 : Boolean;Variant@1002 : Variant;xVariant@1003 : Variant;ResponseWorkflowStepInstance@1001 : Record 1504);
    BEGIN
    END;

I found the following Documentation for the event.

So, because the event can have multiple subscribers, how is VAR ResponseExecuted handled by the event, does ExecuteResponse get back the answer of the subscriber that happened to be called last? Are the result of all the subscribers processed in some way (for example ORed together)? If so, where does this happen and / or where is the behavior defined / documented?

Does anybody have any insight?

ADCS - Custom Field

$
0
0
Hello there.
I need help with ADCS and looking for Ideas.
I have a simple miniform, getting info from the purchase line.
I enter the PO number
Then I enter the Item number.
A custom field populates with a value in that field that exists on the PO Line.
I want to be able to overwrite that value with smth else from my telnet, however when I enter smth in that field nothing happens.

Here is my code.
Seems like it does not get to the custom field code.
Any ideas ??
Code below with strike through section . I specifically added the error line, because I wanted to see an error and it does not produce that.


FuncGroup.KeyDef::Input:
BEGIN
EVALUATE(FldNo,ADCSCommunication.GetNodeAttribute(ReturnedNode,'FieldID'));

CASE FldNo OF
purchaseline.FIELDNO("Document No."):
CheckPONo(UPPERCASE(TextValue));
purchaseline.FIELDNO("No."):
CheckItemNoold(UPPERCASE(TextValue));
purchaseline.FIELDNO(Description):

storedesc:=TextValue;

purchaseline.FIELDNO("Dock Qty"):
ERROR('qty');[/b]


ELSE BEGIN
ERROR('went here');
ADCSCommunication.FieldSetvalue(RecRef,FldNo,TextValue);
RecRef.SETTABLE(purchaseline);
END;
END;

purchaseline.MODIFY;
RecRef.GETTABLE(purchaseline);
ADCSCommunication.SetRecRef(RecRef);
ActiveInputField := ADCSCommunication.GetActiveInputNo(CurrentCode,FldNo);
IF Remark = '' THEN
IF ADCSCommunication.LastEntryField(CurrentCode,FldNo) THEN BEGIN
RecRef.GETTABLE(purchaseline);
IF NOT ADCSCommunication.FindRecRef(RecRef,1,ActiveInputField) THEN BEGIN
Remark := Text008;
END ELSE
ActiveInputField := 1;
END ELSE
ActiveInputField += 1;
END;
ELSE
ERROR(Text000);

I want to get automatic exit date of employee in User card.

$
0
0
when user permissions are deleted from User permission set, automatically exit date i.e. today's should be displayed on the exit date field on that page.

can anyone please help me to do this

Report Layout Illegal characters in path error in NAV2016

$
0
0
Dear All,

When I try to open the report layout by clicking Tools -> Layout from developer environment, I am getting error as follows.

It is not possible to edit the layout with the report designer.

Detailed description: Illegal characters in path.

If anyone know how to resolve this , please let me know.

Thanks in advance.

Regards,
chandru.
Viewing all 10067 articles
Browse latest View live


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