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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

How to add a record using the VendInvoiceLine_Project Data Entity using Power Automate

(1) ShareShare
ReportReport
Posted on by 90

Hello community,

I'm working on adding a record to the table VendInvoiceInfoLine_Project, which is associated with lines inside a Vendor Invoice. To do this, I created a custom Data entity based on VendInvoiceInfoLine_ProjectBiEntity. The main difference is that my custom entity is not read-only. However, every time I try to add a record, I got the same error: "Write returned RecId 0 for table row of type 'NPLVendInvoiceInfoLine_ProjectBiEntity'. Infolog: .\r\n", despite including all required fields.

Could someone help clarify how this table is linked to the vendor invoice? Below is an image for better understanding.

Thanks!

 

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    306,230 Super User 2026 Season 1 on at
    Hi Mario,
     
    Not fully sure, but I think that there is a record ID reference field on the table VendInvoiceInfoLine_Project. What exact fields have you added in your custom data entity? What identification to link to the invoice line have you implemented? 
  • Mario C Profile Picture
    90 on at

    Hello Andre,

    I duplicated the data entity called VendInvoiceInfoLine_ProjectBiEntity, keeping the same fields and adding one called VendInvoiceInfoLineRefRecId from the VendInvoiceInfoLine_Project table. This new field is used to attach the project to the line. That's the only difference.

    Thanks!

  • André Arnaud de Calavon Profile Picture
    306,230 Super User 2026 Season 1 on at
    Hi Mario,

    I missed your update. Have you solved your challenge already? If not, the data entity framework is intended to not rely on (reference) record IDs. You mentioned you added the VendInvoiceInfoLineRefRecId, but what else did you do to fill this reference record ID with the correct value?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Subra Profile Picture

Subra 407

#3
Martin Dráb Profile Picture

Martin Dráb 274 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans