Skip to content

<SUBSCRIPT> error in IncrementalLoad pull handler. #928

@cambot

Description

@cambot

I was switching between branches when I noticed that the changed files were not making it into my Iris instance. When I examined the DeploymentLog, I found this error:

<SUBSCRIPT>OnPull+21^SourceControl.Git.PullEventHandler.IncrementalLoad.1 *delList() Subscript 2 is ""
OnPull+21^SourceControl.Git.PullEventHandler.IncrementalLoad.1

This is that line of code:

if ((internalName = "") && (..ModifiedFiles(i).changeType '= "D")) {
    write !, tExternalName, " was not imported into the database and will not be compiled. "
} elseif (..ModifiedFiles(i).changeType = "D") {
    #; Deleted production items will not have an internal name
    set delIndex = $select(##class(SourceControl.Git.Util.Production).ItemIsPTD(tExternalName): 1, 1: 2)
    set:(delIndex=1) internalName = "-"_i
    set delList(delIndex, internalName) = tExternalName   ;; <<<  SUBSCRIPT error being thrown here
}

In my git diff, there were only these 2 deleted files:

    D    Demo.ProcessingIssueReason.CLS    cls/Demo/ProcessingIssueReason.cls
    D        data/sample/Failure_Reasons.csv

Neither item is a PTD, so $select returns 2. However, that CSV does not have an internal name, so internalName ends up blank and we end up with <SUBSCRIPT>.


Version 2.15.0
$zv: IRIS for Windows (x86-64) 2025.1 (Build 223U) Tue Mar 11 2025 18:14:42 EDT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions