Changing Status Via Trigger

Hello


We have a trigger that changes the status of Data Record assets in a particular folder to 'Pending Approval' on asset creation.



Which looks like.



___





Events: Asset Created



Tree Location: Partent folder of where the assets are created.

Asset is of type: Data Record



Set Status: Ignore Permissions - Pending Approval



___



We do this so the status change to Pending Approval will automatically trigger the workflow for these particular assets.



This all used to work fine, but it now no longer works - we are now on 3.14.0.



Our problem is this.



If workflow is running on the asset, the Data Record is created and seems to accept the status change initially and the workflow is triggered, only to be automatically rejected by the user who created the asset (without any intervention by them). The asset then shows a status of 'Under Construction' and the workflow is cancelled.



If we disable the workflow, then create an asset, the trigger fails with this error and is not created:



Trigger Action: trigger_action_set_status Failed [CORE0135]

FAILURE: Trigger "BB Test" (Trigger# 31), Event "trigger_event_asset_created" broadcast by "Test Data Record" (Id# 19217) [CORE0127]

You should report this via Squiz Support so that we can investigate it properly for you.