Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

EDIT Instance #520

Closed
iahmedani opened this issue Jun 16, 2016 · 6 comments
Closed

EDIT Instance #520

iahmedani opened this issue Jun 16, 2016 · 6 comments

Comments

@iahmedani
Copy link

Dear Martin,

Hope you are doing well.

I am trying to edit instance but the system gives me an error " Record not present. It may have expired.

Url is http://abc.xyz/edit/::YYYy?instance_id=?d4b2b8fa-1740-4e48-8540-7c15781e7886&return_url=http://abc.xyz/edit
image

@MartijnR
Copy link
Member

The URL expires very quickly. It is meant to be used programmatically with an immediate redirect to the returned URL. Does your issue occur with KoBoCat, Ona, Formhub?

@iahmedani
Copy link
Author

I am using on ODKAggregate server. But it do not spends one second, directly shows this error

@MartijnR
Copy link
Member

Can you provide an actual curl API call (only change the api key, nothing else)?

@iahmedani
Copy link
Author

iahmedani commented Jun 21, 2016

curl --user xyz: -d "server_url=http://me.wfp.org.pk:8050/ODKAggregate&form_id=PDM_CMAM_1&instance=<data><node>DM_CMAM_UCDaag Besud _Location_Daag Besud</node></data>&instance_id=d3effa60-eae1-40da-8c2b-b1dd56670be1&return_url=http://me.wfp.org.pk" http://10.11.70.36/api/v2/instance

@MartijnR
Copy link
Member

Will investigate if there is a bug if the instance XML does not match the XForm instance. I'm assuming the primary instance does not have a root node with name data. You should in that case get a different error message if you redirect immediately.

It may help if you could also share the XForm or XLSForm.

@enketo-issue-mover
Copy link

This issue was moved to enketo/enketo#1221

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants