Quantcast
Channel: Microsoft Dynamics NAV Forum - Recent Threads
Viewing all 29197 articles
Browse latest View live

Assign Roles to Users via Web Service

$
0
0

Hello everyone,

I want to do basic access management in NAV 2015 via Web Servie ODATA.

The goal ist to create a user (and connect to AD-User) and to assign one or more permissions from predefined roles.

I was able to create the user and set the windows login by publishing and using Page '9807'.

But I am not able to assign a permission to it. I am using Page '9808'.

Here the $metadata of OData Service

<EntityType Name="UserPermissionRights"><Key><PropertyRef Name="Company_Name"/><PropertyRef Name="Role_ID"/><PropertyRef Name="User_Security_ID"/></Key><Property Name="User_Security_ID" Nullable="false" Type="Edm.Guid"/><Property Name="Role_ID" Nullable="false" Type="Edm.String"/><Property Name="Company_Name" Nullable="false" Type="Edm.String"/><Property Name="_x003C_Description_x003E_" Type="Edm.String"/><Property Name="ETag" Type="Edm.String" ConcurrencyMode="Fixed"/></EntityType>

 When I do a POST request, I set the "User_Security_ID" and the "Role_ID" BASIS (the standard role) and it creates an entry, but ONLY with the security ID, while the Role_ID ist empty String ''.

The payload JSON:

{"User_Security_ID": "00000000-0000-0000-0000-000000000001","Role_ID": "BASIS"
}

Response: Created

<entry xml:base="http://...serviceHost.../" m:etag="W/&quot;'TheETag'&quot;" xmlns="http://www.w3.org/2005/Atom" xmlns:d="schemas.microsoft.com/.../dataservices" xmlns:m="schemas.microsoft.com/.../metadata"><id>http://...serviceHost.../Company('Northwind')/UserPermissionRights(Company_Name='',Role_ID='',User_Security_ID=guid'00000000-0000-0000-0000-000000000001')</id><category term="NAV.UserPermissionRights" scheme="schemas.microsoft.com/.../scheme"/><link rel="edit" title="UserPermissionRights" href="Company('Northwind')/UserPermissionRights(Company_Name='',Role_ID='',User_Security_ID=guid'00000000-0000-0000-0000-000000000001')"/><title/><updated>2017-05-26T14:37:13Z</updated><author><name/></author><content type="application/xml"><m:properties><d:User_Security_ID m:type="Edm.Guid">00000000-0000-0000-0000-000000000001</d:User_Security_ID><d:Role_ID/><d:Company_Name/><d:_x003C_Description_x003E_/><d:ETag>TheETag</d:ETag></m:properties></content></entry>

The entry is created and visible via GET and in NAV Client, but without Role_ID (...or Company_Name obviously). I would be able to fill in the role ID in NAV client directly, but that is not my goal.

The entry can be removed with DELETE and using correct eTag. Also tried PATCH or PUT the entry but the Role_ID does not change, probably because it is a key value...

Thought about association, but the Role_ID is only defined as String in metadata and no association is visible in Metadata

Tried to use Page '9807' (maybe name is 'UserCard?' in EN language). There appeared an association in metadat and I could use a POST request creatiung a permission. But the Role_ID was also not reacting and btw. the permission was only temporary...

I have no further idea how to create a Permission user<>role_ID.

Can anybody help me? Do I need a special page? I would be glad for any information.

Thank you in advance!

Alexander


MS NAV 5.0 Crash

$
0
0

I am having a problem with only one user in our company that has Super User rights. When he is in the Cash Management →Deposits and selects a customer who has an invoice that is due later (in the future) than the date of the deposit. When he selects that invoice NAV will crash with the error "Microsoft NAV has stopped working" and nav restarts. 

I have checked his access in the SQL manager to make sure he has correct access and this is the same as others in our company.

I have tried to login other super users to his machine and we are getting the same error, however if I login as him on my machine, I do not get the error. 

I have tried to Repair his FINSQL.exe in control Panel. 

I have checked the event viewer to see the error and this means very little to me: 

Faulting application name: finsql.exe, version: 5.0.24199.0, time stamp: 0x45e564a3
Faulting module name: finsql.exe, version: 5.0.24199.0, time stamp: 0x45e564a3
Exception code: 0xc0000027
Fault offset: 0x002ac518
Faulting process id: 0x33c
Faulting application start time: 0x01d2d7007dc0631f
Faulting application path: C:\Program Files (x86)\Microsoft Dynamics NAV\CSIDE Client\finsql.exe
Faulting module path: C:\Program Files (x86)\Microsoft Dynamics NAV\CSIDE Client\finsql.exe
Report Id: 0c46dc0b-42f4-11e7-bde5-00224daee770
Faulting package full name:
Faulting package-relative application ID:

Does anyone have any thoughts what might be causing this error?

Connection error Dynamic NAV

$
0
0

Hi

I have a 2017 MS dynamics NAV installed and used on a stand alone system.Its displays an error message "The program could not create a connection to the server".

kindly assist.

contract mismatch, a premature session shutdown or an internal server error

$
0
0

Dear Friends,

I am having an issue when I try to open RTC. It will show all the companies that I have. When select the company and continue, I am getting bellow error. 

In my server, NAV service is running, and I can properly log into RTC. Client PC has connected to network through wifi.

The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.

Have you ever got this kind of error before ?

Regards

Shan Abeywicrema

Purchase order lines with different required dates

$
0
0

We are about to go live with Nav17 upgrading from version 5.

I we have a purchase order with multiple items, and these items have different required dates we can enter the dates on the order, but how does the vendor know what dates we require/

I can only have one required date on the report and that is picked up from the header.

Permissions for Posting/Register Sales Invoice in Cartera Module

$
0
0

Hi,

we are facing permission issue when trying to register a sales credit memo in NAV 2016 CU8: "you do not have permission to apply or unapply documents in cartera module"

Does someone know how to grant such permissions?

Thanks in advance

Regards

Luis

Job

$
0
0

Any one know how to add a field to show up on job list report? We have three customized field added to our job card but the standard report (job list) is not printing that. 

How to change Security Filter Modes

$
0
0

Hi all, 

In my company we use security filters applied to tables 23, 25 and 380 since NAV 2009. Recently, we upgraded to NAV 2016 and then to NAV 2017. In NAV 2009 we didn't have any problems. But now, the users are getting error messages whenever they enter a vendor card. The error message says "A security filter has been applied to table Detailed Vendor Ledg. Entry. You cannot access records that are outside of this filter.", and when they click on ok they can continue working. It also appears when they pull a Vendor No. into a purchase order, for example. From what I read, the problem has to do with the calculation of flowfields that use table 380 and it seems that if I change SecurityFiltering Property = Filtered it will work. But I do not know where I can do that for I did not find this property in the table design.  

Is it only possible to specify the SecurityFiltering property in C/AL code? If so, where do I add it? 

Thanks in advance. 

Regards, 

Helena


Non Stock Items

$
0
0

Hi,

Just trying to find documentation what the difference is between Non Stock Items and Items of type Service?

Would you use non stock items for drop shipments or another part of the system?

Alex

Nav 2009 native database performance problems

$
0
0

Hi all,

we have a Nav 2009 installation which uses native database service.

My company has 18 nav users. Actually database (.fdb file) is 60GB with an usage of 73%

We have constantly performance problems in every single operation (such as query or registration operations), even if we use client installed on server (I exclude network issue).

The machine is a non virtualized server with 24Gb ram, 12 core cpu and a raid5 disk system (150+GB free space). Actually Nav is the main running software.

Other info:

Cache DBMS 1000000kb

Cache commit: yes

Objects cache: 32000kb

