PTD - Ens.Util.ProjectTextDocuments are for arbitrary text storage. Encountering an error when adding a PTD to source control that is not used for production or host item settings:
Create a PTD:
set sc=##class(Ens.Util.ProjectTextDocument).Create("Some text","INV.Instruction.One","Descriptive text")
In VS Code open INV.Instruction.One.PTD and select Add from the SC menu:
exporting new version of INV.Instruction.One.PTD to /xyz/repo/ptd/INV_Instruction_One/.xml
ERROR #5002: ObjectScript error: ExportPTD+3^SourceControl.Git.Production.1 *itemName [ExportPTD+3^SourceControl.Git.Production.1:GITBLD]
PTD - Ens.Util.ProjectTextDocuments are for arbitrary text storage. Encountering an error when adding a PTD to source control that is not used for production or host item settings:
Create a PTD:
set sc=##class(Ens.Util.ProjectTextDocument).Create("Some text","INV.Instruction.One","Descriptive text")
In VS Code open INV.Instruction.One.PTD and select Add from the SC menu:
exporting new version of INV.Instruction.One.PTD to /xyz/repo/ptd/INV_Instruction_One/.xml
ERROR #5002: ObjectScript error: ExportPTD+3^SourceControl.Git.Production.1 *itemName [ExportPTD+3^SourceControl.Git.Production.1:GITBLD]