Generate swagger:Postman to Swagger (OAS 2)

I followed the instructions to generate swagger:

  • Generate a Postman API key

  • Fetch the ID of the Collection you wish to convert. This can be found by selecting the Collection in Postman, navigating to the right-hand sidebar, clicking the Info tab (symbolized by the i icon), and copying the ID.

  • Update the Current value for the associated collection variables in this Collection with the Postman API key and Collection ID you just retrieved.

  • Run the Generate a Swagger Schema request.

I get the following error and I do not know what is missing:
{
“error”: {
“name”: “invalidUidError”,
“message”: “The specified uid is invalid.”
}
}