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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Cannot delete a record in Vendor invoices (VendInvoiceInfoTable). Delete operations are not allowed across companies. Please use changecompany keyword to change the current company before deleting the record.

(0) ShareShare
ReportReport
Posted on by 5

Hello Dears,

Good evening, Hope you are doing great!

The batch run has an issue, the batch run resulting the below error even the code has changecompany.

Error: """"Batch task failed: Cannot delete a record in Vendor invoices (VendInvoiceInfoTable). Delete operations are not allowed across companies. Please use changecompany keyword to change the current company before deleting the record.""""

Let me know if any other details are required. 
=====
Infolog for job Purchase Order 25thOct-5 (5638306356)
Infolog for task Purchase Order 25thOct-5 (5717557156)
Cannot delete a record in Vendor invoices (VendInvoiceInfoTable). Delete operations are not allowed across companies. Please use changecompany keyword to change the current company before deleting the record.
Batch task failed: Cannot delete a record in Vendor invoices (VendInvoiceInfoTable). Delete operations are not allowed across companies. Please use changecompany keyword to change the current company before deleting the record.
End of task log
=====
pastedimage1666704555804v1.png
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    298,366 Super User 2025 Season 2 on at
    RE: Cannot delete a record in Vendor invoices (VendInvoiceInfoTable). Delete operations are not allowed across companies. Please use changecompany keyword to change the current company before deleting the record.

    Hi,

    Did you use a standard batch or is this related to a customization? If it is part of a customization, please share the code (Use rich formatting > Insert > Code) so we know what exactly you have done.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,140

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 706 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans