Error: "Cannot import OpenAPI specification" when using REST Step Action in Workflow StudioIssue <!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } When attempting to import an OpenAPI spec file as described in our docs:https://www.servicenow.com/docs/bundle/yokohama-integrate-applications/page/administer/integrationhub/concept/open-api-integration.html User's may receive an error: Cannot parse the specification. Reason: attribute components.schemas.DataScopeCreateModel.default is not of type `string`, attribute components.schemas.DataScopeResponseModel.default is not of type `string`, attribute components.schemas.DataScopeUpdateModel.default is not of type `string`, attribute components.schemas.EntityRestrictedFields.default is not of type `string`, attribute components.schemas.ErrorsModel.default is not of type `string`, attribute components.schemas.GatewayBaseModel.default is not of type `string`, attribute components.schemas.GatewayCreateModel.default is not of type `string`, attribute components.schemas.GatewayResponseModel.default is not of type `string`, attribute components.schemas.RoleCreateModel.default is not of type `string`, attribute components.schemas.RoleModel.default is not of type `string`, attribute components.schemas.RoleUpdateModel.default is not of type `string`, attribute components.schemas.TriggerModel.default is not of type `string`, attribute paths.'/v2/enforcements/run'(post).requestBody.content.examples.Example name Running One or Many doesn't adhere to regular expression ^[a-zA-Z0-9\.\-_]+$, attribute paths.'/v2/queries/{query_id}'(patch).requestBody.content.examples.Example name Updating A Saved Query doesn't adhere to regular expression ^[a-zA-Z0-9\.\-_]+$, attribute paths.'/v2/queries/{asset_type}'(post).requestBody.content.examples.Example name Adding A Saved Query doesn't adhere to regular expression ^[a-zA-Z0-9\.\-_]+$ Symptoms<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } ### Errors seen in app node log: 2025-08-06 12:11:17 (319) Default-thread-6 6EC829CC1BD32E1481B662CAE54BCB5A txid=29faf50c1b57 Processor #2104030 /api/now/openapi Parameters ------------------------- sysparm_transaction_scope=af3609f11b4326d081b662cae54bcbd22025-08-06 12:11:17 (319) Default-thread-6 6EC829CC1BD32E1481B662CAE54BCB5A txid=29faf50c1b57 LocalhostTransactionLogger *** Start #2104030 /api/now/openapi, type: rest, user: [user-redacted]2025-08-06 12:11:17 (342) Default-thread-6 6EC829CC1BD32E1481B662CAE54BCB5A txid=29faf50c1b57 JSONSizeHandler WARNING *** WARNING *** JSONSizeHandler - large JSONObject@1407548665 instance created (2519992 bytes)2025-08-06 12:11:17 (870) Default-thread-6 6EC829CC1BD32E1481B662CAE54BCB5A txid=29faf50c1b57 tx_pattern_hash=-1228681254 TimingLogger #2104030 [REST API] RESTAPIProcessor : Cannot import OpenAPI specification. 2025-08-06 12:11:17 (872) Default-thread-6 6EC829CC1BD32E1481B662CAE54BCB5A txid=29faf50c1b57 tx_pattern_hash=-1228681254 LocalhostTransactionLogger *** End #2104030 /api/now/openapi referer: /$flow-designer.do, user: [user-redacted], render_size: 1629, total time: 0:00:00.560, processing time: 0:00:00.559, CPU time: 0:00:00.532, total wait: 0:00:00.001, semaphore wait: 0:00:00.001, SQL time: 0:00:00.002 (count: 6), Total memory allocated: 199.58MB, source: 71.246.205.6, type: rest, Speed: 0, ISS: false, origin scope: x_g_dh6_axonius_0, app scope: x_g_dh6_axonius_0 , method:POST, api_name:now/openapi, resource:now/openapi, version:Default, user_id:9241c6821b5744903aa6da49bc4bcb76, response_status:400 Facts<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Steps to reproduce:In flow designer:goto https://[instance]/now/workflow-studio/builder%3Ftable%3Dsys_hub_action_type_definition%26sysId%3D75adcdf11bc326d081b662cae54bcb5c- select REST step-under "Build Request" select "From OpenAPI specification"-select "Import OpenAPI"-select import manually and paste an openapi spec file provided by a third-party vendor/service-Click importRESULT: Errors as noted above in Symptoms and Issue description Release<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } All Releases Cause<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } This is caused by a product defect being tracked as PRB1929853 Resolution<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Customers are advised to manually create the REST step instead of using OpenAPI import functionality while ServiceNow takes the time to resolve this issue in the product.Alternatively, if customers are licensed with either IntegrationHub Professional or IntegrationHub Enterprise editions, they will be able to import the OpenAPI spec file from there and then they will be able to choose it in the REST step configuration within Workflow Studio. Please note not all customers will have access to IntegrationHub Professional or IntegrationHub Enterprise editions as they come at additional cost. Otherwise, customers must wait for the PRB to be fixed.