Synchronization complete but unable to find data on dropbox

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Forum rules
New release: CSPro 8.0
Bhupender11
Posts: 63
Joined: May 15th, 2018, 1:18 am

Synchronization complete but unable to find data on dropbox

Post 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.
Attachments
IRS_Monitoring.rar
(623.63 KiB) Downloaded 184 times
etuser
Posts: 85
Joined: September 3rd, 2019, 5:57 am

Re: Synchronization complete but unable to find data on dropbox

Post 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 .
Bhupender11
Posts: 63
Joined: May 15th, 2018, 1:18 am

Re: Synchronization complete but unable to find data on dropbox

Post 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.
Bhupender11
Posts: 63
Joined: May 15th, 2018, 1:18 am

Re: Synchronization complete but unable to find data on dropbox

Post 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.
Attachments
error in sync.docx
(109.77 KiB) Downloaded 162 times
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Synchronization complete but unable to find data on dropbox

Post 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
Bhupender11
Posts: 63
Joined: May 15th, 2018, 1:18 am

Re: Synchronization complete but unable to find data on dropbox

Post 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.
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: Synchronization complete but unable to find data on dropbox

Post 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.
parthsaha
Posts: 15
Joined: March 8th, 2021, 11:16 am

Re: Synchronization complete but unable to find data on dropbox

Post 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
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Synchronization complete but unable to find data on dropbox

Post 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);
parthsaha
Posts: 15
Joined: March 8th, 2021, 11:16 am

Re: Synchronization complete but unable to find data on dropbox

Post 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
Post Reply