I built a document attribute in a BO. It is very good to attach the PDF/DOC file from create/edit form by upload the file. However, the upolad only works manually for one instance of BO at one time.
I'd like to import document in a batches using import command. I tried to create a rule for create/update the OB:
IMPORT DOCUMENT MyBO.MyDocument FROM MyBO.MyDocPathOnDisk
Where MyDocPathOnDisk is atrribute of plain text and store the full path and name of the document. When I used 'import' command with a CSV file which contained MyBO.MyDocPathOnDisk for each instance, I got error message in log file as follow:
Exception while calculating the action IMPORT DOCUMENT MyBO.MyDocument FROM MyBO.MyDocPathOnDisk
Error updating business object for row number 5 com.bas.shared.ruleparser.ParseException Unable to import document in action IMPORT DOCUMENT MyBO.MyDocument FROM MyBO.MyDocPathOnDisk due to system error File 'C:/AwareIM/docs/QuickTour.pdf' is not found Ignoring the row
Is there any way to to import document in a batches using import command?
Thanks,
Mojun