cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
stapes
Level 8

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
Community Support Team
Community Support Team

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
Community Support Team
Community Support Team

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

stapes
Level 8

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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,154)