eIMCI commcare hq problem

Hi! We have been trying to interface this form
https://bitbucket.org/dtree/pediatrick/src/ce9502f6fbce/assets/forms/pediatrick.xml
to our commcare hq domain, NIH D-tree. We haven't had any luck getting
the data from the phone into hq and are not sure where the problem is.
Any ideas? Please note that the link is for the bitbucket repository
and thus is not the raw form.

Best regards,
Seneca

Thanks Seneca,

What is the domain name you are using on HQ .9?

thanks,
Jonathan

··· On Sun, Feb 6, 2011 at 9:50 AM, Seneca Perri wrote:

Hi! We have been trying to interface this form

https://bitbucket.org/dtree/pediatrick/src/ce9502f6fbce/assets/forms/pediatrick.xml
to our commcare hq domain, NIH D-tree. We haven't had any luck getting
the data from the phone into hq and are not sure where the problem is.
Any ideas? Please note that the link is for the bitbucket repository
and thus is not the raw form.

Best regards,
Seneca

Seneca,

Can you be a bit more specific about what issues you're having? What phone
are you submitting the form with and with what tool? Is there an error
during sending, or just an error on the server recognizing the form?

-Clayton

··· On Sun, Feb 6, 2011 at 9:50 AM, Seneca Perri wrote:

Hi! We have been trying to interface this form

https://bitbucket.org/dtree/pediatrick/src/ce9502f6fbce/assets/forms/pediatrick.xml
to our commcare hq domain, NIH D-tree. We haven't had any luck getting
the data from the phone into hq and are not sure where the problem is.
Any ideas? Please note that the link is for the bitbucket repository
and thus is not the raw form.

Best regards,
Seneca

NIH D-tree, but maybe that's not HQ.9?

··· On Feb 6, 5:59 pm, Jonathan Jackson wrote: > Thanks Seneca, > > What is the domain name you are using on HQ .9? > > thanks, > Jonathan > > On Sun, Feb 6, 2011 at 9:50 AM, Seneca Perri wrote: > > Hi! We have been trying to interface this form > > >https://bitbucket.org/dtree/pediatrick/src/ce9502f6fbce/assets/forms/... > > to our commcare hq domain, NIH D-tree. We haven't had any luck getting > > the data from the phone into hq and are not sure where the problem is. > > Any ideas? Please note that the link is for the bitbucket repository > > and thus is not the raw form. > > > Best regards, > > Seneca

Hi Clayton,
We're using htc desires and running the app through OpenMRS, though we
have been running it on ODK 1.1.6 alone before that was installed.
When running it in openMRS and I select sync with server, it says:
syncing with http//://moduleServlet/peersync/peerSync, then the
'handshake' icon appears, then an error screen appears that says peer
sync error, unable to connect, etc., so I would guess that the issue
is perhaps that it's not sending to the right place from the phone but
not sure if it ends there. Is there a way to send the log if that
would help? What other information do you need?

Seneca

··· On Feb 7, 6:50 pm, Clayton Sims wrote: > Seneca, > > Can you be a bit more specific about what issues you're having? What phone > are you submitting the form with and with what tool? Is there an error > during sending, or just an error on the server recognizing the form? > > -Clayton > > On Sun, Feb 6, 2011 at 9:50 AM, Seneca Perri wrote: > > Hi! We have been trying to interface this form > > >https://bitbucket.org/dtree/pediatrick/src/ce9502f6fbce/assets/forms/... > > to our commcare hq domain, NIH D-tree. We haven't had any luck getting > > the data from the phone into hq and are not sure where the problem is. > > Any ideas? Please note that the link is for the bitbucket repository > > and thus is not the raw form. > > > Best regards, > > Seneca

Hi Seneca,

Could you verify the URL you are using to submit the data? NIH DTree is the
only domain I've seen with a space in the name, and I'm suspecting this
could be the issue.

It may be possible that ODK doesn't properly urlencode spaces when
submitting. It may also be possible that HQ 0.9 does not support having
spaces in domains (which would be a bug if we allowed you to create them
that way).

The easiest thing to do if you are just hoping to submit and troubleshoot is
to try everything over with a new domain that only includes alphanumeric
characters and underscores and see if this fixes it. Is that something that
would be possible to try on your end?

Cory

··· On Tue, Feb 8, 2011 at 5:28 AM, Seneca Perri wrote:

Hi Clayton,
We're using htc desires and running the app through OpenMRS, though we
have been running it on ODK 1.1.6 alone before that was installed.
When running it in openMRS and I select sync with server, it says:
syncing with http//://moduleServlet/peersync/peerSync, then the
'handshake' icon appears, then an error screen appears that says peer
sync error, unable to connect, etc., so I would guess that the issue
is perhaps that it's not sending to the right place from the phone but
not sure if it ends there. Is there a way to send the log if that
would help? What other information do you need?

Seneca

On Feb 7, 6:50 pm, Clayton Sims cs...@dimagi.com wrote:

Seneca,

Can you be a bit more specific about what issues you're having? What
phone
are you submitting the form with and with what tool? Is there an error
during sending, or just an error on the server recognizing the form?

