Skip to main content

Notifications

Business Central forum
Suggested answer

Could not find a property named 'eShopSalesOrderLines' on type 'Microsoft.NAV.eShopSalesOrder'.

Posted on by 15
{"error":{"code":"BadRequest","message":"Could not find a property named 'eShopSalesOrderLines' on type 'Microsoft.NAV.eShopSalesOrder'.  CorrelationId:  5df17f26-4917-4a92-83a0-45627a49e097."}}


https://{standard}/OData_Test/api/dynamicseShop/eShop/v2.0/companies(dd053d13-2ca5-ec11-bf97-001dd8b71f1c)/eShopSalesOrder?$expand=eShopSalesOrderLines

Getting above error while accessing API page in browser with basic auth for BC onprem 20 version.

Using API page but in that part page is normal page(list page).
eShopSalesOrder is API page while eShopSalesOrderLines is normal list page using as a part page
although i have mentioned for part page
ApplicationArea = All;
EntityName = 'eShopSalesOrderLines';
EntitySetName = 'eShopSalesOrderLines';


Same scenario is working fine for cloud versions but not for onprem.


using https://{standard}/OData_Test/api/dynamicseShop/eShop/v2.0/companies(dd053d13-2ca5-ec11-bf97-001dd8b71f1c)/eShopSalesOrder url without part page working fine.

Need some suggestions thanks

  • Suggested answer
    Mohd Edrees Profile Picture
    Mohd Edrees 15 on at
    RE: Could not find a property named 'eShopSalesOrderLines' on type 'Microsoft.NAV.eShopSalesOrder'.

    HI Alice,

    Yes issue is resolved.

    I have created an new API part pages with that names and used them in the main page as part page.

  • Suggested answer
    ALICE THOMAS Profile Picture
    ALICE THOMAS 65 on at
    RE: Could not find a property named 'eShopSalesOrderLines' on type 'Microsoft.NAV.eShopSalesOrder'.

    Hi did you resolve this what is the solution?

    I am facing the same issue on saas

  • Mohd Edrees Profile Picture
    Mohd Edrees 15 on at
    RE: Could not find a property named 'eShopSalesOrderLines' on type 'Microsoft.NAV.eShopSalesOrder'.

    Hi marco thanks for you reply

    yes its customization. I am the one who is developing these API pages.

    I have already tested these changes in SAAS (Cloud sandbox) it working.

    I am facing issue while testing these API pages in On Prem 20 version

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: Could not find a property named 'eShopSalesOrderLines' on type 'Microsoft.NAV.eShopSalesOrder'.

    Hello,

    This looks like a customization. You need to contact your partner or developer  to help you with this issue.

    Thank you.

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,469 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans