cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
stapes
Impactful Individual
Impactful Individual

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

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (3,349)