---
title: "Error with Publishing Sub-automation"
description: "Issue: Sub-automation was throwing the below error when user was trying to Publish any Sub-automation. Root cause: This error - 'Value cannot be null. Parameter name: source' is returned when there is a corrupted sub-automation published and due to ..."
url: "https://supportb.kinsta.cloud/docs/error/"
updated: "2023-08-21"
category: Errors
---

# Error with Publishing Sub-automation

**Issue: **Sub-automation was throwing the below error when user was trying to Publish any Sub-automation.![image.png](https://desk.zoho.in/api/v1/threads/24894000323442309/inlineImages/edbsnd0e07a8dac162f86b8654ce3fd99f72ce39c4eadebd7f0285e1cb2bac879e44acfc8ebf5e3026a4af887b4612902a17a0f42c3683fc4f3ab39eb5b469be3940e5f53c76c06dc0d9273d316f5aaa06218?et=18a4c2563e0&ha=14e5897935697288deeb2459f06f304dadc5f50ed9a4f0d7154e5db95a01e918&f=6.png)
**Root cause**: This error - 'Value cannot be null. Parameter name: source' is returned when there is a corrupted sub-automation published and due to this, all new sub-automations cannot be published.

**Solution:**We need to find the corrupted sub-automation and un-publish it to resolve the error.

![](https://static.zohocdn.com/zoho-desk-editor/static/images/info.png)Below is an example of a corrupted automation![](https://desk.zoho.in/galleryDocuments/edbsn1b1bdbb706c9a92dfd5e10cf039a0d835f5563dfe6f1d41e187565f648284ff0e9ea012e727b101b2f77123a08fe2911ed4bba394c428faed4595eb993258d3e)
![](https://static.zohocdn.com/zoho-desk-editor/static/images/file.png)This automation was published without any cards. It is possible that user must've selected the cards properly but on publishing it didn't save the cards.
