Ok, so the correct path is <parm name="TargetPathAndFileName" value="/enterprise/device/settings/datawedge/autoimport/datawedge.db" />
If I push it via adb, it works.
But via a StageNow profile somehow it does not work.
Here is part of the StageNow XML:
<characteristic version="0.6" type="FileMgr">
<parm name="FileAction" value="1" />
<parm name="TargetAccessMethod" value="2" />
<parm name="TargetPathAndFileName" value="/enterprise/device/settings/datawedge/autoimport/datawedge.db" />
<parm name="SourceAccessMethod" value="1" />
<parm name="SourceURI" value="ftp-p://user:firstname.lastname@example.org:2121/datawedgeTC55v2.db" />
I have an internal FTP, I check the logs, the file is downloaded in the staging part.
I think the issue is something to do with the naming convention of the file being imported by datawedge application.
Datawedge application expects the db file in the below naming format to import it successfully.
<profilename> to be replaced with actual profile name inside the db file.
For eg: Lets say StageNow application want to access datawedge with its own db file profile which has profile name as SN. Then the datawedge profile file name to be imported should be in the following format
I hope this should resolve your issue.
do you see the file on the device when you send it through Stagenow?
it could be an issue linked to the file permissions; if Datawedge (and all other applications) cannot read the file, DW cannot import the file.
Take a look at TC55 Integrator Guide for a complete explanation on how to autoimport profiles in DataWedge:
DataWedge supports remote deployment of a configuration to a device, using tools such as MSP. DataWedge
monitors the /enterprise/device/settings/datawedge/autoimport folder for the DataWedge
configuration file (datawedge.db) or a profile file (dwprofile_x.db). When DataWedge launches it checks
the folder. If a configuration or profile file is found, it imports the file to replace any existing configuration or profile.
Once the file has been imported it is deleted from the folder.
I for example have tried to copy datawedge.db to mentioned folder but DataWedge did not autoimport it.. I had to restart the TC(55,75,8000) and after restart it was imported