-Clayton

On Sun, Feb 6, 2011 at 9:50 AM, Seneca Perri ipt...@gmail.com wrote:

Hi! We have been trying to interface this form

https://bitbucket.org/dtree/pediatrick/src/ce9502f6fbce/assets/forms/.
..
to our commcare hq domain, NIH D-tree. We haven't had any luck getting
the data from the phone into hq and are not sure where the problem is.
Any ideas? Please note that the link is for the bitbucket repository
and thus is not the raw form.

Best regards,
Seneca

Seneca,

It seems like openMRS isn't properly configured. The URL you posted should
probably have a URL and port in it between the ":", I've never used it,
though, so I am not sure how to configure those values,or what server it
should be communicating with.

Is the phone supposed to submit data directly to CommCare HQ, or is the data
supposed to sync through OpenMRS first?

-Clayton

··· On Tue, Feb 8, 2011 at 5:28 AM, Seneca Perri wrote:

Hi Clayton,
We're using htc desires and running the app through OpenMRS, though we
have been running it on ODK 1.1.6 alone before that was installed.
When running it in openMRS and I select sync with server, it says:
syncing with http//://moduleServlet/peersync/peerSync, then the
'handshake' icon appears, then an error screen appears that says peer
sync error, unable to connect, etc., so I would guess that the issue
is perhaps that it's not sending to the right place from the phone but
not sure if it ends there. Is there a way to send the log if that
would help? What other information do you need?

Seneca

On Feb 7, 6:50 pm, Clayton Sims cs...@dimagi.com wrote:

Seneca,

Can you be a bit more specific about what issues you're having? What
phone
are you submitting the form with and with what tool? Is there an error
during sending, or just an error on the server recognizing the form?

-Clayton

On Sun, Feb 6, 2011 at 9:50 AM, Seneca Perri ipt...@gmail.com wrote:

Hi! We have been trying to interface this form

https://bitbucket.org/dtree/pediatrick/src/ce9502f6fbce/assets/forms/.
..
to our commcare hq domain, NIH D-tree. We haven't had any luck getting
the data from the phone into hq and are not sure where the problem is.
Any ideas? Please note that the link is for the bitbucket repository
and thus is not the raw form.

Best regards,
Seneca

Hi! Thanks for the feedback. So from what Jon and Clayton are
suggesting, it sounds like the problem could be coming from the
configuration of both/either the domain or the applications? We began
trying to send data from odk initially, which didn't ever work, and
then just a few days ago Tom wrapped the form into an Android/OpenMRS
apk file, which still doesn't work, so if I had to guess, I would
think that because the data is stored in OpenMRS that it needs to go
there first and then to the server but would have to confirm from Tom.
But that may not be the only issue, since it didn't even sync properly
from odk. So maybe there are even 3 places that need to be
reconfigured between odk, openMRS, and the domain?

··· On Feb 8, 10:02 pm, Clayton Sims wrote: > Seneca, > > It seems like openMRS isn't properly configured. The URL you posted should > probably have a URL and port in it between the ":", I've never used it, > though, so I am not sure how to configure those values,or what server it > should be communicating with. > > Is the phone supposed to submit data directly to CommCare HQ, or is the data > supposed to sync through OpenMRS first? > > -Clayton > > On Tue, Feb 8, 2011 at 5:28 AM, Seneca Perri wrote: > > Hi Clayton, > > We're using htc desires and running the app through OpenMRS, though we > > have been running it on ODK 1.1.6 alone before that was installed. > > When running it in openMRS and I select sync with server, it says: > > syncing with http//://moduleServlet/peersync/peerSync, then the > > 'handshake' icon appears, then an error screen appears that says peer > > sync error, unable to connect, etc., so I would guess that the issue > > is perhaps that it's not sending to the right place from the phone but > > not sure if it ends there. Is there a way to send the log if that > > would help? What other information do you need? > > > Seneca > > > On Feb 7, 6:50 pm, Clayton Sims wrote: > > > Seneca, > > > > Can you be a bit more specific about what issues you're having? What > > phone > > > are you submitting the form with and with what tool? Is there an error > > > during sending, or just an error on the server recognizing the form? > > > > -Clayton > > > > On Sun, Feb 6, 2011 at 9:50 AM, Seneca Perri wrote: > > > > Hi! We have been trying to interface this form > > > > >https://bitbucket.org/dtree/pediatrick/src/ce9502f6fbce/assets/forms/. > > .. > > > > to our commcare hq domain, NIH D-tree. We haven't had any luck getting > > > > the data from the phone into hq and are not sure where the problem is. > > > > Any ideas? Please note that the link is for the bitbucket repository > > > > and thus is not the raw form. > > > > > Best regards, > > > > Seneca

Hi again! Was just talking with Tom some and thought we should get a
bit more specific and start over in our discussion considering only
odk and the domain before we bring openMRS into it (we'll save that
for later). A few questions:

  1. When we tried to register and validate the xform in commcare hq, it
    tells us: Validation Fail! 'ascii' codec can't encode character
    u'\u201c' in position 142169: ordinal not in range(128).

