Problems posting completed form data to CommCareHQ

Hi all,

Sorry for the potential cross-posting. I submitted this to the
commcare-developers@googlegroups.com group and then found out this is the
proper group to send to. Sorry!

I have been having some issues with uploading completed forms to CommCareHQ.
I think I have looked into all the obvious problems. I have confirmed that
the settings in the profile.xml file to point to the correct URL’s at
CommCareHQ and I have uploaded the proper XForms to CommCareHQ. However,
when I attempt to send data to CommCareHQ from the phone emulator, I receive
the following message on the phone screen: “Successfully Submitted. Your
data is safe, but we made a small mistake. We’re working on it.” The log
messages in the emulator console seem to suggest the transmission took place
without an error (I receive a 200 message). However, when I look at the
submissions tab in CommCareHQ I see no record of that submission.

I have tried several things to help debug the problem. I wrote a simple
curl script to POST the raw XML data from the form to CommCareHQ.
Surprisingly, this worked! I now have several “submissions” in CommCareHQ
all uploaded manually using this curl script.

I also created a simple web app and attempted to POST to it (instead of
CommCareHQ) via the phone. And that appears to work fine. My web app
received the data. I also POSTed to my web app via my curl script to see
how the submissions differed. As far as I could tell the submissions
appeared identical with the exception of some header fields.

I have tried several different CommCare builds, from default(tip) to
CommCare 1.0, all with the same results.

Has anybody else ran into this problem or have any ideas of where to look
next?

Best,
Stephen

Dear Stephen,

I’d be happy to check the server logs to see if there were any anomalies.
What domain are you submitting to, and what is the xmlns of the xform which
is posting?

Thanks,

Rowena

··· On Thu, Dec 16, 2010 at 7:31 AM, Stephen Lorenz wrote:

Hi all,

Sorry for the potential cross-posting. I submitted this to the
commcare-developers@googlegroups.com group and then found out this is the
proper group to send to. Sorry!

I have been having some issues with uploading completed forms to
CommCareHQ. I think I have looked into all the obvious problems. I have
confirmed that the settings in the profile.xml file to point to the correct
URL’s at CommCareHQ and I have uploaded the proper XForms to CommCareHQ.
However, when I attempt to send data to CommCareHQ from the phone emulator,
I receive the following message on the phone screen: “Successfully
Submitted. Your data is safe, but we made a small mistake. We’re working
on it.” The log messages in the emulator console seem to suggest the
transmission took place without an error (I receive a 200 message).
However, when I look at the submissions tab in CommCareHQ I see no record
of that submission.

I have tried several things to help debug the problem. I wrote a simple
curl script to POST the raw XML data from the form to CommCareHQ.
Surprisingly, this worked! I now have several “submissions” in CommCareHQ
all uploaded manually using this curl script.

I also created a simple web app and attempted to POST to it (instead of
CommCareHQ) via the phone. And that appears to work fine. My web app
received the data. I also POSTed to my web app via my curl script to see
how the submissions differed. As far as I could tell the submissions
appeared identical with the exception of some header fields.

I have tried several different CommCare builds, from default(tip) to
CommCare 1.0, all with the same results.

Has anybody else ran into this problem or have any ideas of where to look
next?

Best,
Stephen

Hi Rowena,

Thank you. The domain is mobilize and the xmlns of the xform is
http://dev.commcarehq.org/mobilize/mobilize_cc_reg. I just attempted
another submit about a minute ago.

Best,
Stephen

··· 2010/12/16 Rowena Luk

Dear Stephen,

I’d be happy to check the server logs to see if there were any anomalies.
What domain are you submitting to, and what is the xmlns of the xform which
is posting?

Thanks,

Rowena

On Thu, Dec 16, 2010 at 7:31 AM, Stephen Lorenz stephen.lorenz@gmail.comwrote:

Hi all,

Sorry for the potential cross-posting. I submitted this to the
commcare-developers@googlegroups.com group and then found out this is the
proper group to send to. Sorry!

I have been having some issues with uploading completed forms to
CommCareHQ. I think I have looked into all the obvious problems. I have
confirmed that the settings in the profile.xml file to point to the correct
URL’s at CommCareHQ and I have uploaded the proper XForms to CommCareHQ.
However, when I attempt to send data to CommCareHQ from the phone emulator,
I receive the following message on the phone screen: “Successfully
Submitted. Your data is safe, but we made a small mistake. We’re working
on it.” The log messages in the emulator console seem to suggest the
transmission took place without an error (I receive a 200 message).
However, when I look at the submissions tab in CommCareHQ I see no record
of that submission.

I have tried several things to help debug the problem. I wrote a simple
curl script to POST the raw XML data from the form to CommCareHQ.
Surprisingly, this worked! I now have several “submissions” in CommCareHQ
all uploaded manually using this curl script.

I also created a simple web app and attempted to POST to it (instead of
CommCareHQ) via the phone. And that appears to work fine. My web app
received the data. I also POSTed to my web app via my curl script to see
how the submissions differed. As far as I could tell the submissions
appeared identical with the exception of some header fields.

I have tried several different CommCare builds, from default(tip) to
CommCare 1.0, all with the same results.

Has anybody else ran into this problem or have any ideas of where to look
next?

Best,
Stephen

Stephen,

I can’t remember whether this problem was the same as the email I sent
earlier regarding the PostURL and PostTestURL, but does your application
have a PostTestURL field in the profile that is set to staging.cchq.org or
another site other than data.commcarehq org? If so, until you’ve "released"
the application on the app builder, the submissions will go to that URL
instead of the PostURL.

-Clayton

··· On Thu, Dec 16, 2010 at 10:28 AM, Stephen Lorenz wrote:

Hi Rowena,

Thank you. The domain is mobilize and the xmlns of the xform is
http://dev.commcarehq.org/mobilize/mobilize_cc_reg. I just attempted
another submit about a minute ago.

Best,
Stephen

2010/12/16 Rowena Luk rluk@dimagi.com

Dear Stephen,

I’d be happy to check the server logs to see if there were any anomalies.
What domain are you submitting to, and what is the xmlns of the xform which
is posting?

Thanks,

Rowena

On Thu, Dec 16, 2010 at 7:31 AM, Stephen Lorenz <stephen.lorenz@gmail.com wrote:

Hi all,

Sorry for the potential cross-posting. I submitted this to the
commcare-developers@googlegroups.com group and then found out this is
the proper group to send to. Sorry!

I have been having some issues with uploading completed forms to
CommCareHQ. I think I have looked into all the obvious problems. I have
confirmed that the settings in the profile.xml file to point to the correct
URL’s at CommCareHQ and I have uploaded the proper XForms to CommCareHQ.
However, when I attempt to send data to CommCareHQ from the phone emulator,
I receive the following message on the phone screen: “Successfully
Submitted. Your data is safe, but we made a small mistake. We’re working
on it.” The log messages in the emulator console seem to suggest the
transmission took place without an error (I receive a 200 message).
However, when I look at the submissions tab in CommCareHQ I see no record
of that submission.

I have tried several things to help debug the problem. I wrote a simple
curl script to POST the raw XML data from the form to CommCareHQ.
Surprisingly, this worked! I now have several “submissions” in CommCareHQ
all uploaded manually using this curl script.

I also created a simple web app and attempted to POST to it (instead of
CommCareHQ) via the phone. And that appears to work fine. My web app
received the data. I also POSTed to my web app via my curl script to see
how the submissions differed. As far as I could tell the submissions
appeared identical with the exception of some header fields.

I have tried several different CommCare builds, from default(tip) to
CommCare 1.0, all with the same results.

Has anybody else ran into this problem or have any ideas of where to look
next?

Best,
Stephen

Hi Clayton,

You were right. The PostTestURL was being used instead of the PostURL and
my PostTestURL was point to the staging site, where I hadn’t yet set up a
domain. Just to clarify, do you mean that the PostURL setting starts to be
used instead of the PostTestURL once you run the “BuildRelease” ant task?
Or is there some other trigger?

Best,
Stephen

··· 2010/12/16 Clayton Sims

Stephen,

I can’t remember whether this problem was the same as the email I sent
earlier regarding the PostURL and PostTestURL, but does your application
have a PostTestURL field in the profile that is set to staging.cchq.org or
another site other than data.commcarehq org? If so, until you’ve "released"
the application on the app builder, the submissions will go to that URL
instead of the PostURL.

-Clayton

On Thu, Dec 16, 2010 at 10:28 AM, Stephen Lorenz <stephen.lorenz@gmail.com wrote:

Hi Rowena,

