[BUG] Samsung Galaxy S3 error WPD_OBJECT_ORIGINAL_FILE_NAME with FFS 10.14

Get help for specific problems
Posts: 4
Joined: 6 Aug 2019

MELERIX

hello, I'm getting this error when synchronizing files in this mobile phone...
_________________________________
|06-08-2019 [1:15:51]
|
|    Stopped
|    Errors: 2
|    Items processed: 1 (13,4 MB)
|    Items remaining: 1 (0 bytes)
|    Total time: 00:00:42
|________________________________

[1:15:52]  Info:  Synchronizing folder pair: <-Two way->
                      D:\PROGRAMAS
                      mtp:\GT-I9300\Card\PROGRAMAS
[1:15:52]  Info:  Creating folder "mtp:\GT-I9300\Card\PROGRAMAS\FREEFILESYNC v10.14"
[1:15:52]  Info:  Creating file "mtp:\GT-I9300\Card\PROGRAMAS\FREEFILESYNC v10.14\FreeFileSync_10.14_Windows_Setup.exe"
[1:16:31]  Error:  Cannot move file
                   "mtp:\GT-I9300\Card\PROGRAMAS\FREEFILESYNC v10.14\FreeFileSync_10.14_Windows_Setup.0acc.ffs_tmp" to
                   "mtp:\GT-I9300\Card\PROGRAMAS\FREEFILESYNC v10.14\FreeFileSync_10.14_Windows_Setup.exe".
                   IPortableDeviceProperties::SetValues failed for WPD_OBJECT_ORIGINAL_FILE_NAME.
                   HRESULT: 0x8004a802, Facility: COM/OLE Interface Management
[1:16:34]  Error:  Stopped
if I disable "Fail-safe file copy" in the options, the file is synchornized without troubles, but then it throws a new error...
_________________________________
|06-08-2019 [1:18:11]
|
|    Completed with errors
|    Errors: 1
|    Items processed: 1 (13,4 MB)
|    Total time: 00:01:01
|________________________________

[1:18:11]  Info:  Using non-default global settings:
                      Fail-safe file copy - Disabled
[1:18:12]  Info:  Synchronizing folder pair: <-Two way->
                      D:\PROGRAMAS
                      mtp:\GT-I9300\Card\PROGRAMAS
[1:18:12]  Info:  Creating file "mtp:\GT-I9300\Card\PROGRAMAS\FREEFILESYNC v10.14\FreeFileSync_10.14_Windows_Setup.exe"
[1:19:10]  Info:  Cannot move file
                  "mtp:\GT-I9300\Card\PROGRAMAS\sync.126b.ffs_tmp" to
                  "mtp:\GT-I9300\Card\PROGRAMAS\sync.ffs_db".
                  IPortableDeviceProperties::SetValues failed for WPD_OBJECT_ORIGINAL_FILE_NAME.
                  HRESULT: 0x8004a802, Facility: COM/OLE Interface Management
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

Are you able to rename this file via Windows Explorer?
viewtopic.php?t=4139
Posts: 4
Joined: 6 Aug 2019

MELERIX

Are you able to rename this file via Windows Explorer?
viewtopic.php?t=4139 Zenju, 07 Aug 2019, 09:25
yes and no, for example I can't rename files via Windows Explorer that are single files and placed in root dir, but I can rename folders that are in root dir.
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

It probably makes sense to consider "Fail-safe file copy" for the creation of the sync.ffs_db files as well. This should fix your test case:
https://www.mediafire.com/file/5xszy9ygqag7qho/FreeFileSync_10.15_%5BBeta%5D_Windows_Setup.exe
Posts: 4
Joined: 6 Aug 2019

MELERIX

ok, here a the new results with FFS Beta 10.15.

with "Fail-safe file copy" enabled...
_________________________________
|09-08-2019 [15:08:47]
|
|    Completed with errors
|    Errors: 2
|    Items processed: 1 (13,4 MB)
|    Items remaining: 1 (13,4 MB)
|    Total time: 00:00:04
|________________________________

[15:08:47]  Info:  Synchronizing folder pair: <-Two way->
                       D:\PROGRAMAS
                       mtp:\GT-I9300\Card\PROGRAMAS
[15:08:47]  Info:  Creating folder "mtp:\GT-I9300\Card\PROGRAMAS\FREEFILESYNC v10.14"
[15:08:48]  Info:  Creating file "mtp:\GT-I9300\Card\PROGRAMAS\FREEFILESYNC v10.14\FreeFileSync_10.14_Windows_Setup.exe"
[15:08:50]  Error:  Cannot move file
                    "mtp:\GT-I9300\Card\PROGRAMAS\FREEFILESYNC v10.14\FreeFileSync_10.14_Windows_Setup~e9a7.ffs_tmp" to
                    "mtp:\GT-I9300\Card\PROGRAMAS\FREEFILESYNC v10.14\FreeFileSync_10.14_Windows_Setup.exe".
                    IPortableDeviceProperties::SetValues failed for WPD_OBJECT_ORIGINAL_FILE_NAME.
                    HRESULT: 0x8004a802, Facility: COM/OLE Interface Management
[15:08:52]  Error:  Cannot move file
                    "mtp:\GT-I9300\Card\PROGRAMAS\sync.ffs_db.9050.ffs_tmp" to
                    "mtp:\GT-I9300\Card\PROGRAMAS\sync.ffs_db".
                    IPortableDeviceProperties::SetValues failed for WPD_OBJECT_ORIGINAL_FILE_NAME.
                    HRESULT: 0x8004a802, Facility: COM/OLE Interface Management
with "Fail-safe file copy" disabled...
_________________________________
|09-08-2019 [15:11:27]
|
|    Completed successfully
|    Items processed: 2 (13,4 MB)
|    Total time: 00:00:01
|________________________________

[15:11:28]  Info:  Using non-default global settings:
                       Fail-safe file copy - Disabled
[15:11:28]  Info:  Synchronizing folder pair: <-Two way->
                       D:\PROGRAMAS
                       mtp:\GT-I9300\Card\PROGRAMAS
[15:11:28]  Info:  Creating folder "mtp:\GT-I9300\Card\PROGRAMAS\FREEFILESYNC v10.14"
[15:11:28]  Info:  Creating file "mtp:\GT-I9300\Card\PROGRAMAS\FREEFILESYNC v10.14\FreeFileSync_10.14_Windows_Setup.exe"
so maybe "Fail-safe file copy" should be disabled by default for MTP devices ?
User avatar
Site Admin
Posts: 7210
Joined: 9 Dec 2007

Zenju

Good to hear that disabling fail-safe file copy is a feasible workaround. The above issue doesn't seem to affect all MTP devices, so it's probably better to keep fail-safe active by default. Also MTP isn't really transactional in practice, despite its specification (e.g. pulling the plug during a file copy with fail-safe copy disabled leads to data corruption in my tests with a recent Android phone, although it really should not).
Posts: 4
Joined: 6 Aug 2019

MELERIX

I see, but theres is no way to detect MTP version in order to exclude for example devices with android 4.3 and lower automatically ?