Command dgate --delete fails in 1.4.19

  • Hi,


    In a PHP script running on a W10 64 bit I use the command:

    Code
    dgate --deleteseries:patid:seriesuid

    Of course with the correct parameters.


    With 1.4.19 I get:

    Code
    29-12-2018 11:06:23 [CONQUESTPRAK] Server command sent using DGATE -- option
    29-12-2018 11:06:23 [CONQUESTPRAK] Deleting series from: 000
    29-12-2018 11:06:23 [CONQUESTPRAK] Removing object: [MAG0:000\1.3.51.0.7.1583638180.51589.4175.37669.20855.56144.52530_0009_000001_150846803400cb.dcm]
    29-12-2018 11:06:23 [CONQUESTPRAK] ***[NewDeleteFromDB] -FAILED: DDO does not contain correct UIDs

    Then the image seems to be removed on MAG but the database isn't changed so it may be referring to not a not existing instance.


    When I fall back to 1.4.17 and using the same script:

    Code
    [CONQUESTPRAK] Server command sent using DGATE -- option
    [CONQUESTPRAK] Deleting series: 000
    [CONQUESTPRAK] Removed file: [MAG0:000\1.3.51.0.7.12546216918.30696.55364.42108.18096.11231.45256_0001_000001_140352490700ff.dcm]

    Nothing failed and everything is OK, instance removed on MAG and in DB.


    Chris.

  • Hm,


    it works for me? Here I delete the test image provided with the server:


    C:\dicomserver>dgate64 --deleteseries:0009703828:1.3.46.670589.5.2.10.2156913941.892665339.860724


    In debug log mode it gives:


    12/31/2018 12:36:58 PM [CONQUESTSRV1] Server command sent using DGATE -- option

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Connected by address: 0100007f

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Testing transfer: '1.2.840.10008.1.2' against list #0 = '1.2.840.10008.1.2'

    12/31/2018 12:37:11 PM [CONQUESTSRV1] 0000,0002 18 UI AffectedSOPClassUID "1.2.840.10008.1.1"

    12/31/2018 12:37:11 PM [CONQUESTSRV1] 0000,0100 2 US CommandField 48

    12/31/2018 12:37:11 PM [CONQUESTSRV1] 0000,0110 2 US MessageID 1

    12/31/2018 12:37:11 PM [CONQUESTSRV1] 0000,0800 2 US DataSetType 257

    12/31/2018 12:37:11 PM [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2"

    12/31/2018 12:37:11 PM [CONQUESTSRV1] 9999,0300 42 LO ConquestConsoleText "Server command sent using DGATE -- option"

    12/31/2018 12:37:11 PM [CONQUESTSRV1] 9999,0400 72 LO ConquestConsoleComma "deleteseries:0009703828:1.3.46.670589.5.2.10.2156913941.892665339.860724"

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Server command sent using DGATE -- option

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Deleting series from: 0009703828

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Query On Image

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Issue Query on Columns: DICOMImages.SOPInstanc, DICOMSeries.SeriesInst, DICOMStudies.PatientID, DICOMStudies.StudyInsta

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Values: DICOMSeries.SeriesInst = '1.3.46.670589.5.2.10.2156913941.892665339.860724' and DICOMStudies.PatientID = '0009703828' and DICOMSeries.StudyInsta = DICOMStudies.StudyInsta and DICOMImages.SeriesInst = DICOMSeries.SeriesInst

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Tables: DICOMImages, DICOMSeries, DICOMStudies

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Query Distinct Tables: DICOMImages, DICOMSeries, DICOMStudies

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Columns : DICOMImages.SOPInstanc, DICOMSeries.SeriesInst, DICOMStudies.PatientID, DICOMStudies.StudyInsta

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Where : DICOMSeries.SeriesInst = '1.3.46.670589.5.2.10.2156913941.892665339.860724' and DICOMStudies.PatientID = '0009703828' and DICOMSeries.StudyInsta = DICOMStudies.StudyInsta and DICOMImages.SeriesInst = DICOMSeries.SeriesInst

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Order : (null)

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Records = 2

    12/31/2018 12:37:11 PM [CONQUESTSRV1] RemoveFiles 2 images

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Query Tables: DICOMImages

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Columns : ObjectFile, DeviceName

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Where : SOPInstanc = '1.3.46.670589.5.2.10.2156913941.892665339.718742' AND ImagePat = '0009703828'

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Order : (null)

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Removing object: [MAG0:0009703828\1.3.46.670589.5.2.10.2156913941.892665339.860724_0001_002000_14579035620000.dcm]

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Delete Record Table: DICOMImages

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Where : DICOMImages.SopInstanc = '1.3.46.670589.5.2.10.2156913941.892665339.718742' and DICOMImages.SeriesInst = '1.3.46.670589.5.2.10.2156913941.892665339.860724'

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Query Tables: DICOMImages

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Columns : ObjectFile, DeviceName

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Where : SOPInstanc = '1.3.46.670589.5.2.10.2156913941.892665340.475317' AND ImagePat = '0009703828'

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Order : (null)

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Removing object: [MAG0:0009703828\1.3.46.670589.5.2.10.2156913941.892665339.860724_0001_003000_14579035620001.dcm]

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Query Tables: DICOMImages

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Columns : DICOMImages.SopInstanc

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Where : DICOMImages.SopInstanc = '1.3.46.670589.5.2.10.2156913941.892665340.475317' and DICOMImages.SeriesInst = '1.3.46.670589.5.2.10.2156913941.892665339.860724' and DICOMImages.ImagePat = '0009703828'

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Order : (null)

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Delete Record Table: DICOMImages

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Where : DICOMImages.SopInstanc = '1.3.46.670589.5.2.10.2156913941.892665340.475317' and DICOMImages.SeriesInst = '1.3.46.670589.5.2.10.2156913941.892665339.860724' and DICOMImages.ImagePat = '0009703828'

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Query Tables: DICOMImages

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Columns : DICOMImages.SeriesInst

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Where : DICOMImages.SeriesInst = '1.3.46.670589.5.2.10.2156913941.892665339.860724' and DICOMImages.ImagePat = '0009703828'

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Order : (null)

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Delete Record Table: DICOMSeries

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Where : DICOMSeries.SeriesInst = '1.3.46.670589.5.2.10.2156913941.892665339.860724' and DICOMSeries.StudyInsta = '1.3.46.670589.5.2.10.2156913941.892665384.993397' and DICOMSeries.SeriesPat = '0009703828'

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Query Tables: DICOMSeries

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Columns : DICOMSeries.StudyInsta

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Where : DICOMSeries.StudyInsta = '1.3.46.670589.5.2.10.2156913941.892665384.993397' and DICOMSeries.SeriesPat = '0009703828'

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Order : (null)

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Delete Record Table: DICOMStudies

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Where : DICOMStudies.StudyInsta = '1.3.46.670589.5.2.10.2156913941.892665384.993397' and DICOMStudies.PatientID = '0009703828'

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Query Tables: DICOMStudies

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Columns : DICOMStudies.PatientID

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Where : DICOMStudies.PatientID = '0009703828'

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Order : (null)

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Delete Record Table: DICOMPatients

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Where : DICOMPatients.PatientID = '0009703828'

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Query Tables: DICOMWorkList

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Columns : DICOMWorkList.PatientID

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Where : DICOMWorkList.PatientID = '0009703828'

    12/31/2018 12:37:11 PM [CONQUESTSRV1] Order : (null)

  • Hi,


    For some reason dgate64 is not present in the root of c:\dicomserver\distribution\

    However, this a 64 bit.


    I'll re-install the whole stuff again and let you know.


    BTW, is there a reason to use \distribution as parent directory?


    Chris.

  • Hi,


    After fresh install I got the same:


    The only extra I did:

    make a symlink dgate.exe to dgate64.exe.


    Chris.

  • Hi,


    the distribution folder name was a mistake. It is gone in current releases. Dgate.exe and dgate64.exe are copied from install32 and install64.


    Which version are you actually using, I recommend 1.4.19c1.


    Marcel

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!