Skip to main content
Solved

File iterator task fails when workflow deployed to server

  • January 15, 2025
  • 4 replies
  • 28 views

I have a workflow with a file iterator step. It runs without any issues in the IDE on my local machine, but whenever I deploy it my company’s RDM server, I get the following error:

2025-01-07 09:05:31 INFO: starting...
2025-01-07 09:05:31 ERROR: Problem during initialization of iterator valuejava.io.IOException: An unexpected network error occurred
    at java.io.WinNTFileSystem.canonicalize0(Native Method)
    at java.io.WinNTFileSystem.canonicalize(Unknown Source)
    at java.io.File.getCanonicalPath(Unknown Source)
    at com.ataccama.dqc.resources.local.FileResource.getCanonicalPath(FileResource.java:40)
    at com.ataccama.dqc.resources.impl.DelegatingResourceBase.getCanonicalPath(DelegatingResourceBase.java:41)
    at com.ataccama.adt.task.iterators.FileIterator$FileIteratorInstance.iterate(FileIterator.java:133)
    at com.ataccama.adt.task.iterators.TaskIteratorInstance.initAndIterate(TaskIteratorInstance.java:36)
    at com.ataccama.adt.task.exec.EwfForEachTaskInstance.run(EwfForEachTaskInstance.java:75)
    at com.ataccama.adt.internal.core.runtime.EwfTaskProcessor$ThreadSlot.run(EwfTaskProcessor.java:372)


The child workflow called in the Iterate step is listed in the Available workflows in the Admin console, and I’m addressing it using the same resourceID:workflow_name.ewf convention that’s in that list. 

I’ve confirmed that the service account has access to the folder, as I can write a list of filenames in that folder to a list.

Can anyone provide any insight into the error and help with a resolution?
 

Best answer by AKislyakov

Hi ​@HMJohn,

The problem might be caused by a missing permissions on a subfolder of a shared folder.

https://learn.microsoft.com/en-au/troubleshoot/windows-server/performance/accessing-shared-folder-from-application-fails

Can you verify if there are no subfolders in the folder you trying to operate in.

Also right to list folder contents does not guarantee rights to access files.

View original
Did this topic help you find an answer to your question?

4 replies

Forum|alt.badge.img+2
  • Ataccamer
  • 146 replies
  • Answer
  • January 15, 2025

Hi ​@HMJohn,

The problem might be caused by a missing permissions on a subfolder of a shared folder.

https://learn.microsoft.com/en-au/troubleshoot/windows-server/performance/accessing-shared-folder-from-application-fails

Can you verify if there are no subfolders in the folder you trying to operate in.

Also right to list folder contents does not guarantee rights to access files.


  • Author
  • Data Voyager
  • 2 replies
  • January 15, 2025

Hi ​@AKislyakov,

Yes, the folder does not have any subfolders, and the Service Account has these NTFS permissions for that folder: Read, Write, Read & execute, Modify, and List folder contents.


Forum|alt.badge.img+2
  • Ataccamer
  • 146 replies
  • January 16, 2025

Do you have Read permission for individual files in that folder (could be a case if inherit permission is disabled) ​@HMJohn ? Also, can you try running the child workflow for individual files? Will it complete successfully?


  • Author
  • Data Voyager
  • 2 replies
  • January 21, 2025

Hi ​@AKislyakov,

It was a permissions issue. The service account had access to that folder and its contents but was missing permissions for a high-level folder. Running the child workflow succeeded for individual files, but the Iterate step couldn’t resolve the file paths without access along the full path.

Thank you for your assistance in figuring this out.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings