web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / CustomVision PredictIm...
Power Apps
Answered

CustomVision PredictImageURL fails - no default iteration

(1) ShareShare
ReportReport
Posted on by 24

Hi Community,

 

I try to use CustomVision.PredictImageURL(projectID,Url). In this case I get an error message: "Project has no default iteration". I cannot find as of today how to set a default iteration for a CV project. ( I could see older videos on the internet, where it was an option, which is not visible today)

 

The CustomVision.PredictImageURL(projectID,Url, {iterationId:Text}) has a third optional parameter, but I cannot find how to specifiy it...

 

Any hint how to move forward?

Thanks, Miklos

 

Categories:
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Miklos ,

    Could you please share a bit more about your issue?

     

    Based on the error message that you mentioned, it seems to tell that you do not set a Default iteration for your CV project.

    Please check and see if the following article would help in your scenario:

    https://github.com/Azure/azure-sdk-for-net/issues/4556

    Please check if you have specified one iteration of your CV Project as the default iteration.

     

    In addition, there are some updates on Custom Vision API recently (Custom Vision 2.x -> Custom Vision 3.0). Within the Custom Vision API 3.0, the Default iterations have been removed in favor of a publish / unpublish a named iteration.

    Please check the following article for more details about the updates in Custom Vision API:

    https://docs.microsoft.com/en-us/azure/cognitive-services/Custom-Vision-Service/update-application-to-3.0-sdk

     

    If the issue still exists, you could consider take a try to create a custom connector based on the Custom Vision API within your PowerApps to achieve your needs.

    More details about creating custom connector in PowerApps, please check the following article:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/register-custom-api

    https://www.youtube.com/watch?v=dBCS1nPsDiE

    More details about Custom Vision API, please check the following article:

    https://southcentralus.dev.cognitive.microsoft.com/docs/services/Custom_Vision_Prediction_3.0/operations/5c82db60bf6a2b11a8247c15

     

    Best regards,

  • Miklos Profile Picture
    24 on at

    Hi Kris,

     

    Thanks for your pieces of advices. I will check them and come back here with the results.

     

    Miklos

  • annelirymert Profile Picture
    Microsoft Employee on at

    I'm experiencing the same issue on PredictImage from PowerApps. +1 on updates!

  • Verified answer
    Miklos Profile Picture
    24 on at

    Hi Team,

     

    First I created a Custom Connector with the Postman approach, it works.

     

    Last, but not least, thanks to PowerApps guru @MichalRok , if you use the South Central US region, you can specify the optional IterationID parameter the following way:

    1/ Get the IterationID:

    1. Open your published project at www.customvision.ai and go to the PERFORMANCE tab
    2. Move the mouse over one of your performance tag
    3. You should see an URL including the Iteration ID

    For example: https://www.customvision.ai/projects/12345678-38a5-4e00-8a6b-4c3643fa5352#/manage?iterationId=3e1170e1-b52f-45cb-9356-6d5b995f8c47&tagIds=55dcfa89-4fc4-4b26-b5ae-2498cad537a3 

     

    2/ Specify the Iteration ID within the CustomVision connector the following way assuming the above iteration ID:

    CustomVision.PredictImageURL("projectid","imageurl",{iterationId:"3e1170e1-b52f-45cb-9356-6d5b995f8c47"})

     

    Hope it helps.

    Miklos

     

     

    Capture.PNG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard