This question already has an answer here:
While working with the ModelBuilder, I added 2 columns to the data. After you have done "Summary Statistics" according to the GridID, you know the output product in tabular form. I wanted to print the table with the join based on the common column GridID's. But there is a problem here. During the Add Join process, the model wants the input product to be in Table Of Contents. So it want to data as a "parameter". When I run the model from the inside, I say "Add to Display" to the latest product. Thus, the model sees it and accepts it as input. But when I run the model from the outside, it gives error because there is no input / output product in "Table of Contents". How can i solve it?