Thank you. The domain is mobilize and the xmlns of the xform is
http://dev.commcarehq.org/mobilize/mobilize_cc_reg. I just attempted
another submit about a minute ago.

Best,
Stephen

2010/12/16 Rowena Luk rluk@dimagi.com

Dear Stephen,

I’d be happy to check the server logs to see if there were any anomalies.
What domain are you submitting to, and what is the xmlns of the xform which
is posting?

Thanks,

Rowena

On Thu, Dec 16, 2010 at 7:31 AM, Stephen Lorenz < stephen.lorenz@gmail.com> wrote:

Hi all,

Sorry for the potential cross-posting. I submitted this to the
commcare-developers@googlegroups.com group and then found out this is
the proper group to send to. Sorry!

I have been having some issues with uploading completed forms to
CommCareHQ. I think I have looked into all the obvious problems. I have
confirmed that the settings in the profile.xml file to point to the correct
URL’s at CommCareHQ and I have uploaded the proper XForms to CommCareHQ.
However, when I attempt to send data to CommCareHQ from the phone emulator,
I receive the following message on the phone screen: “Successfully
Submitted. Your data is safe, but we made a small mistake. We’re working
on it.” The log messages in the emulator console seem to suggest the
transmission took place without an error (I receive a 200 message).
However, when I look at the submissions tab in CommCareHQ I see no record
of that submission.

I have tried several things to help debug the problem. I wrote a simple
curl script to POST the raw XML data from the form to CommCareHQ.
Surprisingly, this worked! I now have several “submissions” in CommCareHQ
all uploaded manually using this curl script.

I also created a simple web app and attempted to POST to it (instead of
CommCareHQ) via the phone. And that appears to work fine. My web app
received the data. I also POSTed to my web app via my curl script to see
how the submissions differed. As far as I could tell the submissions
appeared identical with the exception of some header fields.

I have tried several different CommCare builds, from default(tip) to
CommCare 1.0, all with the same results.

Has anybody else ran into this problem or have any ideas of where to
look next?

Best,
Stephen

Hi Clayton,

You can ignore that last question regarding “releasing” the application via
app builder. I found where you mean in CommCareHQ:
http://dev.commcarehq.org/releasemanager/.

Best,
Stephen

··· 2010/12/17 Stephen Lorenz

Hi Clayton,

You were right. The PostTestURL was being used instead of the PostURL and
my PostTestURL was point to the staging site, where I hadn’t yet set up a
domain. Just to clarify, do you mean that the PostURL setting starts to
be used instead of the PostTestURL once you run the “BuildRelease” ant
task? Or is there some other trigger?

Best,
Stephen

2010/12/16 Clayton Sims csims@dimagi.com

Stephen,

I can’t remember whether this problem was the same as the email I sent
earlier regarding the PostURL and PostTestURL, but does your application
have a PostTestURL field in the profile that is set to staging.cchq.orgor another site other than data.commcarehq org? If so, until you’ve
"released" the application on the app builder, the submissions will go to
that URL instead of the PostURL.

-Clayton

On Thu, Dec 16, 2010 at 10:28 AM, Stephen Lorenz < stephen.lorenz@gmail.com> wrote:

Hi Rowena,

Thank you. The domain is mobilize and the xmlns of the xform is
http://dev.commcarehq.org/mobilize/mobilize_cc_reg. I just attempted
another submit about a minute ago.

Best,
Stephen

2010/12/16 Rowena Luk rluk@dimagi.com

Dear Stephen,

I’d be happy to check the server logs to see if there were any
anomalies. What domain are you submitting to, and what is the xmlns of the
xform which is posting?

Thanks,

Rowena

On Thu, Dec 16, 2010 at 7:31 AM, Stephen Lorenz < stephen.lorenz@gmail.com> wrote:

Hi all,

Sorry for the potential cross-posting. I submitted this to the
commcare-developers@googlegroups.com group and then found out this is
the proper group to send to. Sorry!

I have been having some issues with uploading completed forms to
CommCareHQ. I think I have looked into all the obvious problems. I have
confirmed that the settings in the profile.xml file to point to the correct
URL’s at CommCareHQ and I have uploaded the proper XForms to CommCareHQ.
However, when I attempt to send data to CommCareHQ from the phone emulator,
I receive the following message on the phone screen: “Successfully
Submitted. Your data is safe, but we made a small mistake. We’re working
on it.” The log messages in the emulator console seem to suggest the
transmission took place without an error (I receive a 200 message).
However, when I look at the submissions tab in CommCareHQ I see no record
of that submission.

