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 :
Finance | Project Operations, Human Resources, ...
Answered

Custom Script taking too much time

(5) ShareShare
ReportReport
Posted on by 25
I am trying delete some record from VendInvoiceInfoLine Table through writing Custom Script Package.
Target is only merely 10 lines, but when I Test Run the Script, the script start executing but never completes. 
 
I am using below method to delete the record.
 
vendInvoiceInfoLine.delete();
 
Does anyone have idea why this is happening or suggest best approach??
Categories:
I have the same question (1)
  • Anton Venter Profile Picture
    20,629 Super User 2026 Season 1 on at
    Have you read the Microsoft post? Perhaps there's something unsupported in your script, or perhaps an exception/error. Please share the code of your update script here (using the insert code snippet button).
     
    Run custom X++ scripts with zero downtime
     
     
    Your post is in the wrong sub-forum by the way. Which one is more relevant? Supply chain or Finance?
    • Finance | Project Operations, Human Resources, AX, GP, SL
    • Supply chain | Supply Chain Management, Commerce
  • Sohaib Cheema Profile Picture
    49,659 Super User 2026 Season 1 on at
    Is this in DEV system or Tier-2/Test.
    Were you able to run it in the DEV successfully ?
  • Sagar121 Profile Picture
    1,151 Super User 2026 Season 1 on at
    Hello,
     
    Can you please post your code?
  • Verified answer
    CU12030547-0 Profile Picture
    25 on at
    Script run successfully after adding skipmethods and converting while select statement to Set Based Operations. Thanks everyone for your responses.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 590 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 349

#3
Diego Mancassola Profile Picture

Diego Mancassola 263

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans