404 error when using a widgets

Hi I have created a simple reporting form that needs to collect the
phone numbers of the users automatically.

When sending that form with ODK Collect 1.1.7 to my Aggregate 1.0,4
instance in the appspot I get the following error:

Not found (404) at https://uns-ttc-demo.appspot.com/submission (notice
that if you browse it that path is available)

I have validate the form with ODK Validator and it is valid.

Please find below the code of the form:

<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="http://
www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr="http://
openrosa.org/javarosa">
<h:head>
<h:title>Maze</h:title>




<my_phonenumber/>


<opening_stock/>
<closing_stock/>
<bought_today/>
<today_average_price/>
<cash_spent/>
<bought_to_date/>
<cash_left/>

<average_price_competitors>
<rab_processor/>
<competitor_2/>
<competitor_3/>
</average_price_competitors>





Maze


Opening Stock





Closing Stock





Bought Today





Today Average Price





Cash Spent





Bought to Date





Cash Left





Average Price of Competitors


Rab Processor





Competitor 2





Competitor 3


















</h:head>
<h:body>















<label ref="jr:itext('/data/maze/today_average_price:label')"/

    <hint ref="jr:itext('/data/maze/today_average_price:hint')"/>
  </input>
  <input ref="/data/maze/cash_spent">
    <label ref="jr:itext('/data/maze/cash_spent:label')"/>
    <hint ref="jr:itext('/data/maze/cash_spent:hint')"/>
  </input>
  <input ref="/data/maze/bought_to_date">
    <label ref="jr:itext('/data/maze/bought_to_date:label')"/>
    <hint ref="jr:itext('/data/maze/bought_to_date:hint')"/>
  </input>
  <input ref="/data/maze/cash_left">
    <label ref="jr:itext('/data/maze/cash_left:label')"/>
    <hint ref="jr:itext('/data/maze/cash_left:hint')"/>
  </input>
</group>
<group appearance="field-list">
  <label ref="jr:itext('/data/average_price_competitors:label')"/>
  <input ref="/data/average_price_competitors/rab_processor">
    <label ref="jr:itext('/data/average_price_competitors/

rab_processor:label')"/>











</h:body>
</h:html>

Thanks a lot in advance!

You need to first Add (upload) the form definition to Aggregate.
It is returning a 404 (not found) because it couldn't match the submission
to its form definition.

Mitch

··· On Thu, Mar 1, 2012 at 2:59 AM, Maurizio Bricola wrote:

Hi I have created a simple reporting form that needs to collect the
phone numbers of the users automatically.

When sending that form with ODK Collect 1.1.7 to my Aggregate 1.0,4
instance in the appspot I get the following error:

Not found (404) at https://uns-ttc-demo.appspot.com/submission (notice
that if you browse it that path is available)

I have validate the form with ODK Validator and it is valid.

Please find below the code of the form:

<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="http://
www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr="http://
openrosa.org/javarosa">
<h:head>
<h:title>Maze</h:title>




<my_phonenumber/>


<opening_stock/>
<closing_stock/>
<bought_today/>
<today_average_price/>
<cash_spent/>
<bought_to_date/>
<cash_left/>

<average_price_competitors>
<rab_processor/>
<competitor_2/>
<competitor_3/>
</average_price_competitors>





Maze


Opening Stock





Closing Stock





Bought Today





Today Average Price





Cash Spent





Bought to Date





Cash Left





Average Price of Competitors


Rab Processor





Competitor 2





Competitor 3


















</h:head>
<h:body>















<label ref="jr:itext('/data/maze/today_average_price:label')"/

   <hint ref="jr:itext('/data/maze/today_average_price:hint')"/>
 </input>
 <input ref="/data/maze/cash_spent">
   <label ref="jr:itext('/data/maze/cash_spent:label')"/>
   <hint ref="jr:itext('/data/maze/cash_spent:hint')"/>
 </input>
 <input ref="/data/maze/bought_to_date">
   <label ref="jr:itext('/data/maze/bought_to_date:label')"/>
   <hint ref="jr:itext('/data/maze/bought_to_date:hint')"/>
 </input>
 <input ref="/data/maze/cash_left">
   <label ref="jr:itext('/data/maze/cash_left:label')"/>
   <hint ref="jr:itext('/data/maze/cash_left:hint')"/>
 </input>

Thanks a lot in advance!

--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Hi Mitch, thanks a lot! it works now.

I have got another little issue though, I am trying to have the form
recording the phone number automatically, but no data is recorded in
that table. Here below is the code:
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="http://
www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr="http://
openrosa.org/javarosa">
<h:head>
<h:title>Maize</h:title>











</h:head>
<h:body>

geopoint widget
this will get gps or gprs network location


phone number
this should record the number

</h:body>
</h:html>

Cheers

··· On Mar 1, 6:40 pm, Mitch S wrote: > You need to first Add (upload) the form definition to Aggregate. > It is returning a 404 (not found) because it couldn't match the submission > to its form definition. > > Mitch > > > > > > > > > > On Thu, Mar 1, 2012 at 2:59 AM, Maurizio Bricola wrote: > > Hi I have created a simple reporting form that needs to collect the > > phone numbers of the users automatically. > > > When sending that form with ODK Collect 1.1.7 to my Aggregate 1.0,4 > > instance in the appspot I get the following error: > > > Not found (404) athttps://uns-ttc-demo.appspot.com/submission(notice > > that if you browse it that path is available) > > > I have validate the form with ODK Validator and it is valid. > > > Please find below the code of the form: > > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr="http:// > > openrosa.org/javarosa"> > > > > Maze > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Maze > > > > > > Opening Stock > > > > > > > > > > > > Closing Stock > > > > > > > > > > > > Bought Today > > > > > > > > > > > > Today Average Price > > > > > > > > > > > > Cash Spent > > > > > > > > > > > > Bought to Date > > > > > > > > > > > > Cash Left > > > > > > > > > > > > Average Price of Competitors > > > > > > Rab Processor > > > > > > > > > > > > Competitor 2 > > > > > > > > > > > > Competitor 3 > > > > > > > > > > > > > > > jr:preload="property" jr:preloadParams="phonenumber"/> > > > required="true()"/> > > > required="true()"/> > > > required="true()"/> > > > required="true()"/> > > > required="true()"/> > > > required="true()"/> > > > required="true()"/> > > > type="int" constraint="(. > 0 and . < 20)"/> > > > type="int" required="true()" constraint="(. > 0 and . <= 20)"/> > > > type="int" required="true()" constraint="(. > 0 and . <= 20)"/> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks a lot in advance! > > > -- > > Post: opendatakit@googlegroups.com > > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > > Options:http://groups.google.com/group/opendatakit?hl=en > > -- > Mitch Sundt > Software Engineer > University of Washington > mitchellsu...@gmail.com

Not all cell networks allow the device to report the phone number. Try
using device or sim id.

Device ID (IMEI)

Subscriber ID (IMSI)

··· On Sun, Mar 4, 2012 at 07:28, Maurizio Bricola wrote: > Hi Mitch, thanks a lot! it works now. > > I have got another little issue though, I am trying to have the form > recording the phone number automatically, but no data is recorded in > that table. Here below is the code: > xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr="http:// > openrosa.org/javarosa"> > > Maize > > > > > > > > > required="true()"/> > jr:preload="property" jr:preloadParams="phonenumber"/> > > > > > geopoint widget > this will get gps or gprs network location > > > phone number > this should record the number > > > > > Cheers > > On Mar 1, 6:40 pm, Mitch S wrote: >> You need to first Add (upload) the form definition to Aggregate. >> It is returning a 404 (not found) because it couldn't match the submission >> to its form definition. >> >> Mitch >> >> >> >> >> >> >> >> >> >> On Thu, Mar 1, 2012 at 2:59 AM, Maurizio Bricola wrote: >> > Hi I have created a simple reporting form that needs to collect the >> > phone numbers of the users automatically. >> >> > When sending that form with ODK Collect 1.1.7 to my Aggregate 1.0,4 >> > instance in the appspot I get the following error: >> >> > Not found (404) athttps://uns-ttc-demo.appspot.com/submission(notice >> > that if you browse it that path is available) >> >> > I have validate the form with ODK Validator and it is valid. >> >> > Please find below the code of the form: >> >> > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr="http:// >> > openrosa.org/javarosa"> >> > >> > Maze >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > Maze >> > >> > >> > Opening Stock >> > >> > >> > >> > >> > >> > Closing Stock >> > >> > >> > >> > >> > >> > Bought Today >> > >> > >> > >> > >> > >> > Today Average Price >> > >> > >> > >> > >> > >> > Cash Spent >> > >> > >> > >> > >> > >> > Bought to Date >> > >> > >> > >> > >> > >> > Cash Left >> > >> > >> > >> > >> > >> > Average Price of Competitors >> > >> > >> > Rab Processor >> > >> > >> > >> > >> > >> > Competitor 2 >> > >> > >> > >> > >> > >> > Competitor 3 >> > >> > >> > >> > >> > >> > >> > > > jr:preload="property" jr:preloadParams="phonenumber"/> >> > > > required="true()"/> >> > > > required="true()"/> >> > > > required="true()"/> >> > > > required="true()"/> >> > > > required="true()"/> >> > > > required="true()"/> >> > > > required="true()"/> >> > > > type="int" constraint="(. > 0 and . < 20)"/> >> > > > type="int" required="true()" constraint="(. > 0 and . <= 20)"/> >> > > > type="int" required="true()" constraint="(. > 0 and . <= 20)"/> >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> >> > Thanks a lot in advance! >> >> > -- >> > Post: opendatakit@googlegroups.com >> > Unsubscribe: opendatakit+unsubscribe@googlegroups.com >> > Options:http://groups.google.com/group/opendatakit?hl=en >> >> -- >> Mitch Sundt >> Software Engineer >> University of Washington >> mitchellsu...@gmail.com > > -- > Post: opendatakit@googlegroups.com > Unsubscribe: opendatakit+unsubscribe@googlegroups.com > Options: http://groups.google.com/group/opendatakit?hl=en