• Welcome to Support Forum: Get Support for Patch My PC Products and Services.

Application Error - Object variable or With block variable not set.

Started by vidockq, August 12, 2020, 01:39:06 AM

Previous topic - Next topic


We have had this error "Object variable or With block variable not set." appear on multiple applications in the past 3 weeks.
We had to delete the application and then redeploy it to fix it.

Can you help us with more information in regards to this error?

Andrew Jimenez (Patch My PC)


Can you let me know exactly where you are seeing this error? In the applications themselves? In the PatchMyPC.log?


Hello Andrew,

The only error we get in PatchMyPc.log is the following:
Component: Worker
Thread ID: 6
Entry: An error occurred while updating a package in SCCM: Object variable or With block variable not set. [System.NullReferenceException]

We saw the error poping in the notification mail sent when publishing occurs.
The latest one was today.

This is for ConfigMgr Applications only, with the settings Update exisitng applications metadata,deployment type... (Default)

Andrew Jimenez (Patch My PC)

Could you please open a support case with us here: https://patchmypc.com/technical-support and send in the patchmypc.log? We'll take a deeper look at it and see if we can figure out what is going on here. Thanks!