Error no More Items 259 (0x103): Fix it With 4 Steps

Adjusting your code can fix this error

Reading time icon 2 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more

XINSTALL BY CLICKING THE DOWNLOAD FILE
A message from our partner

For fixing Windows errors, we recommend Fortect:

Fortect will identify and deploy the correct fix for your Windows errors. Follow the 3 easy steps to get rid of Windows errors:

  • Download Fortect and install it on your PC
  • Launch the tool and Start scanning your PC for Windows errors
  • Right-click on Start Repair to deploy the right fix for each error encountered during the scan
Download Now Fortect has been downloaded by 0 readers this month, rated 4.6 on TrustPilot

ERROR_NO_MORE_ITEMS is a developer error, and sometimes it comes in the form of 259 (0x103) No more data is available message. Although it’s unlikely you’ll encounter it, we’ll show you a couple of methods you can use to fix it.

How can I fix ERROR_NO_MORE_ITEMS?

1. Assign only necessary flags to SetupDiGetClassDevs

  1. Open your code.
  2. Locate the SetupDiGetClassDevs function.
  3. Change it to include DIGCF_PRESENT flag like this: 
    deviceInfoSet = SetupDiGetClassDevs(
    &classGuid,   
            NULL,         
            NULL,         
            DIGCF_PRESENT 
        );

    device info set

If you add additional flags, you might get the devices that aren’t there, which will cause this error to appear.

Other users reported that the DIGCF_PROFILE flag worked for them, so try using it as well.

2. Modify the INF file

  1. Open your INF file.
  2. Add the following:
    [USB_Install.Wdf] KmdfService=WINUSB, WinUsb_Install
    [WinUsb_Install] KmdfLibraryVersion=1.11

    usb install
  3. Save changes.
  4. Remember to generate GUID from Visual Studio and add it to the registry.

3. Install CfsDep2.inf separately

  1. On the PVS Server, run the following command: rundll32.exe setupapi,InstallHinfSection DefaultInstall 129 c:\Program Files\Citrix\Provisioning Services\drivers\cfsdep2.inf
  2. After doing that, check if the problem is resolved.

This can happen when upgrading from PVS 6.1 to PVS 7.6, but it might affect other versions as well.

4. Check your data

  1. If you’re sending less data than requested, you might get this error.
  2. This is especially true with overlapped operations.
  3. In cases such as these, a completion indication might be triggered causing the error.

ERROR_NO_MORE_ITEMS is somewhat rare, and unless you’re a developer, you most likely won’t encounter it. But if you do, don’t hesitate to try our solutions.

We covered similar errors in the past such as Error_Delete_Pending and ERROR_NOTIFICATION_GUID_ALREADY_DEFINED, so feel free to check them out.

More about the topics: error

User forum

0 messages