Import dicom is not working while running the segmentation script from AWS ssm "tils.importDicom(skullfolder)"

import dicom is not working while running the segmentation script from AWS ssm

“utils.importDicom(skullfolder)”

SQL failed
Bad SQL:
Error text: No query Unable to fetch row