2 Replies Latest reply on Jul 28, 2017 6:57 AM by Igor Kurshakov

    Auto-importing DataWedge profile (TC56)

    Igor Kurshakov

      I need to auto-import DataWedge profile on application install.  I successfully did that on TC55 long time ago using approach described here:

      https://developer.zebra.com/message/93702#93702

       

      On TC56 though I faced some strange behaviour.  I created profile on same TC56 and exported it.  When importing using the above mentioned method I see the following symptoms:

      1. Scanner is not activated on scanner button press (as profile instructs).

      2. Opening DataWedge shows only my profile; all standard profiles are gone.

      3. Upon exiting DataWedge system popup appears telling that DataWedge crashed.  I assume DataWedge auto-restarts as this popup is persistent and renders handheld unusable.

      4. Restarting handheld does not recover from the above state.

      5. /enterprise/device/settings/datawedge/autoimport/ directory does not contain my profile, but it contains three other profiles which look like three standard profiles which are missing.  Deleting these files does not recover from the above state.

      6. The only way to restore handheld to functioning state is factory reset.

       

      The OS version is 16.06.02 GMS

      DataWedge version is 6.2.23

       

      Is there any special workaround or other procedure for auto-importing?

        • Re: Auto-importing DataWedge profile (TC56)
          THARINDU WELIGODAPOLA

          There are two types of DataWedge configuration db files. Full db configuration(datawedge.db) and Profile db configuraiton (dwprofile_(profilename).db)

           

          I think the problem here is that you have exported a profile but you have renamed the profile as datawedge.db. Try following steps and see you able to recover from.

           

          1. Take a copy of the db file you imported (I hope you have a copy of it in your PC in the device exported location)
          2. Rename the db file as dwprofile_xxx.db (xxx is your profile name).
          3. Restore the DataWedge to defaults (Open DataWedge -> Tap Menu->Select Settings->Select Restore).
          4. Now push the db file you created dwprofile_xxx.db to /enterprise/device/settings/datawedge/autoimport/.

           

          Let me know whether you can see you configuration correctly now.

           

          If this doesnt work please share the db file.

            • Re: Auto-importing DataWedge profile (TC56)
              Igor Kurshakov

              My configuration is a profile db.  Yes, I already figured out that file name matters and I do name it correctly (shall double check anyway); I figured it out as file disappears from the directory which means it was handled.

               

              I also tried to do all steps manually and it did work; though the application does not (even though it did work on TC55).

              I'll try again and make a sample code out of it demonstrating the issue.

               

              I have a question though: is step #3 required?  Will importing same profile twice overwrite it successfully?