Got an error
WARNING: Out of range! Please enter a valid value for SC
A 1010 Application error: protected field SC out of range value is NOTAPPL
I have the following variables:
StateCode = SC (2 length)
DistrictCode = DC (3 length)
BlockCode = BC (3 length)
VillageCode = VC (2 length)
HouseNumber = HOUSE_NUMBER (3 length)
I want this HHID to be auto filled and protected:
HHID (15 length)= StateCode+DistrictCode+BlockCode+VillageCode+HouseNumber
Given logic as:
PROC HH_ID
Preproc
$ = concat (edit("99",SC), edit("9",DC), edit("9",BC), edit("99",VC), edit("999",HOUSE_NUMBER));
noinput;
//edit("99",strip(SC)), edit("9",strip(DC)), edit("9",strip(BC)), edit("99",strip(VC)), edit("999",strip(HOUSE_NUMBER)));
Please help, thanks .
A 1010 Application error
-
Socio
- Posts: 48
- Joined: May 1st, 2017, 4:47 am
A 1010 Application error
You do not have the required permissions to view the files attached to this post.
-
Gregory Martin
- Posts: 1948
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: A 1010 Application error
The application that you attached does not have any problem SC. That field is not even protected in your program. Did you mean to attach a different file?
-
Socio
- Posts: 48
- Joined: May 1st, 2017, 4:47 am
Re: A 1010 Application error
Hi Gregory Martin
Sorry for late reply. Yes I have uploaded the un-protected files (removed protected varibales). Let me upload the new file.
Thank you.
Sorry for late reply. Yes I have uploaded the un-protected files (removed protected varibales). Let me upload the new file.
Thank you.
-
Socio
- Posts: 48
- Joined: May 1st, 2017, 4:47 am
Re: A 1010 Application error
Hi Gregory Martin
Please find the attached new file.
Thank you.
Please find the attached new file.
Thank you.
You do not have the required permissions to view the files attached to this post.
-
Gregory Martin
- Posts: 1948
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: A 1010 Application error
You attached the .pen file, which is compiled so it is not possible to see the logic. Please upload the whole application (dictionary, forms, etc.).
-
Socio
- Posts: 48
- Joined: May 1st, 2017, 4:47 am
Re: A 1010 Application error
Hi Gregory Martin
My apologies again.
Please find the complete file attached.
Thank you
My apologies again.
Please find the complete file attached.
Thank you
You do not have the required permissions to view the files attached to this post.
-
Gregory Martin
- Posts: 1948
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: A 1010 Application error
I can now see your application. Can you restate your problem? I am able to fill out all of your IDs without resulting in an application error.
-
Socio
- Posts: 48
- Joined: May 1st, 2017, 4:47 am
Re: A 1010 Application error
Hi Gregory Martin
Got an error while saving the file after filled up.
I have the following variables:
StateCode = SC (2 length)
DistrictCode = DC (3 length)
BlockCode = BC (3 length)
VillageCode = VC (2 length)
HouseNumber = HOUSE_NUMBER (3 length)
I want this HHID to be auto filled and protected:
HHID (15 length)= StateCode+DistrictCode+BlockCode+VillageCode+HouseNumber
Thank you.
Got an error while saving the file after filled up.
WARNING: Out of range! Please enter a valid value for SC
A 1010 Application error: protected field SC out of range value is NOTAPPL
I have the following variables:
StateCode = SC (2 length)
DistrictCode = DC (3 length)
BlockCode = BC (3 length)
VillageCode = VC (2 length)
HouseNumber = HOUSE_NUMBER (3 length)
I want this HHID to be auto filled and protected:
HHID (15 length)= StateCode+DistrictCode+BlockCode+VillageCode+HouseNumber
Thank you.
-
Socio
- Posts: 48
- Joined: May 1st, 2017, 4:47 am
Re: A 1010 Application error
Hi Gregory Martin
If I don't protect t he file (variable) it is fine to save but if I protect and variable the issue pops up.
Please find the below attached file.
Thank you
If I don't protect t he file (variable) it is fine to save but if I protect and variable the issue pops up.
Please find the below attached file.
Thank you
You do not have the required permissions to view the files attached to this post.
-
Gregory Martin
- Posts: 1948
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: A 1010 Application error
The problem is with all the variables that you are protecting in logic. That protection setting persists from one run to the next, so if you protect something, you need to unprotect it the next time. Something like this:
PROC HH_QUEST
preproc
set attributes(SC) native;
set attributes(DC) native;
// ...
preproc
set attributes(SC) native;
set attributes(DC) native;
// ...