Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
6 replies
Subscribers
8 subscribers
Views
1998 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Problem: Single file uploaded to Appian. Two files appear in the relevant accdoc
james.franklin
over 10 years ago
Problem: Single file uploaded to Appian. Two files appear in the relevant accdocs. Only one of the files can be deleted by process. All files must be removed.
I have a very simple model which uses the upload document element within the initial form. I then record the physical path to the document. After which I delete the document. Checking back in the relevant accdocs folder there appears to be an additional copy of the document intially uploaded in the attended task. Aside from the the function being used to record the physical url of the document in the KC, all other components of the model are default.
Is this a bug? Or something resolved in a higher version of Appian?
Thanks,
James...
OriginalPostID-74854
OriginalPostID-74854
Discussion posts and replies are publicly visible
0
venkateshr
over 10 years ago
Few things to check - Does both the files have the same time stamp. Is there any node in your model that is running twice that is causing the upload? Can you build another test process to upload a single file, and delete it from the process (this is to try and reproduce the error).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
james.franklin
over 10 years ago
the model in question is a very simple three node process. an attended task with the appian document upload module. a script task fetching the local file system path to the document held a singular document variable and the appian delete document node. the document pv is not set to multiple and when the process is running you are only presented with a single document upload.
It looks to me like the document you select for upload is in fact uploaded as soon as you select it. The system then uploads the document again once the form is submitted.
This really is a very simple process and rather worrying since the process holds absolutely no reference to the "spare" document. Meaning I now have an orphaned file sat inside accdocs with no way of knowing it is there. With high file through put this can prove to be a major problem long term.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
venkateshr
over 10 years ago
I am not sure of the reason for having a script task to get the absolute path of the file on the system. A quick check - put an XOR node before the script task, and make the flow of your process to not take this path. Run the process and check your theory of 2 documents being uploaded - one on select and one on submit. That will give us a more clear handle on the behavior.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
james.franklin
over 10 years ago
It is definitely the file upload module in the form. I have watched the local file system as I have executed the process. Before the form is submitted a new file is generated. After the form is submitted another new file is created. When the singular document pv is passed to the delete node the 2nd file is deleted from the relevant accdoc folder. The first file remains.
I can say for sure that the expression used in the script task has no influence what so ever.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
venkateshr
over 10 years ago
This does seem to be an issue in earlier versions. We tried this on 7.2 and only one copy gets saved as intended.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
james.franklin
over 10 years ago
okay, thanks venkateshr. I had a feeling this might be the case.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel