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

Announcements

No record found.

News and Announcements icon
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
    305,178 Super User 2026 Season 1 on at

    Hi Koti9999,

    Does the stream variable has a valid Excel workbook?

  • Koti9999 Profile Picture
    55 on at

    Hi Andre,

    yes it contains valid workbook.

    pastedimage1639377017177v1.png

  • Koti9999 Profile Picture
    55 on at

    Hi Experts,

    please help on this.

    Thanks

  • nmaenpaa Profile Picture
    101,172 Moderator on at

    Hi Koti999,

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

  • Martin Dráb Profile Picture
    239,645 Most Valuable Professional on at

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

  • YY Lim Profile Picture
    960 on at

    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

    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
    239,645 Most Valuable Professional on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 722

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 605 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 547

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans