This appears to be a common issue but could not find a post with my particular spin on it. Like other people my package runs fine when ran inside of BIDS. In production the package is executed as a SQL Server Agent job and fails with the following error:
Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: The 'Microsoft.ACE.OLEDB.12.0' provider is not registered on the local machine.
The package takes an excel spreadsheet and does a bunch of work with it. It looks at the tabs and the data in the sheet then throws the data into a SQL Server table. Excel 2010 is installed on the server. I'm running BIDS on the same machine that the job is running on. Why does it run fine in bids but fail from the job?