Importing a Postman environment to ReadyAPI
Hi all,
I've installed the 'ReadyAPI Postman Plugin' and I've successfully downloaded 2 out of the 3 environment files that we use in Postman to ReadyAPI. However I'm getting the error below when trying to import the final environment file:
"Cannot import Postman environment.
Cannot invoke "com.eviware.soapui.model.environment.Property.setValue(String)" because the return value of "com.eviware.soapui.model.environment.EnvironmentImpl.getPropertyByName(String)" is null"
I would like the endpoints to also be copied, so I've ticked the 'Copy endpoints from 'No Environment' option, however it's worth noting that the error appears regardless of whether that option is ticked or not.
The 'Custom Project Properties' appear to be successfully downloaded, however no endpoints or properties have been imported and the new environment isn't available for selection in the main environment drop down list.
I've able to upload this file to Postman and Bruno without any issues so any idea on what could be causing this error will be gratefully received (I'm in the process of reviewing the technology so I'm currently using the 14 day trial, so a speedy reply will also be appreciated :) ).
Many thanks,
Paul.
Without the actual file all I can do is guess, but...!
Try this:- Re-export that problem environment from Postman:
Use a standard JSON export (not a .env or VS Code format).
• Make sure the file has a values array with objects like { "key": "...", "value": "...", "enabled": true }. (Some newer exports add fields like type/secret—they’re fine in the latest plugin but can break older ones.)- Open the JSON and normalize the variables:
• Remove duplicates (same key appearing more than once).
• Delete any entries with a blank/whitespace key, or where key is missing.
• Trim leading/trailing spaces from key names.
• Temporarily remove variables with exotic type values (e.g., secret) if you’re not 100% sure you’re on plugin ≥3.1.0. Re-add them in ReadyAPI after import. (3.1.0+ should handle them; older builds won’t.)- Make sure you’re on the current plugin & a supported ReadyAPI:
• ReadyAPI ≥ 3.60 and Postman Plugin 3.1.x. Update via Integrations → ReadyAPI Postman Plugin- Retry the import with Copy endpoints from ‘No Environment’ unchecked first. If it imports cleanly, then go back to Environments in ReadyAPI and set endpoints for that env. (Endpoints live in ReadyAPI environments alongside properties.)
If it still fails, import the Postman collection first, then import the environment (so the project/entities exist), which can help the mapping step.
Let me know how that goes!