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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

OData Web Service & API Failure After Publishing Extension

(0) ShareShare
ReportReport
Posted on by 78

Hi Supports of Dynamics 365,

We published our extension to our local container running insider image (US Business Central 17.1 (Platform 17.0.16734.0 Application 17.1.16741.0))  to check compatibility,

when we tried to access both our own web services and BC original web services by postman, we got errors as:

{
    "error": {
        "code": "Unknown",
        "message": "Sequence contains no matching element  CorrelationId:  c4e6aabd-8069-4a65-8cd4-4b07f1585dd0."
    }
}

and when we tried to access APIs we defined in the extension, we got another error as:

{
    "error": {
        "code": "Unknown",
        "message": "Sequence contains more than one matching element  CorrelationId:  05860099-62f0-471f-b45c-744a271e9d51."
    }
}

But everything went well and functional when we uninstall and unpublish our extension from the container.

Here is our app.json as reference:

{
  "id": "XXX",
  "name": "XXX",
  "publisher": "XXX",
  "brief": "XXX",
  "description": "XXX",
  "version": "XXX",
  "privacyStatement": "XXX",
  "EULA": "XXX",
  "help": "XXX",
  "url": "XXX",
  "logo": "TC-icon-166x166.png",
  "contextSensitiveHelpUrl": "https://MicrosoftDynamics365BChelp.truecommerce.com",
  "application": "17.0.0.0",
  "dependencies": [],
  "screenshots": [],
  "platform": "17.0.0.0",
  "features": 
    ["TranslationFile"],
    "idRanges": [{
      "from": 70203500,
      "to": 70203824
    }],
      
  "runtime": "6.0"
}

We are wondering if there could be something wrong with the app.json's config,

or if there were some special settings we missed which could cause this Web Service & API Failure?


Another thing is that, there are a huge numbers of warnings in code as:

Use of implicit 'with' will be removed in the future. Qualify with 'Rec.'. This warning will become an error in a future release.AL(AL0604)

We have no idea what this warning is about,

so we are wondering if we need to resolve these warnings on our side, or if this could be something wrong with the AL Language Extension?

And we did not see these warnings when we built our extension for BCV16.

(The AL Language Extension in VS Code we are using is on v6.0.335379.)

Thanks a lot!

Craig

I have the same question (0)
  • Suggested answer
    Mohamad Vajid Profile Picture
    on at

    Hello,

    I suggest you report this on github.com/.../issues

    I can the same issue reported here:

    github.com/.../5916

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,457

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 742 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 669 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans