Skip to main content
Solved

How to Make Sure a Python Caller ran First and Finish the job before Starting Other Part of Script


bhk
Contributor
Forum|alt.badge.img+3
  • Contributor

I have a disconnected Python Caller which is suppose to do some data cleaning in target dataset before Reading data from source and writing them into Target

 

Can you please let me know how I can make a sequence here before reading the data from source to ran and do the job of Python Caller First?

 

image 

I tried to connect/put the Python caller before Reader but as you know where is no way to add it before reader , out of the box

 

Thanks

Best answer by hkingsbury

You need to connect the output port of the python caller to the initiator port of the feature reader

image

View original
Did this help you find an answer to your question?

6 replies

hkingsbury
Celebrity
Forum|alt.badge.img+54
  • Celebrity
  • March 20, 2023

Use the output of your python caller to trigger a feature reader. Replacing the reader with this feature reader will then only read the source data once the python is finished


bhk
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • March 20, 2023

Thanks for quick reply hkingsbury but can you please let me know where I can set the output of python caller to trigger a feature reader?

imageWhen I click on Output what I am seeing is this window without any option to select the reader

 


hkingsbury
Celebrity
Forum|alt.badge.img+54
  • Celebrity
  • Best Answer
  • March 20, 2023

You need to connect the output port of the python caller to the initiator port of the feature reader

image


david_r
Celebrity
  • March 21, 2023

+1 for the answer by @hkingsbury​ . I'll just add that you probably want to add a Creator before the PythonCaller, in case that isn't obvious.


hkingsbury
Celebrity
Forum|alt.badge.img+54
  • Celebrity
  • March 21, 2023
david_r wrote:

+1 for the answer by @hkingsbury​ . I'll just add that you probably want to add a Creator before the PythonCaller, in case that isn't obvious.

Good point 😛


bhk
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • March 21, 2023

Thank you guys both, and you are right David, Creator is needed too


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings