Page 1 of 1
"Can not locate source" - not an error at all
Posted: Wed Nov 15, 2017 6:03 pm
by kibi
I found that FFASTRANS 8.2.2 interprets the absence of source file as the error.
But in my case it's not an error, but normal state. My workflow moves at the last step the source to one or another folder. It depends on workflow conditions. I use Command node with command like that:
Code: Select all
%comspec% /c "move "%s_original_full%" "%s_original_path%\Processed""
In the latest release FFASTRANS counts it as the error and spoils the log.
Re: "Can not locate source" - not an error at all
Posted: Thu Nov 16, 2017 4:29 am
by Soffort
Confirm. I had this problem too after update to 8.2.
Re: "Can not locate source" - not an error at all
Posted: Thu Nov 16, 2017 7:59 pm
by admin
What's the next node after the command node?
-steinar
Re: "Can not locate source" - not an error at all
Posted: Sun Nov 19, 2017 5:14 am
by Soffort
In my workflow - Conditional node. Now I set Conditional input to "Execute on both" for suppress error.
Re: "Can not locate source" - not an error at all
Posted: Tue Nov 21, 2017 9:57 am
by kibi
In my case after the command node moving files is another command node in a __disabled state__ (node for deleting some temporary files).
Re: "Can not locate source" - not an error at all
Posted: Wed Nov 22, 2017 10:42 am
by admin
Thank you both for your feedback. Some nodes require an input source file to work, others don't. Currently, FFAStrans does not distinguish between the two and requires all nodes to have access to a valid source file. Obviously it breaks some workflows when the source is moved without updating the %s_source% variable. Now, the only way that that's gonna happen is if you use the "Command executor" to move the source file. This is exactly the reason why you can update the %s_source% variable from within that node; in order to not break your workflow. But, maybe requiring a source file was a bad idea after all. You think it should be removed again?
-steinar
Re: "Can not locate source" - not an error at all
Posted: Wed Nov 22, 2017 12:00 pm
by Soffort
Yes, I think source file input in all nodes not needed. Some nodes can manipulate data without source files. For generate texts, execute commands, populate variables, check values or something else.
In my workflow I watch for file and change filename in some situations in command executor. After that I check if original file exists. And if not - dismiss job. Changed filename may be watch in next iteration. So, in some situations original source file not exists and it's normal.
Re: "Can not locate source" - not an error at all
Posted: Fri Nov 24, 2017 7:52 am
by admin
I agree with you and it will be removed in the next release. Thanks again!
-steinar
Re: "Can not locate source" - not an error at all
Posted: Thu Dec 14, 2017 12:25 pm
by sebird
Hello,
can you explain me how to remove this error? i don't understand how to update the %s_source% variable... Thank you!!
Seb
Re: "Can not locate source" - not an error at all
Posted: Thu Dec 14, 2017 5:12 pm
by admin
Hi sebird, thank you for using FFAStrans and welcome to the forum!
%s_source% refers to the input file(s) for the node. It gets updated every time a node change the it. There are three ways for the user to update this variable manually; either by using the "Populate variables", "Command executor" or "Generate text file" nodes. In the two first nodes you simply set the FULL path of the new source variable in the input field. In the "Generate text file" node you just check the "Set text file as source" option.
-steinar