cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stapes
Post Prodigy
Post Prodigy

Azure Blob Storage.GetFileContent failed: The method 'GetFileContent' has an invalid value for parameter 'id'

I am getting this error, even though the screen is displaying the image it says it has failed to get.

Here is my 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]
        }
    )
);

It may be the Collect that is causing the error. I have tried wrapping it with IfError(...,"") but it doesn't see it as valid code:

IfErrorError.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
a-ovbord
Community Support
Community Support

Hi @stapes,

 

This is a tough one, how does your GetFileContent call look like?

The error might not come from the GetFileContent but from somewhere else.

I would try to keep it simple and separate the actions that you have.

 

I'm also going to include a link to a good video on constructing an app with Azure Blob:

https://www.youtube.com/watch?v=ivWA8RuXedA

 

Thank you,

Ovidiu

View solution in original post

1 REPLY 1
a-ovbord
Community Support
Community Support

Hi @stapes,

 

This is a tough one, how does your GetFileContent call look like?

The error might not come from the GetFileContent but from somewhere else.

I would try to keep it simple and separate the actions that you have.

 

I'm also going to include a link to a good video on constructing an app with Azure Blob:

https://www.youtube.com/watch?v=ivWA8RuXedA

 

Thank you,

Ovidiu

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,138)