Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
9 years ago

SAP BW 'Scale Measures' error message when refreshing via PBI service

One of our connections is a direct connection to our SAP BW instance.  Several .pbix files have been written, published to the PBI service and are refreshing successfully via our on-premise Gateway.

 

I wrote a new .pbix, pointing to a SAP BW query and it refreshes successfully via PBI Desktop; no errors.  I published it to PBI Service and scheduled a refresh.  Both the scheduled refresh via Gateway and the 'Refresh Now' option in PBI Service fail with the below error.  My initial thought is that is is something on the SAP BW side, but can't tell quite what.  There are no measures in the .pbix file.  There are some calculated columns in the .pbix.  Has anyone experienced this?

 

 

 

8 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    I figured out the reason.  I don't understand the 'How', but I do know the 'Why'.

     

    When looking at the datasource for the .pbix with the error, it appears the following string was added.  

     

    [ScaleMeasures=false]

     

    Not sure why (maybe a new change in the 2.49.4831.521 Desktop Client?).  I removed the string to match the syntax of a .pbix with the same SAP BW connection that DOES work.  Now the refresh occurs successfully.  Just don't know why/how that string got added.

     

    • v-qiuyu-msft's avatar
      v-qiuyu-msft
      Community Support

      Hi Anonymous,

       

      Based on my test, the [ScaleMeasures=false] parameter appended in SapBusinessWarehouse.Cubes function automatically when get data from SAP BW in Power BI desktop August version.

       

      I have sent a email to consult this issue internally, will update here if I get any information.

       

      Best Regards,
      QiuyunYu

      • v-qiuyu-msft's avatar
        v-qiuyu-msft
        Community Support

        Hi Anonymous,

         

        Please see below response from the PG team:

         

        ScaleMeasures was added to (I think) the May 2017 release of Power BI desktop. It exists because of what seems to be a bug in either BW itself or in the driver we’re using to connect to it, and because we wanted not to change the behavior of preexisting queries. Setting it to false (the default is true) enables the workaround.

         

        To make the gateway work, the customer should just need to update the gateway to the latest version.

         

        Please keep the [ScaleMeasures=false] in your report,  try to download the latest on-premise data gateway to check if the refresh can be successfully.

         

        Best Regards,
        QiuyunYu