Skip to main content
Solved

Error with filepath in automation

  • December 3, 2021
  • 2 replies
  • 49 views

dor1411993
Contributor
Forum|alt.badge.img+5

Hello everyone! 

I have a really serious problem, which could ruin my show to an important client early next week, and I would really love to help. 

I have an automation that is operated by watch directoery. I use a file that comes to the folder in the next operation in automation, by filepath.

The problem is that the next workbench, reads the filepath badly. (All files are on the server). 

Here is an example of the log files:

The 1609, is from automation which I used {file.path}.

as you can see,

The system stops as soon as it does not recognize the dwg file.

And in work 1610, I put the same file, but set it up manually.

Then it worked well

I looked closely, and I think I know what the problem was,

When it reads the file in 1609, it reads it like this:

file_dwg: $(TiuomMaarhot) Petah_Tikva \\ kb-2021-5 \\ Received Files \\ tb400031528.dwg

But in 1610 he reads it like this:

file_dwg: $(TiuomMaarhot) / Petah_Tikva / kb-2021-5 / Received Files / tb400031528.dwg

The difference is in the direction of /.

The question is how to overcome it?

Best answer by dor1411993

Can you doublecheck the log of the automation? A Directory Modified trigger should report the file path in the format FME Server can use as one of its output keys.

Check out the first few units of the FME Academy module Build Versatile Automations, they cover exactly this scenario.

Thanks @Hans van der Maarel​ for answer me!

But with the help of @keziaatsafe​ ,

I was able to solve the problem,

In the setting of Network based resources: "A directory of a network file based resource was missing"

was missing a slash.

1 

Thanks!

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+60
  • Celebrity
  • 3704 replies
  • December 3, 2021

Can you doublecheck the log of the automation? A Directory Modified trigger should report the file path in the format FME Server can use as one of its output keys.

Check out the first few units of the FME Academy module Build Versatile Automations, they cover exactly this scenario.


dor1411993
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • 39 replies
  • Best Answer
  • December 5, 2021

Can you doublecheck the log of the automation? A Directory Modified trigger should report the file path in the format FME Server can use as one of its output keys.

Check out the first few units of the FME Academy module Build Versatile Automations, they cover exactly this scenario.

Thanks @Hans van der Maarel​ for answer me!

But with the help of @keziaatsafe​ ,

I was able to solve the problem,

In the setting of Network based resources: "A directory of a network file based resource was missing"

was missing a slash.

1 

Thanks!