Jump to content

Spy Push for Asset Trees removed existing worksheets


Recommended Posts

Posted

Hi all,

Just want to check if I am seeing something unexpected.

I had a workbook with 6 existing worksheets.

After I pushed an Asset Tree to this workbook, I had the new worksheet created by the push, but no other worksheets.

Previous items created by anaylsis in this workbook still existed.

Is this expected behaviour? I didn't see it called out in the documentation.

 

Thanks.

 

 

  • Seeq Team
Posted

Hello John,

Sorry for the delay in responding. This is not expected behavior. When you have a chance, please document this as well as you can in an "IT support" ticket by going to https://support.seeq.com/, then clicking on Contact Support at the top right. This is something that our support team will want to diagnose. Thank you!

John

  • 4 weeks later...
  • Seeq Team
Posted (edited)

Hello,

This should be fixed in SPy version 193.17 and above. You can run spy.upgrade() or pip install seeq-spy to get the latest version immediately.

As a workaround without updating, this can be prevented by specifying the ID of the workbook or including the folder path (E.G. workbook='Folder 01 >> Analysis Jan 1...') instead of using just the workbook's name.

 

You can get your incorrectly trashed worksheets back using the below code block.

from seeq import sdk, spy
items_api = sdk.ItemsApi(spy.client)
wb = spy.workbooks.pull('https://your.seeq.host/workbook/.../worksheet/...', include_archived=True, include_referenced_workbooks=False)
for worksheet in wb[0].worksheets:
    if 'Archived' in worksheet and worksheet['Archived']:
        items_api.delete_property(id=worksheet.id, property_name='Archived')
        print(f'Unarchived worksheet "{worksheet.name}" {worksheet.id}')

 

Please let me know if you encounter any problems with that.

Edited by Dak Kanner

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...