Jump to content

Errors when migrating Python scripts from Spotfire 7 to 10


David Donovan

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...