Page 1 of 2

Synchronization complete but unable to find data on dropbox

Posted: March 4th, 2021, 2:21 am
by Bhupender11
Dear CSPro Team,

I have attached a application having issue in data uploading to the dropbox.

Synchronization complete but can't find data on dropbox.

Please help to resolve it.

Re: Synchronization complete but unable to find data on dropbox

Posted: March 4th, 2021, 3:01 am
by etuser
Dear Sir,

Maybe the data went to a different Dropbox account created/used previously . Could you try to clear credentials by just going to Cspro --> files --> Cspro Settings and choose clear credentials and try to sync again .

Re: Synchronization complete but unable to find data on dropbox

Posted: March 4th, 2021, 6:23 am
by Bhupender11
Dear etuser;

Here my concern is that when I start Menu program(IRS_Monitoring) it asks for password for csdbe file. If I drop that dictionary file then it will not sync the data.


I want to sync the data to dropbox without asking password to the entry file.

Re: Synchronization complete but unable to find data on dropbox

Posted: March 4th, 2021, 6:27 am
by Bhupender11
Dear etuser,

When I drop dcf file from the Menu program then it shows an error attached here.

But when i add dcf file then it asks for password.

Re: Synchronization complete but unable to find data on dropbox

Posted: March 4th, 2021, 9:21 am
by aaronw
The dictionary is required. Since you're using an encrypted data file you can specify a connection string to avoid being prompted for the password.

https://www.csprousers.org/help/CSPro/e ... _data.html

Re: Synchronization complete but unable to find data on dropbox

Posted: March 8th, 2021, 2:24 am
by Bhupender11
Dear aaronw,

Thanks for your reply but it has one problem when we see pff file in notepad then we can see the password.

My concern is how to avoid password to be seen by others.


Thanks.

Re: Synchronization complete but unable to find data on dropbox

Posted: March 8th, 2021, 9:17 am
by aaronw
The enumerator conducts the interview and collects the sensitive information. To an extent they have to be considered trusted. They need to either enter the password or their device needs to contain the password.

You could programmatically set the connection string, so at the least it is not stored in plain text:
setfile(SURVEY_DICT, "../Survey/Survey.csdbe|password=temp1234");
Now the password is stored in the PEN and not the PFF (plain text). The PEN is not secure, so we suggest you use Android's full-disk encryption in the case the device is lost or stolen.

Re: Synchronization complete but unable to find data on dropbox

Posted: March 8th, 2021, 11:33 am
by parthsaha
Dear aaronw,

I tried the setfile method but the syncdata generates error [ ERROR(GLOBAL, 24): Invalid second argument to syncdata, must be a dictionary ].

I specified like this: syncdata(PUT,setfile(IRS_HTH_DICT,""));

So how to specify the setfile variable to syncdata() function. syncdata function expects only attached dictionary.

Parth

Re: Synchronization complete but unable to find data on dropbox

Posted: March 8th, 2021, 12:34 pm
by josh
Call setfile first to link the file to the dictionary. This opens the data file and associates with the dictionary for any future calls syncdata, loadcase or other CSPro functions that access a dictionary. Make sure to pass the data file name and password to setfile.

Then on the next line call syncdata and give it the name of the dictionary.

setfile(IRS_HTH_DICT, "mydatafile.csdbe|password=temp1234");
syncdata(PUT,IRS_HTH_DICT);

Re: Synchronization complete but unable to find data on dropbox

Posted: March 11th, 2021, 2:38 am
by parthsaha
Dear Josh,

Many thanks for the reply.

I have attempted to do as per your suggestions:
if syncconnect(Dropbox) then
setfile(IRS_HTH_DICT,"./IRS_HTH/IRS_HTH.csdbe|password=indica123@");
syncdata(PUT,IRS_HTH_DICT);
errmsg("Data Uploaded Successfully...");
endif;

But it generates the error as below:
ERROR(syncFileServer, 22): 'IRS_HTH_DICT' is not a declared variable or is a misspelled dictionary entry

Kindly advise

Parth Saha