Failed to resolve selected task sequence dependencies 0x80040104

Benoit LecoursOSD, SCCM6 Comments

I had to troubleshoot a problem where a Task Sequence return the error Failed to Run Task Sequence. SMSTS.log shows : Failed to resolve selected task sequence dependencies 0x80040104

Failed to resolve selected task sequence dependencies 0x80040104

Not big of a deal, this error oftently occurs. It just means that some package referenced by a task sequence is not distributed to the distribution point. This should be an easy fix… well not in this case.

Troubleshooting

When reading SMSTS.log we can find the problematic package ID. In this case KR100048 was the bad guy.

Failed to resolve selected task sequence dependencies 0x80040104

So I did the basic troubleshooting in those cases :

  • Open the SCCM Console
  • Navigate to Software Library\Operating Systems\Task Sequences
  • Click Reference tab at the bottom
  • Locate the problematic ID (KR100048)
  • Note the package Name (Windows x64 – HP ProBook 650 G1)

Failed to resolve selected task sequence dependencies 0x80040104

First problem : the Size column is 0.00MB ?!? I immediately thought that I’ve probably forgot to distribute this package on my distribution point.

  • Navigate to Software Library\Operating Systems\Driver Packages
  • Select the problematic package
  • Check distribution status

Surprise, it’s distributed ! I immediately thought that I had not drank enough coffee… ok maybe not.

Failed to resolve selected task sequence dependencies 0x80040104

I decided to go to my Task Sequence and disable the step that reference to this driver package.

Launch a new test, reboot my VM… Boom !  Same error in SMSTS.log (Failed to resolve selected task sequence dependencies 0x80040104) … but on a different driver package. So I disabled this one too… and another, and another…*fast forward 15 min later*… I ended up disabling all my driver packages except for 2 that didn’t gave the error if I kept it enabled.

Interesting. As I am a curious guy, I had to understand this one. So I next decided to check in the SCCM database the difference between all the “non working” and the “working” driver packages.

Analyzing the SMSPackage table, I found some discrepancies :

Select PkgID,Name,NewHash,SourceSize
From SMSPackages 
Where Name like 'Windows 7 x64%' and PackageType = '3'

Failed to resolve selected task sequence dependencies 0x80040104

Some driver packages has no value in NewHash and SourceSize (explaining the 0MB size in the console). The ones with no value are the problematic one.

I yet need to understand why some has values and other don’t as they’ve all been created the same way.

  • Right click the Drivers node in the SCCM console and choose Import
  • On the Add Drivers To Package step create a new package and uncheck the box Update distribution points when finished
  • Complete the import of the drivers
  • Repeat for all models
  • Select all driver packages that has just been created
  • Right click Distribute Content
  • Select my distribution points
  • Wait for the distribution to complete

I really doubt about the Update distribution points when finished check box so I decided to import a new driver and Check that box to see if the NewHash and SourceSize will be populated.

Failed to resolve selected task sequence dependencies 0x80040104

Running the same query to see if the database is updated :

Select PkgID,Name,NewHash,SourceSize
From SMSPackages 
Where Name like 'Windows 7 x64%' and PackageType = '3'

Failed to resolve selected task sequence dependencies 0x80040104

Let’s see what’s the console is saying about the content :

Obviously, it’s not distributed as I haven’t choose any DP.

Failed to resolve selected task sequence dependencies 0x80040104

Resolution

So to resume, the NewHash and SourceSize is updated by the Update distribution points when finished check box from the import driver wizard or by the Update Content command from the console. It’s mandatory to use one of both before using this driver package into a Task Sequence. A simple Distribute Content is not enough and your Task Sequence will fail.

The resolution for now :

#1 – Just update the content on the problematic driver package. After updating 1 problematic package, you can see that the database gets correctly updated

Failed to resolve selected task sequence dependencies 0x80040104

#2- Or always check the Update distribution points when finished check box when importing a new driver into a new driver package

This is a product bug as we expect to have the right information in the SCCM console. Don’t tell me that it’s distributed if it’s not ! 🙂

I have created a Connect feedback about this issue and update this post when I have something new to share.

Failed to resolve selected task sequence dependencies 0x80040104

6 Comments on “Failed to resolve selected task sequence dependencies 0x80040104”

  1. Fantastic! I blew up my database recently and had to restore, and re-import 90 gigs of Drivers. For some reason the task sequence no longer indicates which PkgID is not found, it just says that one of the packages is not found. Now i can see all the ones that are missing and stop my super slow process of elimination method. Thank you!

  2. This happens frequently when exporting and importing task sequences with all dependencies. Our solution is to add something to the comments section of the driver package then update distribution points, that usually fixes it.

  3. OMG! I’ve been working on this issue for the last two hours! Thank you for the fix. Adding a comment and updating DPs worked for me! WTH!??

  4. You can just add some info to the comments section of the driver package and redistribute, that fixes it too. we get it on SCCM 2012 SP1 when driver packages are imported from a full task sequence export.

Leave a Reply

Your email address will not be published. Required fields are marked *