Hi All, i have a salels invoice table that is linked to a few power automate flow, the flow is used to roll up related record's value into sales invoices.
I then try to create a dataverse low code plugin using the new dataverse accelerator app, to do some business logic inside the sales invoice table. my code is like below.
If(
ThisRecord.'Original Contract this Claim' <> 0.0 ||
ThisRecord.'Variation this Claim' <> 0.0 ||
ThisRecord.'Credit this Claim' <> 0.0 ||
ThisRecord.'Deposit this Claim' <> 0.0 ||
ThisRecord.'Trade Cost this Claim' <> 0.0 ||
ThisRecord.'Management this Claim' <> 0.0
,
Patch(
'Sales Invoices',
ThisRecord,
{
Amount:
ThisRecord.'Original Contract this Claim' +
ThisRecord.'Variation this Claim' +
ThisRecord.'Credit this Claim' +
ThisRecord.'Deposit this Claim' +
ThisRecord.'Trade Cost this Claim' +
ThisRecord.'Management this Claim'
}
)
)
All fields that involved in the low code plugin is inside the sales invoice table.
Now the issue is, once i created the low code plugin using dataverse accelerator app, plugin assemblies and plugin steps are created for my solution, then straight away all my cloud flow that will make an update to the sales invoice table will break. error will occur on action "update a row" that point towards the entity/table that has plugin registered. Error code shown like this:
{
"error": {
"code": "0x80040224",
"message": "Object reference not set to an instance of an object.",
"@Microsoft.PowerApps.CDS.TraceText": "\r\n[Microsoft.PowerFx.PlexPlugins: Microsoft.PowerFx.Evaluator]\r\n[0276bf61-ef6f-ee11-9ae7-00224893b259: SalesInvoicePlugin]\r\n\r\n",
"@Microsoft.PowerApps.CDS.InnerError.Message": "Object reference not set to an instance of an object."
}
}
Error on the power automate looks like this:

I have tried all possible solution, including remove the plugin to fix it, doesnt work, all flows is break permanently, even creating a new flow wont fix this issue.
I have to roll back the whole environment to fix this. This is a warning, this stuff is bloody dangerous! Never use it!!