SDK Build Error: TS303 - View name can only contain alphanumeric characters

Brady Holliday
Tera Guru

When trying to use the now-sdk build. We are seeing this error related to record on the sys_ui_view table:

 

src/fluent/generated/sys_ui_view_f2426b7247c29e90a412225c416d4391.now.ts:8:9 - error TS303: View name can only contain alphanumeric characters

8 name: 'sys_popup,enterprise',

We are on the latest SDK Version (2.2.2). Any ideas, this seems like it was a system generated record when we were working within the platform, but it is preventing us from building and deploying via the SDK.

 

Thanks in advance!

1 ACCEPTED SOLUTION

Venkat79
ServiceNow Employee
ServiceNow Employee

Hi @Brady Holliday , Sorry for the late reply

You can add the directive `//@fluent-ignore` to your code to ignore the diagnostic error

example, 

 

Record({
  $id: Now.ID['new_view'],
  table: 'sys_ui_view',
  data: {
        title: 'Test',
       //@fluent-ignore
        name: 'test,popup',
    },
})

 




You can find similar directives in the docs : https://www.servicenow.com/docs/csh?topicname=servicenow-fluent.html&version=latest

-- Venkat

View solution in original post

1 REPLY 1

Venkat79
ServiceNow Employee
ServiceNow Employee

Hi @Brady Holliday , Sorry for the late reply

You can add the directive `//@fluent-ignore` to your code to ignore the diagnostic error

example, 

 

Record({
  $id: Now.ID['new_view'],
  table: 'sys_ui_view',
  data: {
        title: 'Test',
       //@fluent-ignore
        name: 'test,popup',
    },
})

 




You can find similar directives in the docs : https://www.servicenow.com/docs/csh?topicname=servicenow-fluent.html&version=latest

-- Venkat