"Can not locate source" - not an error at all

Here you can submit bugreports
Post Reply
User avatar
kibi
Posts: 106
Joined: Mon Feb 29, 2016 12:57 pm
Contact:

"Can not locate source" - not an error at all

Post 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.
Alexander Sorkin
User avatar
Soffort
Posts: 44
Joined: Wed Mar 15, 2017 7:27 pm

Re: "Can not locate source" - not an error at all

Post by Soffort »

Confirm. I had this problem too after update to 8.2.
admin
Site Admin
Posts: 1680
Joined: Sat Feb 08, 2014 10:39 pm

Re: "Can not locate source" - not an error at all

Post by admin »

What's the next node after the command node?

-steinar
User avatar
Soffort
Posts: 44
Joined: Wed Mar 15, 2017 7:27 pm

Re: "Can not locate source" - not an error at all

Post by Soffort »

In my workflow - Conditional node. Now I set Conditional input to "Execute on both" for suppress error.
User avatar
kibi
Posts: 106
Joined: Mon Feb 29, 2016 12:57 pm
Contact:

Re: "Can not locate source" - not an error at all

Post 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).
Alexander Sorkin
admin
Site Admin
Posts: 1680
Joined: Sat Feb 08, 2014 10:39 pm

Re: "Can not locate source" - not an error at all

Post 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
User avatar
Soffort
Posts: 44
Joined: Wed Mar 15, 2017 7:27 pm

Re: "Can not locate source" - not an error at all

Post 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.
admin
Site Admin
Posts: 1680
Joined: Sat Feb 08, 2014 10:39 pm

Re: "Can not locate source" - not an error at all

Post by admin »

I agree with you and it will be removed in the next release. Thanks again! :-)

-steinar
sebird
Posts: 8
Joined: Thu Dec 14, 2017 11:18 am

Re: "Can not locate source" - not an error at all

Post 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
admin
Site Admin
Posts: 1680
Joined: Sat Feb 08, 2014 10:39 pm

Re: "Can not locate source" - not an error at all

Post 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
Post Reply