web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Worksheet position out of range.while reading data from excel from azure storage

(0) ShareShare
ReportReport
Posted on by 55

Hi Experts,

I'm getting below error "Worksheet position out of range" while reading data from excel file from Azure storage.

pastedimage1639244790236v1.png

error line number error causing.

pastedimage1639245001282v2.png

Thank you in advance

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    299,704 Super User 2025 Season 2 on at
    RE: Worksheet position out of range.while reading data from excel from azure storage

    Hi Koti9999,

    Does the stream variable has a valid Excel workbook?

  • Koti9999 Profile Picture
    55 on at
    RE: Worksheet position out of range.while reading data from excel from azure storage

    Hi Andre,

    yes it contains valid workbook.

    pastedimage1639377017177v1.png

  • Koti9999 Profile Picture
    55 on at
    RE: Worksheet position out of range.while reading data from excel from azure storage

    Hi Experts,

    please help on this.

    Thanks

  • nmaenpaa Profile Picture
    101,160 Moderator on at
    RE: Worksheet position out of range.while reading data from excel from azure storage

    Hi Koti999,

    how did you determine that the stream contains a valid Excel workbook?

  • Martin Dráb Profile Picture
    236,751 Most Valuable Professional on at
    RE: Worksheet position out of range.while reading data from excel from azure storage

    If there is a single worksheet, it's index is 0 (not 1), isn't it?

  • YY Lim Profile Picture
    960 on at
    RE: Worksheet position out of range.while reading data from excel from azure storage

    I think the value should be 0 instead of 1 in the get_item().

    Should be get_item(0). Please try and see.

  • Koti9999 Profile Picture
    55 on at
    RE: Worksheet position out of range.while reading data from excel from azure storage

    Hi Yuvan,

    tried with get_item(0)..no luck, same error ..

    is there any issue with my stream? this is how i'm downloading azure file and capturing to target stream.and from the stream i'm reading excel data.

    pastedimage1639458230487v1.png

    Thanks

  • Martin Dráb Profile Picture
    236,751 Most Valuable Professional on at
    RE: Worksheet position out of range.while reading data from excel from azure storage

    Correct me if I'm wrong, but it seems to me that you don't want for the download to complete, therefore the file content doesn't have to be downloaded in full when you're trying to import it.

    Also, if you want to see what's inside the stream, why don't you into the file and take a look?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 753

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 752 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 534 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans