# Robflow deploy function not working properly

**URL:** <https://discuss.roboflow.com/t/robflow-deploy-function-not-working-properly/1499>\
**Category:** 🤝  Community Help\
**Tags:** bugs\
**Created:** [February 19, 2023, 2:52am UTC](https://discuss.roboflow.com/t/robflow-deploy-function-not-working-properly/1499 "2023-02-19T02:52:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nadhir\_hasan](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/nadhir_hasan/32/1241_2.png) [@nadhir\_hasan](https://discuss.roboflow.com/u/nadhir_hasan)\
**Post date:** [February 19, 2023, 2:52am UTC](https://discuss.roboflow.com/t/robflow-deploy-function-not-working-properly/1499/1 "2023-02-19T02:52:30Z")

</div>

Hello Roboflow support team,

I am reaching out because I am encountering an issue when trying to deploy my model on your platform. Specifically, when I attempt to deploy my model using the following code:

```auto
project.version(3).deploy(model_type="yolov8", model_path="runs/detect/yolov8x_custom")

```

I receive the following error message:

“An error occurred when getting the model upload URL: This version already has a trained model. Please generate and train a new version in order to upload model to Roboflow.”

Note: model is working properly in my local machine

However, I have tried creating a new version and deploying it multiple times, but I continue to receive the same error message. Additionally, when I look at the Roboflow console, it says that the model is uploading, but after waiting for over a day, the upload does not complete.

I would appreciate any assistance you can provide in resolving this issue. Please let me know if there is any additional information I can provide to help diagnose the problem.

Thank you for your time and assistance.

---

<div class="post-metadata">

**Author:** ![Maxim\_Butyrin](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/maxim_butyrin/32/1209_2.png) [@Maxim\_Butyrin](https://discuss.roboflow.com/u/Maxim_Butyrin)\
**Post date:** [February 19, 2023, 5:12pm UTC](https://discuss.roboflow.com/t/robflow-deploy-function-not-working-properly/1499/2 "2023-02-19T17:12:04Z")

</div>

Hi! Had the same issue. The command for upload is by default project.version(dataset.version).deploy… And for me it didn’t work. So I changed “dataset,version” to the actual version number and it successfully uploaded. I see that you input number “3”. Just check if this number is correct for your version.

---

<div class="post-metadata">

**Author:** ![SkalskiP](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/skalskip/32/956_2.png) [@SkalskiP](https://discuss.roboflow.com/u/SkalskiP)\
**Post date:** [February 27, 2023, 2:57pm UTC](https://discuss.roboflow.com/t/robflow-deploy-function-not-working-properly/1499/3 "2023-02-27T14:57:15Z")

</div>

@nadhir_hasan / @Maxim_Butyrin would any of you be keen to create a bug report for us and give us a bit more info? [Issues · roboflow/roboflow-python · GitHub](https://github.com/roboflow/roboflow-python/issues)
