Need Help with BIDS Validation Error: SIDECAR_KEY_REQUIRED (TaskName)

Hello everyone!

I’m new to BIDS formatting and am encountering an issue while trying to validate my resting-state fMRI data. When I run my dataset through the online BIDS Validator, I’m getting the following error:

error: SIDECAR_KEY_REQUIRED (TaskName)
with the following structure:

  • Path: BIDS > sub-001 > func
  • Files:
    • sub-001_task-rest_bold.json
    • sub-001_task-rest_bold.nii

Can someone please help me understand:
1.How can I fix this?
2. My data is resting-state fMRI, how should I define TASKNAME?
3. If there are two runs, can I named them with 'sub-001_task-rest_run1_bold.nii/.json ’ and 'sub-001_task-rest_run2_bold.nii/.json ’

.JSON:{
“Modality”: “MR”,
“MagneticFieldStrength”: 3,
“ImagingFrequency”: 123.232,
“Manufacturer”: “Siemens”,
“ManufacturersModelName”: “TrioTim”,
“InstitutionName”: “West China Hospital”,
“InstitutionalDepartmentName”: “Department”,
“InstitutionAddress”: “Street StreetNo,Chengdu//2B88B0//,District,CN,ZIP”,
“DeviceSerialNumber”: “35392”,
“StationName”: “MRC35392”,
“BodyPartExamined”: “HEAD”,
“PatientPosition”: “HFS”,
“ProcedureStepDescription”: “head^function”,
“SoftwareVersions”: “syngo MR B17”,
“MRAcquisitionType”: “2D”,
“SeriesDescription”: “rest-mri305”,
“ProtocolName”: “rest-mri305”,
“ScanningSequence”: “EP”,
“SequenceVariant”: “SK”,
“ScanOptions”: “FS”,
“SequenceName”: “*epfid2d1_64”,
“ImageType”: [“ORIGINAL”, “PRIMARY”, “M”, “ND”, “MOSAIC”],
“SeriesNumber”: 3,
“AcquisitionTime”: “14:14:54.030000”,
“AcquisitionNumber”: 1,
“SliceThickness”: 5,
“SpacingBetweenSlices”: 5,
“SAR”: 0.0710645,
“EchoTime”: 0.03,
“RepetitionTime”: 2,
“FlipAngle”: 90,
“PartialFourier”: 1,
“BaseResolution”: 64,
“ShimSetting”: [
-2844,
7509,
-16267,
698,
169,
-54,
-653,
-128 ],
“TxRefAmp”: 280.906,
“PhaseResolution”: 1,
“ReceiveCoilName”: “HeadMatrix”,
“CoilString”: “c:HEA;HEP”,
“PulseSequenceDetails”: “%SiemensSeq%\ep2d_pace”,
“PercentPhaseFOV”: 100,
“PercentSampling”: 100,
“PhaseEncodingSteps”: 64,
“AcquisitionMatrixPE”: 64,
“ReconMatrixPE”: 64,
“BandwidthPerPixelPhaseEncode”: 33.245,
“EffectiveEchoSpacing”: 0.000469995,
“DerivedVendorReportedEchoSpacing”: 0.000469996,
“TotalReadoutTime”: 0.0296097,
“PixelBandwidth”: 2441,
“DwellTime”: 3.2e-06,
“PhaseEncodingDirection”: “j-”,
“SliceTiming”: [
0.995,
0,
1.06,
0.0675,
1.1275,
0.1325,
1.1925,
0.2,
1.26,
0.265,
1.325,
0.3325,
1.3925,
0.3975,
1.4575,
0.465,
1.525,
0.53,
1.59,
0.5975,
1.6575,
0.6625,
1.7225,
0.73,
1.79,
0.795,
1.855,
0.8625,
1.9225,
0.9275 ],
“ImageOrientationPatientDICOM”: [
0.999325,
-0.0161703,
0.0329724,
0.0156987,
0.999771,
0.014514 ],
“InPlanePhaseEncodingDirectionDICOM”: “COL”,
“ConversionSoftware”: “dcm2niix”,
“ConversionSoftwareVersion”: “v1.0.20201102”
}

Any guidance would be greatly appreciated.

Hi @Yuanyuan and welcome to neurostars!

Just adding “TaskName”: “rest” to the jsons will fix it.

Best,
Steven

FWIW, Cognitive Atlas distinguishes between rest eyes closed and rest eyes open, so I normally set the TaskName to the appropriate one of those.

Hi Steven,

Thank you so much for your quick and helpful response! Adding “TaskName”: “rest” to the JSON files worked perfectly and fixed the issue I was having.

I really appreciate your assistance!!

Best regards,
Yuanyuan

Thank you tsalo for sharing this helpful tip! This is very useful information.

Best regards,
Yuanyuan