A 1010 Application error

Discussions about CSEntry
Socio
Posts: 48
Joined: May 1st, 2017, 4:47 am

A 1010 Application error

Post by Socio »

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 .
Attachments
Error 1010.rar
(110.59 KiB) Downloaded 226 times
Gregory Martin
Posts: 1792
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: A 1010 Application error

Post by Gregory Martin »

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

Post by Socio »

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.
Socio
Posts: 48
Joined: May 1st, 2017, 4:47 am

Re: A 1010 Application error

Post by Socio »

Hi Gregory Martin

Please find the attached new file.
Thank you.
Attachments
HH.rar
(23.01 KiB) Downloaded 238 times
Gregory Martin
Posts: 1792
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: A 1010 Application error

Post by Gregory Martin »

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

Post by Socio »

Hi Gregory Martin

My apologies again.
Please find the complete file attached.
Thank you
Attachments
HH_DESKTOP.rar
(45.64 KiB) Downloaded 225 times
Gregory Martin
Posts: 1792
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: A 1010 Application error

Post by Gregory Martin »

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

Post by Socio »

Hi Gregory Martin

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

Post by Socio »

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
Attachments
HH_DESKTOP.rar
(46.28 KiB) Downloaded 231 times
Gregory Martin
Posts: 1792
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: A 1010 Application error

Post by Gregory Martin »

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;
    // ...
Post Reply