Creating asset at path failed. code example
Example: unity error creating asset at path
AssetDatabase.CreateAsset(asset, "Assets/XXX/XXX.asset");
// Make sure the the starts with "Assets/"
AssetDatabase.CreateAsset(asset, "Assets/XXX/XXX.asset");
// Make sure the the starts with "Assets/"