Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Web Service / Inbound port

(0) ShareShare
ReportReport
Posted on by 5

Ive create an inbound port that I'm using in an C# app, this service will create a record on a new custom table, well is working fine, now I've overwrited the Insert method (after the port was created) to execute some code after the record is inserted but for some reason it is not executing the code (wich will insert records in another table) any help you can provide will be really appretiated.

Thanks

Andres V.

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: Web Service / Inbound port

    Andres,

    It's almost always linked to CIL issues. Great that you resolved it.

  • Andres V. Profile Picture
    5 on at
    RE: Web Service / Inbound port

    Well I run a full compilation and still didn't work, so I had to stop the service and deleted the dlls files the XppIL folder and it worked. Thank you.

  • Suggested answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: Web Service / Inbound port

    Most likely you forgot to generate CIL.

    Web services are always executed in CIL code, so if your x++ changes are not yet compiled to CIL, then the web service call still uses the old code in the insert method.

  • Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: Web Service / Inbound port

    Hi Andres,

    Could you please let us know the following -

    1. Have you done a full CIL?

    2. Can you test inserting records into this table (from a form or using table browser) and check if your code is getting executed?

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,342 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,027 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans