# ODK Collect App Form Auto Send not working

**URL:** <https://forum.getodk.org/t/odk-collect-app-form-auto-send-not-working/39544>\
**Category:** Support\
**Tags:** odk-collect\
**Created:** [November 9, 2022, 10:49am UTC](https://forum.getodk.org/t/odk-collect-app-form-auto-send-not-working/39544 "2022-11-09T10:49:56Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![QB\_ODK](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/q/dc4da7/32.png) [@QB\_ODK](https://forum.getodk.org/u/QB_ODK)\
**Post date:** [November 9, 2022, 10:49am UTC](https://forum.getodk.org/t/odk-collect-app-form-auto-send-not-working/39544/1 "2022-11-09T10:49:56Z")

</div>

**1. What is the issue? Please be detailed.**  
Hi, I am trying to Auto send the Finalized form to the Server, but it is not working.

**2. What steps can we take to reproduce this issue?**  
Enabled the following settings in  
In ODK Collect App, Settings -- Form Management - Form Submission - Auto Send  
Enabled Wifi or Cellular.

**3. What have you tried to fix the issue?**  
Enabled all the settings and tried with both ODK Central Server and Google Drive, but not able to Auto Send.

Please let me know is there any other settings need to be done in ODK Central Server or ODK Collect App other than this.  
Thanks in Advance.

---

<div class="post-metadata">

**Author:** ![danbjoseph](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/danbjoseph/32/21901_2.png) [@danbjoseph](https://forum.getodk.org/u/danbjoseph)\
**Post date:** [November 9, 2022, 4:48pm UTC](https://forum.getodk.org/t/odk-collect-app-form-auto-send-not-working/39544/2 "2022-11-09T16:48:32Z")

</div>

Welcome to the ODK forum, @QB_ODK! We're glad you're here. When you get a chance, please [introduce yourself on this forum thread](https://forum.getodk.org/t/-/6671). I'd also encourage you to add a picture as your avatar because it helps build community!

We will need some more information to help troubleshoot.

- What version of ODK Collect are you using (it should be at the bottom of the main screen)?
- Are you able to send the forms manually by using the "Send Finalized Form" section of the app?
- Are sure you are marking the submission as finalized when you complete a survey?

---

<div class="post-metadata">

**Author:** ![QB\_ODK](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/q/dc4da7/32.png) [@QB\_ODK](https://forum.getodk.org/u/QB_ODK)\
**Post date:** [November 10, 2022, 3:35am UTC](https://forum.getodk.org/t/odk-collect-app-form-auto-send-not-working/39544/3 "2022-11-10T03:35:16Z")

</div>

1. What version of ODK Collect are you using (it should be at the bottom of the main screen)?  
ODK Collect v2022.3.6
2. Are you able to send the forms manually by using the "Send Finalized Form" section of the app?  
Yes, I am able to send the forms manually when I click "Send Finalized Form"
3. Are sure you are marking the submission as finalized when you complete a survey?  
Yes, the submissions are finalized and I am able to see the finalized forms in the "Send Finalized Form" section.

Thanks

---

<div class="post-metadata">

**Author:** ![LN](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/ln/32/1605_2.png) [@LN](https://forum.getodk.org/u/LN)\
**Post date:** [November 10, 2022, 10:59pm UTC](https://forum.getodk.org/t/odk-collect-app-form-auto-send-not-working/39544/4 "2022-11-10T22:59:31Z")

</div>

@Szymon_Rujner, @dbemke, @Grzesiek2010, @seadowg weren't we talking about this recently? It has happened to me more than once on debug builds that auto send stopped working. We haven't been able to reproduce and thought it might have to do with debug builds but this suggests otherwise. Can any of you think of more information that would be helpful?

What Android version are you on, @QB_ODK?

I am fairly certain that it will work if you "kill" Collect and launch it again (see [instructions](https://www.howtogeek.com/195786/how-to-closestop-a-running-app-on-an-android-device/)). However, if it's not urgent, it might be helpful to see whether anyone else has ideas on how we could identify why this happens so we can try to address the root cause.

---

<div class="post-metadata">

**Author:** ![QB\_ODK](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/q/dc4da7/32.png) [@QB\_ODK](https://forum.getodk.org/u/QB_ODK)\
**Post date:** [November 11, 2022, 5:08am UTC](https://forum.getodk.org/t/odk-collect-app-form-auto-send-not-working/39544/5 "2022-11-11T05:08:41Z")

</div>

@LN Android Version 9

Will update once I kill and reinstall Collect app.  
Thanks

---

<div class="post-metadata">

**Author:** ![QB\_ODK](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/q/dc4da7/32.png) [@QB\_ODK](https://forum.getodk.org/u/QB_ODK)\
**Post date:** [November 14, 2022, 12:40pm UTC](https://forum.getodk.org/t/odk-collect-app-form-auto-send-not-working/39544/6 "2022-11-14T12:40:08Z")

</div>

Hi @LN,

I tried installing the ODK Collect App v2022.3.6 in Mobile(Android Version11)  
Still I am facing the same issue.  
Let me know is there a way to fix this issue.

Thanks.

---

<div class="post-metadata">

**Author:** ![seadowg](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/seadowg/32/10045_2.png) [@seadowg](https://forum.getodk.org/u/seadowg)\
**Post date:** [November 14, 2022, 5:07pm UTC](https://forum.getodk.org/t/odk-collect-app-form-auto-send-not-working/39544/7 "2022-11-14T17:07:58Z")

</div>

@QB_ODK what device (make/model) are you using? And what exactly do you mean when you say that auto send is "not working"? Are you seeing an error message or do forms just never send?

---

<div class="post-metadata">

**Author:** ![QB\_ODK](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/q/dc4da7/32.png) [@QB\_ODK](https://forum.getodk.org/u/QB_ODK)\
**Post date:** [November 15, 2022, 6:06am UTC](https://forum.getodk.org/t/odk-collect-app-form-auto-send-not-working/39544/8 "2022-11-15T06:06:01Z")

</div>

Hi @seadowg ,

I have tried in the following mobile models, but it is not working.

- Redmi Pro
- Oneplus
- Samsung Galaxy

There is _No Error message_, the forms just never send.

I am to able send the forms manually by using the "Send Finalized Form", but when I enable the Auto Send in ODK Collect App it is not working.  
_Settings -- Form Management - Form Submission - Auto Send- Enabled Wifi or Cellular_  
Thanks

---

<div class="post-metadata">

**Author:** ![Grzesiek2010](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/grzesiek2010/32/2881_2.png) [@Grzesiek2010](https://forum.getodk.org/u/Grzesiek2010)\
**Post date:** [November 15, 2022, 10:47am UTC](https://forum.getodk.org/t/odk-collect-app-form-auto-send-not-working/39544/9 "2022-11-15T10:47:38Z")

</div>

> [@QB\_ODK](#):
>
> I am to able send the forms manually by using the "Send Finalized Form", but when I enable the Auto Send in ODK Collect App it is not working.  
> _Settings -- Form Management - Form Submission - Auto Send- Enabled Wifi or Cellular_  
> Thanks

Settings seem fine but autosend is triggered after finalizing a form. Then such a form and all the other finalized forms should be automatically uploaded. Just to be 100% sure do you do that (finalize a form to trigger autosend)?

Another thing that comes to my mind is that in your form you might have autosend disabled on a form level (see [https://getodk.github.io/xforms-spec/#submission-attributes](https://getodk.github.io/xforms-spec/#submission-attributes)) and that's why it's blocked. Could you check it and maybe attach your form here so that we can check too?

---

<div class="post-metadata">

**Author:** ![QB\_ODK](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/q/dc4da7/32.png) [@QB\_ODK](https://forum.getodk.org/u/QB_ODK)\
**Post date:** [November 16, 2022, 9:17am UTC](https://forum.getodk.org/t/odk-collect-app-form-auto-send-not-working/39544/10 "2022-11-16T09:17:08Z")

</div>

Yes, the forms which I am trying to send are Finalized.

In the form Settings sheet, the value of _auto-send_ is _default_. When I change that to '_TRUE_' the forms are sent automatically.

Just to be clear, auto-send values are true/false/default

If the value is _TRUE_, Auto-send Works  
If the value is _False_, Forms will not Auto-Send  
If the value is _default_, ODK Collect App auto-send --\> wifi or Cellular(all option) --\> Forms are not Auto-Send. What does the 'default' option do ?

---

<div class="post-metadata">

**Author:** ![Grzesiek2010](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/grzesiek2010/32/2881_2.png) [@Grzesiek2010](https://forum.getodk.org/u/Grzesiek2010)\
**Post date:** [November 16, 2022, 9:38am UTC](https://forum.getodk.org/t/odk-collect-app-form-auto-send-not-working/39544/11 "2022-11-16T09:38:16Z")

</div>

Ah bingo! We support only true/false values. Any value other than true (default/something/noidea etc.) is treated as false. If you want to have the default behavior (to work depending on project settings) just leave the value empty. Could you tell us where you found that `default` value (in the docs on the forum)?

Ohh now I see that [ODK Build](https://build.getodk.org/) adds default value in `autosend` and `autodelete`. Is that what you used? This is not handled properly in ODK Collect. We definitely need to fix it so that:

> True -\> True  
> False -\> False  
> Empty value/Any other value -\> check project settings in the app

I'm on it and thanks for reporting the issue!

---

<div class="post-metadata">

**Author:** ![QB\_ODK](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/q/dc4da7/32.png) [@QB\_ODK](https://forum.getodk.org/u/QB_ODK)\
**Post date:** [November 16, 2022, 10:56am UTC](https://forum.getodk.org/t/odk-collect-app-form-auto-send-not-working/39544/12 "2022-11-16T10:56:12Z")

</div>

Yes, used ODK Build to create the form.

Thank you for the clarification.
