Share via

Error executing Auto ML Job for image task

Onyango, David 31 Reputation points
2025-12-15T09:09:46.66+00:00

I am getting this error when running a job an AutoML job for images.

The data type of image URL column 'image_url' is NULL, but it should be STREAM. Marking the experiment as failed because initial child jobs have failed due to user error

I have used 2 MLTable formats image tasks as follows unsuccessfully.

Format 1

paths:

  • file: ./test.jsonl

transformations:

  • read_json_lines: encoding: utf8
  • convert_column_types:
    • columns: image_url column_type: stream_info
    • columns: labels column_type: string

Format 2

paths:

  • file: ./val.jsonl

transformations:

  • read_json_lines: encoding: utf8
  • convert_column_types:
    • columns: image_url column_type: stream
    • columns: labels column_type: string

The corresponding .jsonl files have each line in the form below.

{"image_url": "img_0.jpg", "labels": "Unknown"}

NOTE: For background information, I am migrating from Custom Vision to Auto ML. I have successfully moved the labelled images from custom vision to my blob storage container.

Azure AI Custom Vision
Azure AI Custom Vision

An Azure artificial intelligence service and end-to-end platform for applying computer vision to specific domains.


1 answer

Sort by: Most helpful
  1. Anshika Varshney 9,655 Reputation points Microsoft External Staff Moderator
    2025-12-15T10:16:50.04+00:00

    Hi Onyango, David,

    Welcome to Microsoft Q&A and Thank you for reaching out.

    This error is commonly seen with AutoML image jobs and is usually related to the execution environment rather than the image task itself.

    A few things the community typically checks first:

    Environment / dependency issues: AutoML image jobs auto-generate a Conda environment, and failures often occur due to package conflicts or unsupported Python versions. Sticking to Python 3.8–3.10 usually helps.

    Image build failures: Sometimes the job fails while building the Docker image (dependency resolution, base image pull issues, or deprecated images).

    Dataset or compute setup: Verify that the image dataset format matches the task (classification/detection/segmentation) and that the compute target has sufficient resources (especially GPU).

    Next steps

    1. Check the detailed job logs in the Azure ML portal (or download them via CLI) the root cause is usually clearly logged there.
    2. If the failure is environment-related, try using a custom environment instead of the fully auto-generated one.
    3. Confirm that your Azure ML SDK, workspace, and compute are on supported versions.

    Please let me know if there are any remaining questions or additional details, I can help with, I’ll be glad to provide further clarification or guidance.

    Thnakyou!


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.