web
You’re offline. This is a read only version of the page.
close
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.

I have the same question (0)
  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    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?

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    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.

  • Andres V. Profile Picture
    5 on at

    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.

  • Gunjan Bhattachayya Profile Picture
    35,423 on at

    Andres,

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

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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 584 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 499 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 254 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans