java.io.FileNotFoundException: atg/data/Publishing/versionFileStore/PublishingFiles/fa103/0/_FeaturedCategories_xproperties._fa103307#2 (No such file or directory)

While updating featuredTargetters though BCC UI, getting below exceptions and not able to save targetters after editing

Found file (_FeaturedCategories_xproperties._fa103307#3) in versionFileStore. But in exception stacktrace ,it is complaining about file (FeaturedCategories_xproperties._fa103307#2).
Dont have backup folder to copy files from.
In DB, EPUB_FILE_ASSET table data is attached in excel.

AssetVersion Workspace Branch is_head Version_deleted Checkindate FileAssetID FileName Size Checksum ParentFolder
1 14004 10100 1 0 0 12-OCT-14 12.09.08.645000000 PM fa103351 8603 FeaturedCategories.properties 12-OCT-14 11.47.40.246000000 AM 318 ff5
1 13914 10100 0 0 0 12-OCT-14 11.36.47.052000000 AM fa103307 8600 FeaturedCategories.properties 12-OCT-14 11.12.21.119000000 AM 1151 ff100051
2 14048 10100 1 0 0 1 16-OCT-14 01.19.31.312000000 PM fa103307 8600 FeaturedCategories.properties 16-OCT-14 09.30.40.525000000 AM 1153 2.53E+18 ff100051

Caused by :java.io.FileNotFoundException: atg/data/Publishing/versionFileStore/PublishingFiles/fa103/0/_FeaturedCategories_xproperties._fa103307#2 (No such file or directory)
**** Error Fri  14:25:40 PDT 2015 1428096340676 /atg/dynamo/servlet/sessiontracking/GenericSessionManager/IaCAn7QNWVuxMCU0W3B_koGxo-fWE4syJueTzY2iHefWGuTs6VtS!786562057!1428092210169/atg/web/assetmanager/editor/targeting/TargeterFormHandler at java.io.FileInputStream.open(Native Method)
**** Error Fri 14:25:40 PDT 2015 1428096340676 /atg/dynamo/servlet/sessiontracking/GenericSessionManager/IaCAn7QNWVuxMCU0W3B_koGxo-fWE4syJueTzY2iHefWGuTs6VtS!786562057!1428092210169/atg/web/assetmanager/editor/targeting/TargeterFormHandler at java.io.FileInputStream.<init>(FileInputStream.java:146)
**** Error Fri14:25:40 PDT 2015 1428096340676 /atg/dynamo/servlet/sessiontracking/GenericSessionManager/IaCAn7QNWVuxMCU0W3B_koGxo-fWE4syJueTzY2iHefWGuTs6VtS!786562057!1428092210169/atg/web/assetmanager/editor/targeting/TargeterFormHandler at atg.core.util.JarUtils.copy(JarUtils.java:412)
**** Error Fri 14:25:40 PDT 2015 1428096340676 /atg/dynamo/servlet/sessiontracking/GenericSessionManager/IaCAn7QNWVuxMCU0W3B_koGxo-
**** Error Fri  14:25:40 PDT 2015 1428096340676 /atg/dynamo/servlet/sessiontracking/GenericSessionManager/IaCAn7QNWVuxMCU0W3B_koGxo-fWE4syJueTzY2iHefWGuTs6VtS!786562057!1428092210169/atg/web/assetmanager/editor/targeting/TargeterFormHandler at

/atg/web/assetmanager/editor/targeting/TargeterFormHandler --- java.lang.RuntimeException: Unable to set the file content into atg/data/Publishing/versionFileStore//PublishingFiles/fa103/0/_FeaturedCategories_xproperties._fa103307#3 from /atg/data/Publishing/versionFileStore/PublishingFiles/fa103/0/_FeaturedCategories_xproperties._fa103307#2. The copy operation failed.

Solution:

Fixed it by renaming _FeaturedCategories_xproperties._fa103307#3 to _FeaturedCategories_xproperties._fa103307#2.
#2 and #3 are really matters as there are only 2 versions available for fileAssetId = 'fa103307' in DB.

If the file(_FeaturedCategories_xproperties._fa103307#2) referenced in the FileNotFoundException is available, make sure that the user that starts up the application server has permissions to view the file in the versionFileStore.

Comments

Popular posts from this blog

how to generate classes from swagger

How to create new user/account in BCC