Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

DotNet and NAV 2015 oData CRUD

Posted on by Microsoft Employee

Hello,

After a test in the NAV 2015 on AZURE Platform (MSDN account), I tried to implement the following code https://msdn.microsoft.com/en-us/library/hh166960%28v=nav.80%29.aspx to insert or modify Locations in NAV by using DotNet code:

Dim lNav As New NAV(New Uri("localhost/.../Company('CRONUS%20International%20Ltd.')/"))

lNav.Credentials = CredentialCache.DefaultNetworkCredentials

lNav.IgnoreResourceNotFoundException = True

Dim lLocation As pLocation = lNav.pLocation.First

lLocation.Name = "NEW LOCATION"

lNav.UpdateObject(lLocation)

lNav.SaveChanges()

On the SaveChanges event, I have the following error message due to the fact the page is not editable.

...
       Message=<?xml version="1.0" encoding="utf-8"?><m:error xmlns:m="schemas.microsoft.com/.../metadata"><m:code /><m:message xml:lang="en-US">An error occurred while processing this request.</m:message><m:innererror><m:message>The underlying application page is not editable.</m:message>...

Could it be possible to have Dev Licence to modify the page property in the aim to be able to finish my test?

Thnaks in advance for your help


*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: DotNet and NAV 2015 oData CRUD

    Thanks a lot! I found also the following info on the Licence Help:

    Properties of the Demo License

    When the demo license is installed, you can:

    Start up to two simultaneous client sessions on any platform.

    Create up to two companies.

    Support an unlimited number of web users.

    Run in any supported language.

    Use all application functionality, including add-on products, local extensions and customizations in current and previous versions. This means that you can run, but not modify, all object types within the range 1 to 99,999,999.

    Run and modify table 18, pages 21 and 22, report 101, and XMLports 99,008,503 and 99,008,510.

    Run, modify, and create fields 99,990 to 99,999, page 99,999, report 99,999, and MenuSuite 90.

  • Verified answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: DotNet and NAV 2015 oData CRUD

    What is the page no. are you using ? I believe you are using Location List page 15, you can use Location Card page 5703 instead which is editable or for your testing purposes you can change that page to editable or create a copy of the page with Editable yes.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans