function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ImposterImposter 

Managed package failures causing deployment to fail

Hey Geeks,

I am trying to deploy a page layout from my dev org to a production org.

 

The production org contains a managed package (installed from appExchange).

While running all tests, the managed package shows 3 test failures. There is no other custom code in the org.

 

My deployment is failing due to package errors. I believed the managed packages errors, don't affect local deployments. Has this been modified in latest release ?

 

It would be great, if somebody can confirm !

 

Thanks

 

 

 

bob_buzzardbob_buzzard

I believe it has always been the case that all tests have to pass in order for a deployment to be successful, including those from a managed package.  Usually this means something has changed on the configuration side to invalidate the managed package tests, a new validation rule or required field for example.  If you can find out what is causing the failures you can temporarily disable that to allow your deployment to succeedand then enable it again.

ImposterImposter

Hey Bob,

Thanks for the response.

 

Managed package is reporting failures, related to some asserts.

But keeping that point aside, I distinctly remember doing successful deployments on production orgs , with code failures from managed packages.

I tried using ANT, with runAllTests = false, and rollbackOnError = false, but with no success.

 

 I suspect I have missed documentation related to this change in behavior.