Shivaganga B Posted July 3, 2020 Share Posted July 3, 2020 This code is causing 'NoneType' object has no attribute 'replace'. Please help me debug. from Spotfire.Dxp.Data.Collections import * from string import * DocProp=Document.Properties['MyProperty'] xyz=DocProp.replace(", ",",") xyz=xyz+",a,b,c" li = list(xyz.split(",")) Document.Data.Tables['Data_table'].Columns['Column_Name'].Properties.SetCustomSortOrder(li) Link to comment Share on other sites More sharing options...
Gaia Paolini Posted July 14, 2020 Share Posted July 14, 2020 I guess DocProp is empty or does not exist. Without the value of DocProp and a bit of context I cannot help more. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now