Forum Discussion

Seaweed81's avatar
Seaweed81
Regular Visitor
9 years ago

Expression.Error: There weren't enough elements in the enumeration to complete the operation

I know this has been asked before however, none of the "solved" seems to fit.  I get this error when I refresh sometimes 20 times, sometimes just once and sometimes it works right away.  I guess my confusion is it will just eventaully work and sometimes on the 1st time.  Any idea what would cause this?  I'm new to this as most of this was built for me, and I'm trying to learn it, but this one has the best of me and is beyond frustrating.

10 Replies

  • ImkeF's avatar
    ImkeF
    Icon for Community Champion rankCommunity Champion

    This depends on what you're doing: Please copy the code from the advanced editor here to investigate.

    • Seaweed81's avatar
      Seaweed81
      Regular Visitor

      So forgive me, when I mentioned I was new, I'll show my ignorance.  What are you referring to specifically when you say code?  Is this the source that I'm linked to?

      • v-yulgu-msft's avatar
        v-yulgu-msft
        Icon for Microsoft Employee rankMicrosoft Employee

        Hi Seaweed81,

         

        The code mentioned by ImkeF was the Power Query code. You can get it via clicking the Advanced Editor in Query editor mode.

         

        What changes did you make after loading data into Power BI desktop? And whcih step caused above error? Was there any more detailed error message?

         

        Best regards,
        Yuliana Gu