web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Business Central forum

Getting error while adding/modifying customer data through ODATA webservice using .NET

(0) ShareShare
ReportReport
Posted on by 10

Hello everyone,

I am trying to modify and add customer data to Business Central through ODATA .

I am getting this error "The underlying application page is not editable."

Do i need to give permission somewhere, i am using the super user which has full access to everything.I can read data but cant modify add or delete.

I added service in Visual Studio 2015 using  add service.

My code is like this 

=============================================================

Dim uri As Uri = New Uri("myserver:7048/.../Company('CRONUS Canada, Inc.')")

Dim NAV As New productService.NAV(uri)
NAV.Credentials = New NetworkCredential("administrator", "password")

Dim Customer = New productService.customers
Customer.No = "21"
Customer.Name = "ABC"
Customer.Balance_Due_LCY = 0.00
Customer.Balance_LCY = 0.00
Customer.Credit_Limit_LCY = 0.00
Customer.Sales_LCY = 0.00
Customer.Currency_Code = "USD"
Customer.Contact = "Some namel"
Customer.Customer_Posting_Group = "FOREIGN"
Customer.Gen_Bus_Posting_Group = "EXPORT"
Customer.Credit_Limit_LCY = "1000.00"
NAV.AddTocustomers(Customer)
NAV.SaveChanges()

===============================================================

Categories:
  • Verified answer
    Suresh Kulla Profile Picture
    50,280 Super User 2026 Season 1 on at

    Which page you have published as the service? Try Customer Card Page 21.

  • Sanjeev Lal Profile Picture
    10 on at

    Thanks for the reply.

    It worked , now i can add customers but another issue same error for modify records.

    Any idea how to resolve that?

  • Sanjeev Lal Profile Picture
    10 on at
    [quote user="Sanjeev Lal"]

    Thanks for the reply.

    It worked , now i can add customers but another issue same error for modify records.

    Any idea how to resolve that?

    [/quote]

    Please ignore the above comment, all works fine.

    Thank a lot.

  • Verified answer
    Suresh Kulla Profile Picture
    50,280 Super User 2026 Season 1 on at

    What error you are getting, the page is not editable? are you using same Page 21 for add and modify?

  • Suggested answer
    Sanjeev Lal Profile Picture
    10 on at

    No it works now, i was by mistake again using customers page so it wasnt working.Now everything is fine when as i used Customer card page 21 as suggested by you.

    Thanks again

  • Sanjeev Lal Profile Picture
    10 on at

    Hi,

    Any idea for Creating invoice, which page should be used?

    Cuurently i can create/delete Sales Invoices and SaleInvoiceSalesLines using (Sales invoice page 43) but without quantity and price.

    When i provide the quantity i get error saying "Property "Editable" for Quantity is invalid!" otherwise it creates the sales invoice and sales lines or items.

    Thanks

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans