Forum Discussion

masplin's avatar
masplin
Icon for Power Participant rankPower Participant
4 years ago
Solved

Refresh Failing with an error I can't interpret unexpected content type

Model refreshes fine in desktop, but on the service get this   The document cannot be opened because there is an invalid part with an unexpected content type. [Part Uri=/customXml/itemProps4.xml], ...
  • masplin's avatar
    masplin
    4 years ago

    So it turns out to be that classic MS error message that is completely misleading.  Having spent hours turning each file on and off (28 in total) I narrowed it down to one query.

     

    The issue seems to be there was a column that imported as general data type, but is full of numbers. I formatted it as a date, but this through an error. I later removed this column so I didn't notice the error and there was no error reported by Power BI desktop.  To fix this I had to first format the column as a whole number then as a date. Now theservice refresh works.

     

    So in fact it was nothnig to do with any of the things you helpfully suggested, but was an error in the query path that Desktop was able to deal with, but the service could not.

     

    Thanks so much for your input, but hopefulyl this wil lhelp others. Basically you have to check every step in the query even if you dont actually load that column.

     

    Mike