cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Continued Contributor
Continued Contributor

AzureBlobStorage.GetFileContent failed. The method 'GetFileContent' has an invalid value for parameter 'id'

In my canvas app, I get this error:

 

AzureBlobStorage.GetFileContent failed. The method 'GetFileContent' has an invalid value for parameter 'id'

 

Despite the error, the app succeeds in displaying the picture!

 

This does not show up while designing and testing the app in PowerApps studio. Only when the App is actually run do I see this error.

 

Here is the offending code:

 

IfError(
    ClearCollect(
        blobs,
        CollectAzureBlobStorageRecordForStCode.Run(glCurrentStCode)
    ),
    ""
);
Set(
    BlobRowCount,
    CountRows(blobs)
);
Clear(blobCollection);
ForAll(
    blobs,
    Collect(
        blobCollection,
        {
            RowIndex: CountRows(blobCollection) + 1,
            Comment: blobs[@Comment],
            BlobStorageID: blobs[@BlobStorageId],
            FK_LinkID: blobs[@FK_LinkID],
            Timestamp: blobs[@Timestamp]
        }
    )
);

and

If(!IsEmpty(ThisItem.BlobStorageID),AzureBlobStorage.GetFileContent(ThisItem.BlobStorageID))

In all cases the id parameters are valid!! How do I remove this unwanted error message?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: AzureBlobStorage.GetFileContent failed. The method 'GetFileContent' has an invalid value for parameter 'id'

Hi @stapes ,

Do you fire a flow to get the blobs table in your canvas app?
Do you mean that the error only show up when you run your app in web browser?

Please check if you have retrieve proper Blob Id value within the blobs collection. The Blob Id may be in the following format:

JTJmY29udGFpbmVyJTJmMTAwMDEwMDk2NDU1NTE3MTE3

 

Also please consider modify your formula within the Image property of the Image control in your Gallery to following:

If(
    !IsBlank(ThisItem.BlobStorageID),
    AzureBlobStorage.GetFileContent(ThisItem.BlobStorageID)
)

Also please make sure you have turned on the "Formula-level error management" option within Advanced settings of App settings of your app.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: AzureBlobStorage.GetFileContent failed. The method 'GetFileContent' has an invalid value for parameter 'id'

Hi @stapes ,

Do you fire a flow to get the blobs table in your canvas app?
Do you mean that the error only show up when you run your app in web browser?

Please check if you have retrieve proper Blob Id value within the blobs collection. The Blob Id may be in the following format:

JTJmY29udGFpbmVyJTJmMTAwMDEwMDk2NDU1NTE3MTE3

 

Also please consider modify your formula within the Image property of the Image control in your Gallery to following:

If(
    !IsBlank(ThisItem.BlobStorageID),
    AzureBlobStorage.GetFileContent(ThisItem.BlobStorageID)
)

Also please make sure you have turned on the "Formula-level error management" option within Advanced settings of App settings of your app.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Continued Contributor
Continued Contributor

Re: AzureBlobStorage.GetFileContent failed. The method 'GetFileContent' has an invalid value for parameter 'id'

Thanks @v-xida-msft -

I fired a flow to get the blobs table in my app. The id's are valid.

The error messages only show when I run the App in a browser.

!IsBlank(ThisItem.BlobStorageID)

This solved the problem. Formula-level error management also helps with other unwanted error messages.

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,974)