You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are introducing versions to our APIs and going from working "API Management - Create or update API" task (v3.3.1) to a new task "API Management - Create or update versioned API". (v5.0.1)
However, we receive somewhat generic error message
You cannot call a method on a null-valued expression.
Hi,
We are introducing versions to our APIs and going from working "API Management - Create or update API" task (v3.3.1) to a new task "API Management - Create or update versioned API". (v5.0.1)
However, we receive somewhat generic error message
You cannot call a method on a null-valued expression.
Here is what works
displayName: 'API Management - Create/Update Member Demo Api'
inputs:
ConnectedServiceNameARM: 'XYZ'
ResourceGroupName: '$(apimResourceGroupName)'
ApiPortalName: '$(apimName)'
UseProductCreatedByPreviousTask: false
product1: '$(apimProductName)'
OpenAPISpec: 'v3'
Format: 'json'
Authorization: 'OAuth'
oauth: 'okta-integration'
SwaggerPicker: 'Url'
swaggerlocation: 'http://$(lbIP)/swagger/v1/swagger.json'
targetapi: '$(apiName)'
pathapi: '$(apiURLSuffix)'
MicrosoftApiManagementAPIVersion: '2018-01-01'
And here is new task (API versioning)
inputs:
ConnectedServiceNameARM: 'XYZ'
CloudEnvironment: 'https://login.windows.net/'
ResourceGroupName: 'npduseaintgrg'
ApiPortalName: 'npduseaintgapimce18c1dff3'
OpenAPISpec: 'v3'
Format: 'json'
UseProductCreatedByPreviousTask: true
Authorization: 'OAuth'
oauth: 'okta-integration'
SwaggerPicker: 'Url'
swaggerlocation: 'http://$(lbIP)/swagger/v1/swagger.json'
targetapi: '$(apiName)'
version: 'v1'
NewRevision: false
scheme: 'Header'
VersionHeader: 'X-Api-Version'
MicrosoftApiManagementAPIVersion: '2019-01-01'
Thank you for you time and attention to this. Let me know if I can provide any more details/logs.
Regards
Sergei
The text was updated successfully, but these errors were encountered: