Jump to content

Handling InvalidOperationException in while replacing datasource python


Ankush Verma 2

Recommended Posts

Can someone tell me how to handle theInvalidOperationException

I have 3 datasource to replace and I am first checking

if t.CanReplaceDataFlow():

t.ReplaceDataFlow(dataFlow)

not everytine all three datasources will be replacable so it throws theInvalidOperationException and exit out of the loop.

I want it to move to the next datasource and check if it is replacable.

 

for more information please check the below link:

https://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/TIB_sfire-analyst_api/topic=html/T_Spotfire_Dxp_Data_DataOperations_DataSourceOperation.htm&_ga=2.120485071.671893837.1594717541-1754718854.1589268763

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