This is what is in that position: . Last time I got this error there were some
quotation marks in the field that weren't formatted properly, but as
far as I can see, everything in this looks fine. So now, what to do?
It still doesn't like our xform.

  1. Is the space in the domain name NIH D-tree actually a problem?

  2. What is the correct url to go into odk to send the data to?

  3. Can someone from Dimagi or other get on Skype with me to
    troubleshoot this? Hopefully will be very simple to resolve.

Thanks again!
Seneca

··· On Feb 9, 12:22 pm, Seneca Perri wrote: > Hi! Thanks for the feedback. So from what Jon and Clayton are > suggesting, it sounds like the problem could be coming from the > configuration of both/either the domain or the applications? We began > trying to send data from odk initially, which didn't ever work, and > then just a few days ago Tom wrapped the form into an Android/OpenMRS > apk file, which still doesn't work, so if I had to guess, I would > think that because the data is stored in OpenMRS that it needs to go > there first and then to the server but would have to confirm from Tom. > But that may not be the only issue, since it didn't even sync properly > from odk. So maybe there are even 3 places that need to be > reconfigured between odk, openMRS, and the domain? > > On Feb 8, 10:02 pm, Clayton Sims wrote: > > > Seneca, > > > It seems like openMRS isn't properly configured. The URL you posted should > > probably have a URL and port in it between the ":", I've never used it, > > though, so I am not sure how to configure those values,or what server it > > should be communicating with. > > > Is the phone supposed to submit data directly to CommCare HQ, or is the data > > supposed to sync through OpenMRS first? > > > -Clayton > > > On Tue, Feb 8, 2011 at 5:28 AM, Seneca Perri wrote: > > > Hi Clayton, > > > We're using htc desires and running the app through OpenMRS, though we > > > have been running it on ODK 1.1.6 alone before that was installed. > > > When running it in openMRS and I select sync with server, it says: > > > syncing with http//://moduleServlet/peersync/peerSync, then the > > > 'handshake' icon appears, then an error screen appears that says peer > > > sync error, unable to connect, etc., so I would guess that the issue > > > is perhaps that it's not sending to the right place from the phone but > > > not sure if it ends there. Is there a way to send the log if that > > > would help? What other information do you need? > > > > Seneca > > > > On Feb 7, 6:50 pm, Clayton Sims wrote: > > > > Seneca, > > > > > Can you be a bit more specific about what issues you're having? What > > > phone > > > > are you submitting the form with and with what tool? Is there an error > > > > during sending, or just an error on the server recognizing the form? > > > > > -Clayton > > > > > On Sun, Feb 6, 2011 at 9:50 AM, Seneca Perri wrote: > > > > > Hi! We have been trying to interface this form > > > > > >https://bitbucket.org/dtree/pediatrick/src/ce9502f6fbce/assets/forms/. > > > .. > > > > > to our commcare hq domain, NIH D-tree. We haven't had any luck getting > > > > > the data from the phone into hq and are not sure where the problem is. > > > > > Any ideas? Please note that the link is for the bitbucket repository > > > > > and thus is not the raw form. > > > > > > Best regards, > > > > > Seneca

Hi Seneca,

Answers inline.

  1. When we tried to register and validate the xform in commcare hq, it
    tells us: Validation Fail! 'ascii' codec can't encode character
    u'\u201c' in position 142169: ordinal not in range(128).

This is what is in that position: . Last time I got this error there were some
quotation marks in the field that weren't formatted properly, but as
far as I can see, everything in this looks fine. So now, what to do?
It still doesn't like our xform.

I'm not able to reproduce it, though there are other problems with the xform
that I see. Around line 1412-1416 you have two select choices that have the
same value "drinking-symptom". This is not allowed. The problem repeats
itself in lines 1441-1445.

Then I attempted to register the schema but found that the xform is too
large for the current hq 0.9 database. This was a problem we faced in other
giant surveys, and so we switched our underlying database from mysql to
postgres to accommodate this. However, we won't be able to migrate the
existing hq database.

For now and testing I would recommend switching over to
http://datahq.orgwhich is on postgres. I tested and was able to
register the (fixed) form
fine there. We are not planning on supporting either HQ 0.9 or DataHQ
extensively when 1.0 comes out, so hopefully you will be able to wait a few
more weeks for that to be ready before initiating the real deployment. Please
confirm that this is for testing and not for production use.

  1. Is the space in the domain name NIH D-tree actually a problem?

This I don't know, but would be safe to avoid it. If for some reason you
can't change your domain name I can look into it more closely.

  1. What is the correct url to go into odk to send the data to?

HQ 0.9: http://data.commcarehq.org/receiver/submit/
DataHQ: http://datahq.org/receiver/submit/

  1. Can someone from Dimagi or other get on Skype with me to
    troubleshoot this? Hopefully will be very simple to resolve.

My username is cory.zue. Didn't see you on yet.

Cory

··· On Wed, Feb 9, 2011 at 7:23 AM, Seneca Perri wrote: