Skip to main content
Solved

Downloading from azure and reading features from it

  • September 21, 2021
  • 1 reply
  • 38 views

I am trying to download a Revit file from Azure Storage and pass it to a FeatureReader so it can process it, but I am getting fatal error

```FeatureReader_rvt_2_<Rejected> (TeeFactory): FeatureReader_rvt_2_<Rejected>: Termination Message: 'FeatureReader_rvt_2 output a <Rejected> feature. To continue translation when features are rejected, change 'Workspace Parameters' > Translation > 'Rejected Feature Handling' to 'Continue Translation''

FeatureReader_rvt_2 (QueryFactory): Termination Message: '%0'

AttributeFilter_3_Filter (AttributeFilterFactory): Termination Message: '%0'

A fatal error has occurred. Check the logfile above for details

PythonFactory output feature was rejected downstream. Check the logfile above for details

A fatal error has occurred. Check the logfile above for details

Error encountered while calling method `input'

AzureBlobStorageConnector_CALLER (PythonFactory): PythonFactory failed to process feature

AzureBlobStorageConnector_CALLER (PythonFactory): A fatal error has occurred. Check the logfile above for details

JSONExtractor_Token_2_EVALUATED_-1_217_Player (RecorderFactory): A fatal error has occurred. Check the logfile above for details```

 

Attaching process:1 

1 (2)

Best answer by caracadrian

I don't think FeatureReader can read a file from an attribute.

You can set the AzureBlobStorageConnector to Download as: File and use _download_path in the FeatureReader.

To get around deleting the file from disk after download use a TempPathnameCreator in front of the AzureBlobStorageConnector in which you set Download to Folder to _pathname attribute.

 

PS: Make sure the file you download is a Revit file

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.

1 reply

caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • 571 replies
  • Best Answer
  • September 21, 2021

I don't think FeatureReader can read a file from an attribute.

You can set the AzureBlobStorageConnector to Download as: File and use _download_path in the FeatureReader.

To get around deleting the file from disk after download use a TempPathnameCreator in front of the AzureBlobStorageConnector in which you set Download to Folder to _pathname attribute.

 

PS: Make sure the file you download is a Revit file