title: The Script Task Is Corrupted - SSIS package
body: <p>I opened the SSIS package, and got following errors: </p>
  
  <blockquote>
    <p>Validation error: xyz: The Script Task is corrupted.</p>
    
    <p>Validation error: xyz: There were errors during task validation.</p>
  </blockquote>
  
  <p>I have overall 18 such errors.
  Do not have any idea what I should do.
  The point is - it is a <strong>productive</strong> package, which means it runs without errors.
  Why am I trying to edit it - it is not getting the most recent data.
  What I tried by now - I tried to google the error, and to search Stackoverflow's database with keywords 'The Script Task Is Corrupted'. Did not find anything that could help me move forward.</p>
  
  <p>By the way, this package is made long time ago, I do not know with which version of the tool... I have to analyse now why it is not getting the most recent data.</p>
  
  <p>Here is the screenshot of the task flow and errors:
  <img src="https://i.stack.imgur.com/X4wX9.jpg" alt="enter image description here"></p>
  
  <p>Here are the scripts the project contains:</p>
  
  <p><img src="https://i.stack.imgur.com/2RccZ.jpg" alt="enter image description here"></p>
  
  <p>And additionally the folder 'bin' hast the following file 'AuditLogsLoader.dtsx'.</p>
  
  <p>When I open the script (AuditLogsLoader.dtsx) not in BIDS but in Server Data Tools, and click on the script with the error in it, I get to Script Task Editor where I cannot do much, but to click on 'Edit Script'. But If I do that, I get the following error:</p>
  
  <p><img src="https://i.stack.imgur.com/eAHy4.jpg" alt="enter image description here"></p>
  
  <p>After trying Ray's suggestion, I got the following error:
  <img src="https://i.stack.imgur.com/01RDl.jpg" alt="enter image description here"></p>