I have tried several things to help debug the problem. I wrote a
simple curl script to POST the raw XML data from the form to CommCareHQ.
Surprisingly, this worked! I now have several “submissions” in CommCareHQ
all uploaded manually using this curl script.

I also created a simple web app and attempted to POST to it (instead of
CommCareHQ) via the phone. And that appears to work fine. My web app
received the data. I also POSTed to my web app via my curl script to see
how the submissions differed. As far as I could tell the submissions
appeared identical with the exception of some header fields.

I have tried several different CommCare builds, from default(tip) to
CommCare 1.0, all with the same results.

Has anybody else ran into this problem or have any ideas of where to
look next?

Best,
Stephen

Cool, no problem. We’re probably going to shift this behavior somehow to the
server, but for now the mechanism is there to allow you to collect only
production data onto data.cchq and use staging to test your application and
make sure it works as expected.

-Clayton

··· On Fri, Dec 17, 2010 at 7:09 AM, Stephen Lorenz wrote:

Hi Clayton,

You can ignore that last question regarding “releasing” the application via
app builder. I found where you mean in CommCareHQ:
http://dev.commcarehq.org/releasemanager/.

Best,
Stephen

2010/12/17 Stephen Lorenz stephen.lorenz@gmail.com

Hi Clayton,

You were right. The PostTestURL was being used instead of the PostURL
and my PostTestURL was point to the staging site, where I hadn’t yet set
up a domain. Just to clarify, do you mean that the PostURL setting
starts to be used instead of the PostTestURL once you run the
"BuildRelease" ant task? Or is there some other trigger?

Best,
Stephen

2010/12/16 Clayton Sims csims@dimagi.com

Stephen,

I can’t remember whether this problem was the same as the email I sent
earlier regarding the PostURL and PostTestURL, but does your application
have a PostTestURL field in the profile that is set to staging.cchq.orgor another site other than data.commcarehq org? If so, until you’ve
"released" the application on the app builder, the submissions will go to
that URL instead of the PostURL.

-Clayton

On Thu, Dec 16, 2010 at 10:28 AM, Stephen Lorenz < stephen.lorenz@gmail.com> wrote:

Hi Rowena,

Thank you. The domain is mobilize and the xmlns of the xform is
http://dev.commcarehq.org/mobilize/mobilize_cc_reg. I just attempted
another submit about a minute ago.

Best,
Stephen

2010/12/16 Rowena Luk rluk@dimagi.com

Dear Stephen,

I’d be happy to check the server logs to see if there were any
anomalies. What domain are you submitting to, and what is the xmlns of the
xform which is posting?

Thanks,

Rowena

On Thu, Dec 16, 2010 at 7:31 AM, Stephen Lorenz < stephen.lorenz@gmail.com> wrote:

Hi all,

Sorry for the potential cross-posting. I submitted this to the
commcare-developers@googlegroups.com group and then found out this is
the proper group to send to. Sorry!

I have been having some issues with uploading completed forms to
CommCareHQ. I think I have looked into all the obvious problems. I have
confirmed that the settings in the profile.xml file to point to the correct
URL’s at CommCareHQ and I have uploaded the proper XForms to CommCareHQ.
However, when I attempt to send data to CommCareHQ from the phone emulator,
I receive the following message on the phone screen: “Successfully
Submitted. Your data is safe, but we made a small mistake. We’re working
on it.” The log messages in the emulator console seem to suggest the
transmission took place without an error (I receive a 200 message).
However, when I look at the submissions tab in CommCareHQ I see no record
of that submission.

I have tried several things to help debug the problem. I wrote a
simple curl script to POST the raw XML data from the form to CommCareHQ.
Surprisingly, this worked! I now have several “submissions” in CommCareHQ
all uploaded manually using this curl script.

I also created a simple web app and attempted to POST to it (instead
of CommCareHQ) via the phone. And that appears to work fine. My web app
received the data. I also POSTed to my web app via my curl script to see
how the submissions differed. As far as I could tell the submissions
appeared identical with the exception of some header fields.

I have tried several different CommCare builds, from default(tip) to
CommCare 1.0, all with the same results.

Has anybody else ran into this problem or have any ideas of where to
look next?

Best,
Stephen