diff --git a/src/code/PSResourceInfo.cs b/src/code/PSResourceInfo.cs index 643833640..50bcb6360 100644 --- a/src/code/PSResourceInfo.cs +++ b/src/code/PSResourceInfo.cs @@ -571,7 +571,11 @@ public static bool TryConvertFromXml( }; var additionalMetadataHashtable = new Dictionary(); - additionalMetadataHashtable.Add("NormalizedVersion", metadata["NormalizedVersion"].ToString()); + + // Only add NormalizedVersion to additionalMetadata if server response included it + if (metadata.ContainsKey("NormalizedVersion")) { + additionalMetadataHashtable.Add("NormalizedVersion", metadata["NormalizedVersion"].ToString()); + } var includes = new ResourceIncludes(resourceHashtable);