EditorUtility Save File Panel issue

Hi there, i want to use this function for save a asset to a folder, i have all set up but when i want to save a wild error appear:


The weird thing is if i put the same path without the file panel it works:
The code is this one:

I don’t know if i’m using the file panel function in a good way, but it’s very strange that the same path works on one case and not in the other.
I’m suspecting that it can be a bug.

Ok the answer is really simple, you need to use EditorUtility.SaveFilePanelInProject instead of EditorUtility.SaveFilePanel for assets files.