dbo.CPL_TIPersonInBaseTree

SQL_TRIGGER parent PersonInBaseTree

Created 2025-06-27T18:01:18.170 · modified 2026-04-14T23:23:08.450 · source: live DB sys.objects/sys.sql_expression_dependencies.

Open formatted source/search result

Parameters

NameTypeOutput
No parameters.

Referenced objects

SchemaObjectColumn/minorClass
BaseTreeOBJECT_OR_COLUMN
insertedOBJECT_OR_COLUMN
QBM_PSessionErrorAddOBJECT_OR_COLUMN
QER_VPersonsAreMeOBJECT_OR_COLUMN
dboQBM_FGIConfigparmValueOBJECT_OR_COLUMN
dboQBM_FGISessionContextOBJECT_OR_COLUMN

Source excerpt

First extracted SQL definition lines from the exported source. Use the full source page for complete context.

Open full formatted source

1    create   trigger CPL_TIPersonInBaseTree on PersonInBaseTree  for Insert not for Replication as begin  BEGIN TRY if exists (select top 1 1 from
2 inserted) goto start return start: declare @GenProcID varchar(38) select @GenProcID = dbo.QBM_FGISessionContext('')  if dbo.QBM_FGIConfigparmValue('QER\ComplianceCheck\DisableSelfExceptionGranting'
3) = '1' begin if exists (select top 1 1 from inserted i join BaseTree b on i.uid_org = b.uid_org and b.uid_orgRoot = 'CPL-V-NonCompliance' join QER_VPersonsAreMe
4 me on i.UID_PersonDecisionMade = me.UID_PersonOrigin and i.UID_Person = me.UID_PersonAlsoMe where i.IsDecisionMade = 1 and i.IsExceptionGranted = 1 ) 
5begin raiserror( '#LDS#Cannot make assignment because not permitted according to configuration of DisableSelfExceptionGranting.|', 18, 3) with nowait end
6 end  END TRY BEGIN CATCH exec QBM_PSessionErrorAdd default RAISERROR ('', 18, 1) WITH NOWAIT END CATCH ende: return end 
7

Module relation graph

Loading module relation graph…

Source-derived context

Generated from exported SQL module definitions plus read-only sandbox sys.objects/sys.parameters/sys.sql_expression_dependencies metadata. This is factual source evidence, not a semantic guess.

provenance: SQL definition export provenance: sandbox DB metadata modified: 2026-04-14T23:23:08.450

uses session context values has TRY/CATCH error handling

Summary: calls QBM_PSessionErrorAdd; writes INSERT not; reads/joins inserted, BaseTree, QER_VPersonsAreMe; uses config QER\ComplianceCheck\DisableSelfExceptionGranting

Declared parameters

No declared parameters in sys.parameters for this object, or metadata was not available.

DML targets

INSERT not

Called routines

Config/session

Config: QER\ComplianceCheck\DisableSelfExceptionGranting

Session: None extracted.

DBQueue/tasks

None extracted.

Temp tables / referenced variables

Temp: #LDS #Cannot

Variables: @GenProcID

Referenced by / reverse dependencies

Generated from live DB metadata, FK rows, and exported SQL dependency/source extraction. This is factual linkage evidence, not inferred behavior.

No reverse dependencies extracted.