Question Nora Hutchison · Oct 14, 2020

–  I want to “copy” a file to another, appending if the file already exists. The below code works, except it overwrites the new file, rather than append.  The documentation says CopyFile will append

//Both files exists, so we can combine them
                               
                 set tsc=##class(%File).CopyFile("D:\Files\Out\Vigilanz\AD_Lawson10132020.txt","D:\Files\Out\Vigilanz\employee10132020.txt"
                                if $$$ISOK(tsc)
                                {
                                !, "SQL file copied"
                                }
                    

2
0 710
Question Nora Hutchison · Jun 29, 2017

Hi, we are trying to deployed a changed schedule to our DEV instance (from our TST).  And are getting an error:

SingleFailure: Error during import ERROR <Ens>ErrException: <COMMAND>zImportStream+13^Ens.Util.SettingsDocument.1 -- logged as '-' number - @' tcommit' > ERROR #6315: Errors reporting importing XML subelement in file '/xxx/deploy/Lee-Test.xml' at line '12' offset '40', skipping this item.
 
RequiresManualIntervention: Manual intervention required: Error during import ERROR <Ens>ErrException: <COMMAND>zImportStream+13^Ens.Util.SettingsDocument.1 -- logged as '-' number - @' tcommit' >
6
0 494