David Donovan Posted February 6, 2020 Share Posted February 6, 2020 We are migrating from Spotfire servers fom 7.7 to 10.3. We use a few python scripts but I am now getting errors: from Spotfire.Dxp.Application import DocumentMetadata # Get the library name of the current Spotfire analysis dmd = Application.DocumentMetadata path = dmd.LoadedFromLibraryPath analysis = path.replace("/Initiatives/Reports/","").upper().strip() print 'analysis: ' + analysis Traceback (most recent call last): File "Spotfire.Dxp.Application.IronPython20", line unknown, in ExecuteForDebugging File "", line 18, in AttributeError: 'NoneType' object has no attribute 'replace'Line 18 being the analysis line. Is there a different way to get get the analysis path in Spotfire 10 Link to comment Share on other sites More sharing options...
Shandilya Peddi Posted February 6, 2020 Share Posted February 6, 2020 I tested the script in 10.3 and it works for me. Is the analysis you are executing this script in is saved in library 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