You must file a Form 1042-S even if you did not withhold tax under chapter 3 because the income was exempt from tax under a U.S. tax treaty or the Code, including the exemption for income that is effectively connected with the conduct of a trade or business in the United States, or you released the tax withheld.