Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
Is there anything wrong , as unable to store file uploaded docno into db?
Getting below error on debugging,
An error occurred while trying to convert the given data to the type of the specified entity “uploadFile” [id=beb5, type=upload (id=3682)] (data store: VM Data Source). Value that could not be converted: ActivityClassParameter[name=upload,it=1,v=6649] Details: Could not cast from Number (Integer) to upload. Details: CastInvalid (APNX-1-4400-000)
please let me know if above details are ok to understand problem? as unable to store uploaded file docno to db, and get uploaded doc downnloaded how?
Discussion posts and replies are publicly visible
It looks like you have a CDT of type "upload" (though for future use cases i suggest you use a more standard CDT naming convention, because a plain name like that can easily be confused for lots of other things)...
but in your WTDS node, it looks like you have the type for the "upload" input set to Number-Integer, which would result in your WTDS node failing:
I need to download uploaded file using docId,To store uploaded docid i used (integer) but should it be text for docid?
You're storing the uploaded file in ri!upload.docNo - I can't tell what type that property is, but it should be integer. But this has nothing to do with the issue I was identifying in my previous reply, which is that you're not passing the correct data type into your WTDS node.
I have previously referred documentation and spent around 3 weeks, and confused how of how to achieve this functionality. can you do me a favor of putting down all details steps -
how to upload single/upload files?
and how to download the uploaded file ?
I have re-tried with your suggestion above, it got resolved.Thanks a lot :)
Great, glad you figured it out and thanks for confirming.