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

How to manage read and write permissions?

$
0
0
Hi everybody, I'm a new NAV 2017 user.
I need to setup some permission rules on my ERP, I tried to understand with my consultat how to do, but I could not get a real answer and seems that my simply request is more difficult to achieve with standard NAV tools. I want to understand how other people face this problem.

Let's say that I need a "Operators" user group. Operators can do everything but add or edit items property. He can read but not add new items or edit them.

I tried to setup Operator's PermissionSet adding all TableData rows with all permissions except for Item table where I have set read only. This works, but when I post an order, the item ledger entry could change the direct unit cost of item and then it fails the item update. So maybe this limit is too strong.
Then I checked if I can use permission on Page of Items but here I cannot distinguish read ad write permissions.

I simplified my problem in only one case Operators/Items. In my real system I have to divide Commercial capabilities to Technical. Working on it I found many other strange things, for example the insertion of an Item in Transfer Order need BOM Components read permission where Transfer Order for me is a commercial document but a commercial user should not see BOM.

How would you solve this problem?
Thanks!

Digital Signature

$
0
0
how to apply digital signature on pdf generated from navision? i want to do this through navision coding.

Permission problem with webservice

$
0
0
Hello,
I'm having an issue with the webservices of NAV 2017 (cu11): periodically the error 'You do not have the following permissions on TableData Dossier Setup' is logged.
This is the situation:
- User opens a page with an C# addin
- The addin uses the webservice to update data periodically with a background worker. In C# the credentials for the webservice are set to "UseDefaultCredentials"
- The webservice runs on a dedicated service tier, where credential type = Windows, use NTLM authentication = FALSE, Enable SSL = FALSE

When the service tier is started this works fine for a while, but suddenly the above error occurs in the event viewer for some users, not all. From then on the error is logged every time one the web service is called for these users, while other users still receive updates.

Does anyone know what can cause this? I'm 100% sure all users have read permissions on the table, as they can't start the page without.

Kind regards,
Andy


This is the complete error in the event viewer:

Server instance: SOAP_1
Tenant ID:
<ii>User:
Type: Microsoft.Dynamics.Nav.Types.NavPermissionException
Remappable: True
ErrorCode: 18023807
ErrorNumber: 1407
ModuleNumber: 19
SuppressMessage: False
SuppressExceptionCreatedEvent: False
FatalityScope: Call
Message: <ii>You do not have the following permissions on TableData Dossier Setup (Global): Read</ii>
StackTrace:
at Microsoft.Dynamics.Nav.Runtime.PermissionSetBase.VerifyPermissions(NavApplicationObjectBase securableObject, PermissionMask permissionMask, LimitedUserPermissionChecker limitedUserPermissionChecker, Func`2 checkTableEmpty, PermissionMask additionalIndirectPermissions)
at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.VerifyPermissions(PermissionMask permissionMask, Boolean checkForEmptyTable)
at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.FindRecordWithoutCheckingValues(DataError errorLevel, NavValue[] primaryKeyValues, FiltersAndMarks filtersAndMarks, Boolean useRecord, Boolean cacheOnly, Boolean calcAutoCalcFields)
at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.GetRecord(DataError errorLevel, NavValue[] values)
at Microsoft.Dynamics.Nav.Runtime.NavRecord.ALGet(DataError errorLevel, NavValue[] values)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50075.GetActivityInfo_Scope.OnRun()
at Filter.InvokeWithFilter(NavMethodScope )
at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50075.GetActivityInfo()
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50075.AddInstructionsDossier_Scope.OnRun()
at Filter.InvokeWithFilter(NavMethodScope )
at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50075.AddInstructionsDossier(INavRecordHandle precDossier, NavDate pdatStartDate, NavDate pdatReferenceDate, Int32 poptDossierStatus, Int32 poptInstructionStatus, Int32 poptShowInstructions, Boolean pbolHideEarlierDossiers, Int32 poptSorting, ByRef`1 pbolPlanningLinked, ByRef`1 ptSortKey, Boolean pbolDeleteCurrent, ByRef`1 piNextPlanItemID, INavRecordHandle precTmpPlanItems)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50075.OnInvoke(Int32 memberId, Object[] args)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50069.GetUpdatedContainerPlanning_Scope.OnRun()
at Filter.InvokeWithFilter(NavMethodScope )
at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50069.GetUpdatedContainerPlanning(NavCode pcodPlanningEnv, NavText ptCustomerFilter, NavCode pcodStatusFilter, NavCode pcodAddressID, NavCode pcodPlaceID, NavCode pcodZone, NavText ptTransportDate, NavText ptDateTimeLastUpdated, ByRef`1 pbtPlanningUpdate)
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.Dynamics.Nav.Runtime.TaskHelper.Rethrow(Exception exception)
at Microsoft.Dynamics.Nav.Service.WebServices.ServiceBroker.Invoke(Boolean isSoapMessage, Uri url, XmlReader input, TextWriter output, NavUserAuthentication navUserAuth)
at Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.<>c__DisplayClass3_1.<ProcessMessage>b__2()
at Microsoft.Dynamics.Nav.Service.WebServices.Disposer.Scope(Code code)
at Microsoft.Dynamics.Nav.Service.WebServices.WCFUtil.GetPopulatedMemoryStream(StreamFillingCallback callback)
at Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.ProcessMessage(Message message)
at SyncInvokeProcessMessage(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
Source: Microsoft.Dynamics.Nav.Ncl
HResult: -2146233088
</ii>

XML import always first row

$
0
0
I'm trying to import new data using xmlport. The file is plain txt without separator between columns (fixed text). The files are separated by new line (CR LF).
It looks like it loops well because the process create my the same amount of lines I've in the txt file but always with the same date (first line).

I've read the walkthrough I haven't find any clear mistake. What am I doing wrong?

Purchase Order To General Ledger Entries Custom Column

$
0
0
Hello, good day.

I have a new column in my purchase line (For GL Account type) and I want to pass the value of that column to general ledger entries. I keep on debugging to find where I will add my custom code to pass the value of my new added column in purchase line to General Ledger Entries but sad to say I can't find it, where will I find the block of codes that pass the value from custom column in purchase line to custom column in general ledger entries ? :) thanks in advance newbie here

Extending Code Field 20 -> 40

$
0
0
Hello,
we have an internal discussion where I need your advice.

As long as I develop NAV changing fieldlength is always a thing where you have to think about alternatives for this.
I would change the field and search all related fields and functions and so on ..

BUT a collegue wants to do this by exporting all objects as text and replace ALL Code[20] fields to Code[40]. ALL Code fields.

What I need from the best community is pros and cons for this approach. I'm absolutely against this.
So correct my standing or tell me why this is a bad idea. I need some good arguments.


Problem in doing the Data Encryption Using "Always Encrypted" functionality in Navision

$
0
0
I have created table "PAN" in Navision dev environment, in SQL management studio i did encryption for the one of the field in the PAN table,

then later if I run the table form RTC i am getting the following error

Table content in the PAN table on SQL Server contains a value that is not compatible with the corresponding data type that is defined for the table.

Field: PAN_Number
Type: Code
SQL type: varbinary

The table design may have been changed outside Microsoft Dynamics NAV.

Page Edit - PAN must close.

how i can solve this problem??

Data lost during upgrade

$
0
0
Hi all,
I am upgrading a database from 2009 to 2018 and I faced an issue. After the upgrade the table 77 Report selections does not contain 2 tables that were present at clean 2018 Navision. Reports 116 Statement and 1303 Standard Sales - Draft Invoice are present into a database but are missing in the table 77.
Any ideas why do that entries disappear?

How to disable timeout for a specific user

$
0
0
Dear all,

I would like to disable timeout for a specific windows client in NAV 2013R2. Whilst keeping the ClientServicesIdleClientTimeout in Instance for 10 mins, adding a line for the specific user's ClientUserSettings as <add key="ClientServicesIdleClientTimeout" value="MaxValue" /> did not work and the user's sessions still closes after 10 mins. Can you please guide how to disable timeout for a specific user? Thanks.

i Have Posted Fixed Asset Depreciation For month of march but in FA Ledger Entry Amount Not Updated

$
0
0
i Have calculated Depreciation from Batch Job and Posted Fixed Asset Depreciation from FA GL Journal For month of march-18 but in FA Ledger Entry Amount Not Updated in Fixed asset Card in NAV 2016.

but Depreciation Account and Accumulated Dep Account Proper Posted but in FA Ledger Entry Amount showing 0 and Credit amount Showing Correct in FA Ledger.

Pls Suggest How it is happened and how to correct.


remove Purchase lines ordering by item no

$
0
0
Hi everyone,

I have the page of purchase order. In this pages I have a page included with lines, the purchase lines

z62kbu7nyy6m.png



The problem I'm facing is in each order i'm making the purchase lines are being sorted by item no, and it's a mess when I want to persist a order of my products and check each one and don't want to alter it's order understand? So in my both cases no order was the best scenario.



I have a lot of keys in the purchase lines table, but for the purchase order at the moment i don't have anything in "SourceTableView". What can I do? In the images below you can see the same product in different lines.

k29kk10lmh9j.png


error validating report rdl content

$
0
0
I'm having the above error and I can't figure why.

cosnooh9f5m5.png

I have my var ShowLogo as a global var and initialized

OnInitReport()

ShowLogo := TRUE;

Delivery Note only prints One Copy

$
0
0
Hi everyone, I'm struggling trying to find why my delivery note only prints one page when I put value 2 or 3 in my request page. I'm using the copy loop triggers as i saw in documentation.

So below there's a image of my problem where in my report print I only have one page, when it was supposed to have 2 or 3 understand?

1iabzjy7vaqt.png



So I need to have in my document 3 pages that are the same, but one is the original, the second is double and third page is triplicated.

Code:

OnInitReport()

NoOfCopies := 1;
LactCopyText := SIH_Original;

CopyLoop - OnPreDataItem()
NoOfLoops := 1 + ABS(NoOfCopies);
CopyText := '';
SETRANGE(Number,1,NoOfLoops);
OutputNo := 1;


CopyLoop - OnAfterGetRecord()
IF Number > 1 THEN BEGIN
CopyText := Text001;
OutputNo += 1;
END;


IF LactCopyText <> '' THEN BEGIN
TextOrig2Via := SIH_Original;
END;
MESSAGE('%1',NoOfCopies); //here it prints 2

IF Number = 1 THEN
IF LactCopyText <> '' THEN
TextOrig2Via := LactCopyText
ELSE
TextOrig2Via := SIH_Original;
IF Number = 2 THEN
TextOrig2Via := SIH_Duplicated;
IF Number = 3 THEN
TextOrig2Via := SIH_Triplicated;
IF Number > 3 THEN
TextOrig2Via := SIH_Copy;


CurrReport.PAGENO := 1;
TotalQty := 0; // Item Tracking

HeaderGroup := 1;
LineNumber := 0;

CopyLoop - OnPostDataItem()

So what I'm missing?

Item tracking (serialized items) when moving items internally in warehouse

$
0
0
We are receiving the error "Warehouse item tracking is not enabled for No. ICT100000" when trying to do an internal movement within the warehouse. I know that the serial number field is located on the registered internal movement worksheet/page...if you have serialized items in a warehouse and you need to move them to a different location in the warehouse how do you enter the serial number of the item you are trying to move?

non stock item

$
0
0
HI
I have a situation.

We are one furniture trading company and we are using BOM very regularly. Suppose we have are quoting for a sofa with Fabric upholstery. Our Systems team will create an item in system and they will create one code with COM ( Custom own fabric) and this code+ a fabric guide ( we created another item with 0 value just to give an idea to the sales team to understand how much fabric need to use for upholstery of that particular sofa.

so while making a S.Quote quotation the sales team will select proper fabric code from the system and will assign that much meter in the fabric code which will calculate the value accordingly.

now the issue is.. the fabric guide ( 0 value item) they will be keeping it in that SQ and will convert it to SO , and purchase convert that So to PO.

NOw the issue is, at the time of receipt, the stores need to go to each So and need to remove that Fabric guide until it wont allow to finish the job
So i was wondering if there is a way to assign this as a non stock item where the Goods receipt is not necessary. and without deleting we can close the job.

any one could guide me for this.

thanks

Sumesh


Record(81) is not compatible with Codeunit.Run(Record(1208)).

Prod Order Operation Routings to Bins??

$
0
0
We are in the process of implementing Warehouse Management in NAV 2017, and we have a scenario, which it seems NAV should be able to accommodate:

- We have Manufactured Items with a multiple Component BOM and multiple Operation Routing
- As we manufacture a batch of material on a specific machine, it gets to a certain point where it needs to wait (3-14 days) for the Next Operation
- In this scenario, lets say the batch of material needs to “cure”, and it’s quantity is significant where it is stored on several pallets
- This is not the Last Operation on the Routing, because after it “cures” there are additional Operations, primarily for labeling and pack-out
- Here is the question/issue during that “curing” wait time, the pallets of material are moved to areas in the warehouse identified with Bin Codes
o Is it possible to have Output from a middle Operation (that is not the Last Operation) go to a Bin Code?
o Alternatively, is it possible to move/identify a Manufacturing Production Order to a Bin Code?

Function to Convert Quantities from one UOM to other

$
0
0
Hi,
Is there any standard Function available to convert Quantities of an Item from 1one UOM to Other UOM. for e.g. let's say for an Item X, we have 4 UOMs as EACH, PACK, BOX, PALETTE where EACH is Base UOM. 1 PACK = 2 EACH, 1 BOX = 2 PACKS = 4 EACH, & 1 PALETTE = 4 BOXES = 8 PACKS = 16 EACH.

what we want to do is to convert a given UOM to other by simply passing, (from UOM, to UOM).

Get Source Expression or Field Name with Field Caption in C/AL

$
0
0
Hi guys,

we have developed an addin for list pages. This addins search a specific value in a list. My problem with this is, that the microsoft dynamics nav framework dll does not know which field is focused. The dll only knows the caption of the list. This is a big problem, because if we transfer the caption back to NAV, we are not sure, which field of the page was focused.

My idea: Get the information in C/AL -> read the object blob reference to get the source expression with the control ID or the control caption. Unfortunately the blob reference is decoded.

Has anybody any idea, to get more information with C/AL to page controls? I know, that there is a new virtual table in Dynamics NAV 2018 "Page Control Field". I can solve my problem with this table in Dynamics NAV 2018, because I can transfer the control ID from the addin back to NAV. I am also looking for other solutions, because I need a solution for NAV 2013 to NAV 2018.

I also thought about exporting the object as text file, but this will only work with a developer licence.

Any hint will be appreciated. Thanks.

How to block user to use "About This Page" ??

$
0
0
Hi all,
how to disable user to use "About This Page"?
I have customize some pages to hide some fields. but if user clever enough, they can use about this page
Thanks
Viewing all 10069 articles
Browse latest View live


Latest Images

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