Can we take some actions (actually we cannot migrate to sql :-( )?

Regards,

Alessandro

Error while transforming Forms to Pages using Transformation Toolkit

$
0
0

Hi All,

I am getting this error while transforming Nav 2009 R2 forms to pages in Transformation Toolkit.

------------ Transformation started at 30-05-2017 15:19:37 ------------
Forms file: .\Forms.xml
Pages file: .\Pages.xml
InsertElements file: .\TransformPages.xml
IgnoreForms file: .\IgnorePages.xml
DeleteElements file: .\DeleteElements.xml
MoveElements file: .\MoveElements.xml
RenumberPages file: .\MovePages.xml
CodeRules file: .\coderules.txt
-----------------------------------------------------------------------
Error: Schema: \ApplicationObjects.xsd
Error: Form -2: The validation for file:///C:/Users/rajaneesh.h/Desktop/TransformationTool/TransformationTool/ApplicationObjects.xsd.tmp.xml failed. Detailed Information: LineNumber=2, LinePosition=2
Error: Form -2: The 'urn:schemas-microsoft-com:dynamics:NAV:ApplicationObjects:TransformPages' element is not declared.
Error: Some input file can’t be validated by schema. Please, correct it and rerun tool again

Can anyone help me to fix this?

Import Inventory with Excel and import stock quantité on new DB

$
0
0

Hi

I need to import from excel quantity  to migrate stock on new database NAV16.

I think the best way is to make Inventory and import the excel.

so my qestions is : 

How can i import Inventory from excel (need tutorial).

and if there is a best way to migration stock for the first time?

Kind regards, 

Closing Job Lines

$
0
0

Hello,

We've recently started using the jobs module to raise our sales invoices. Everything is working ok for the process, but we've got some time posted to a Job that can't be charged.

When I used a previous version of Nav I was able to "close" lines on a job so they stopped appearing when we ran the create sales invoices process. Is there a way to do this in 2013, or would we need to post the invoice but with a 0 value to stopthe lines appearing?

 

Thanks

Lee

Assistance with setting up functions in NAV

$
0
0

How can you set up recurring entries in general and automatic payments from accounts payable in NAV?

Setting up Financial Reporting in NAV 2013

$
0
0

Hello All,

What would be the best way to set-up financial reporting in NAV 2013? Would it be working with management reporter? Please let me know.

Thanks!


Serial Number on product file

$
0
0

I've created a new product file and did not choose to track the product by serial number, because it didn't exist. Now, my supplier is using serial numbers and I wanted to change it, but an error "pending movements don't allow the change" is showing up. How can I update the product file so I can add the serial numbers?

Regards,

Subcontracting in nav

$
0
0

hi friends,

i have a scenario in subcontracting .i have one Semi finished (sfg) and two components in BOM,

for producing the first SFG , i required another sfg for this sfg i have cone component .

how to configure this process in bom. i need to create two subcontracting orders for two different vendors.

Connection fails

$
0
0

Hi eveybody,

I am a stupid user and have an issue with connecting with my client (laptop1) towards our NAV server.

As nobody internally finds the rootcause of the issue (networking, NAV implementator, software/hardware support), I come to you all.

I get the error "The service Principal Name (Delegation) configuration has been Set incorrectly. Server connect URL...

A call to SSPI failed, see inner exeption.

I do not have the issue with my other laptop2. So it should be something locally. The strange this is that it worked a while ago.

The NAV software was pushed on the both machines. If I use the IP instead of the name of the server, it works.

I can ping to the server on name, which is resolving the correct ip on the both machines.

I reinstalled the NAV client but that din't solve the issue. I reinstalled the network adaptors as well.

Any Idea's how to troubleshoot?

Thx a million in advance...

Change Status for Released Production Order to Firm Planned

$
0
0

Hello NAV community:

I hope someone can help. Our customer has a scenario where they are producing goods (make to order), but sometimes the customer changes their specifications for the finished product after the order has already been placed. In this case, they have already consumed items and the production order is in released status.

In this scenario, our client wants to be able to change the quantity of the components used in the production order and possibly even undo or reverse the consumption of the component parts.

At first, I thought it would be best to change the status of the production order back to Firm Planned, but the system is blocking that by giving the error "Firm Planned is not a valid status". The reason for this is that in page 99000882 in Set function  it only allows editing the status to Firm Planned if the current status is before firm planned (FirmPlannedStatusEditable variable).

If someone can give a suggestion on this, I would appreciate it very much. 

Thanks in advance.

-Ted

Importing Data

$
0
0

Hi,

Can i restore a bak file from 2016 version to a new instance 2017 without any conflicts? 

Viewing all 29197 articles
Browse latest View live


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