How to Iterate Over GCS Bucket Files and Pass Them to Classify Document Activity?

Hello,

Thank you for your guidance on using the For Each Object in Bucket and Download Object to File activities to process files from a Google Cloud Storage bucket and pass them to the Classify Document activity.

However, when implementing this approach, I encountered the following error:

“The specified Activity definition contains multiple languages of expression activities that require compilation (languages discovered: ‘C#’). Only one language requiring compilation is allowed per definition. Please convert all expression activities that require compilation to a single language.”

This error suggests that my workflow contains activities using different expression languages, leading to a compilation issue.

Steps Taken:

  1. Configured Google Cloud Scope: Successfully connected using the Service Account 2. Implemented For Each Object in Bucket: Set up to iterate over each file in the bucket.
  2. Added Download Object to File: Placed within the loop to download each file locally.
  3. Integrated Classify Document: Attempted to process the downloaded files.

Encountered Issue:

Upon running the workflow, the aforementioned error regarding multiple expression languages appeared, preventing execution.

Request for Assistance:

Could you provide guidance on how to resolve this issue? Specifically:

  • Identifying Mixed Expression Languages: How can I determine which activities are using different expression languages within my workflow?
  • Consolidating Expression Languages: What steps should I take to ensure all activities use a single, consistent expression language to prevent this compilation error?
  • Best Practices: Are there recommended practices to avoid such issues when integrating multiple activities, especially when dealing with external services like Google Cloud Storage?

Your expertise and advice on resolving this matter would be greatly appreciated.

Thank you!