Forum Discussion

VO's avatar
VO
Helper I
6 years ago
Solved

Python Error: references unknown variable or function 'Python.Execute'

Works in the query editor, but encounter error when I close and apply: Failed to save modifications to the server. Error returned: 'Expression in partition 'n/a' in table 'n/a' references unknown va...
  • v-alq-msft's avatar
    6 years ago

    Hi, VO 

     

    With your provided information, I managed to do it with no error. 

     

    I'd like to suggest you go to Option > Preview features and uncheck Store dataset using enhanced metadata format. Then you need to restart Power BI to see if it works.

     

    For further information, you may refer the following links.

    Failed to save modifications to the server. function Python.Execute 

    Using enhanced dataset metadata (preview) 

     

    Best Regards

    Allan

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.