Application Startup Error

Discussions about CSEntry
Post Reply
munirmdee1
Posts: 83
Joined: August 17th, 2015, 9:32 am
Location: Dar es Salaam, Tanzania

Application Startup Error

Post by munirmdee1 »

Hi everyone

I have csentry application for a certain survey, but it has some problem and I failed to figure out and solve it. The problem is as follows:

When I run the application in Add mode the error does not appear, but when I run the same application ni Modify mode, it display an error saying:

"Application Startup Error
The case specified for modifying,, was not located in the data file
"

In Add mode, the .pff file looks like this
[DataEntryInit]
StartMode=Add
Lock=Modify,Verify
FullScreen=Yes
NoFileOpen=Yes
Interactive=Ask

And in Modify mode the .pff file looks like this
[DataEntryInit]
StartMode=Modify
Lock=Add,Verify
FullScreen=No
NoFileOpen=No
Interactive=Ask

Is anything wrong? or what is the reason for this error im getting?
Thank you in advance.
[color=#800000][size=85][i][b]Munir Mdee
Software Developer (Data Processing)
National Bureau of Statistic (NBS)
Jakaya Kikwete Road,
P.O.Box 2683,
Dodoma,TANZANIA
Mob: +255 755 740090
Email: munir.mdee@nbs.go.tz
munirmdee@gmail.com[/b][/i][/size][/color]
Gregory Martin
Posts: 1971
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Application Startup Error

Post by Gregory Martin »

When you use StartMode=Modify, then you have to specify the case key (IDs) of the case that you want to modify. For example:

StartMode=Modify;010502

If you don't want to open up a certain case for modification, then leave that line out of your PFF.
munirmdee1
Posts: 83
Joined: August 17th, 2015, 9:32 am
Location: Dar es Salaam, Tanzania

Re: Application Startup Error

Post by munirmdee1 »

Thank you Greg,
Do you mean it should appear like this:

[DataEntryInit]
Lock=Add,Verify
FullScreen=No
NoFileOpen=No
Interactive=Ask

Is that what you mean?
[color=#800000][size=85][i][b]Munir Mdee
Software Developer (Data Processing)
National Bureau of Statistic (NBS)
Jakaya Kikwete Road,
P.O.Box 2683,
Dodoma,TANZANIA
Mob: +255 755 740090
Email: munir.mdee@nbs.go.tz
munirmdee@gmail.com[/b][/i][/size][/color]
Gregory Martin
Posts: 1971
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Application Startup Error

Post by Gregory Martin »

Sure. Nearly all lines in the PFF are optional, so just leave out that StartMode line.
Post Reply