You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Marketing Cloud I have an Email with a Snippet block inside. I tried to deploy at the same time both the Email and Snippet components into a business unit that didn't have these two components previously. The deployment failed because when trying to deploy the Email it didn't find the snippet existing already in the Business Unit although it was in the same package to be deployed. If the code snippet was the first to be deployed I think the deploy action would not fail since it would be able to find it in Marketing Cloud.
When trying to deploy both assets using an automatic pipeline I had to manually run the process twice, the first time it would fail but deploy the code snippet and the second time it would deploy the email and update the code snippet.
1st run:
2nd run:
Expected Behavior
The deployment should be successful if both email and code snippets are inside the same package to be deployed. mcdev deploy command should detect and deploy first the code snippets and then at the end deploy the email. This way it code find existing already in the business unit the code snippet blocks.
Steps To Reproduce
In marketing cloud create an email with a snippet block inside
Use mcdev retrieve to get both assets, email and code snippet
Use mcdev deploy to deploy both assets into a business unit that doesn't have them already created -> it will fail but deploy the code snippet
Use mcdev deploy to deploy both assets again -> it will be successful because the code snippet was already created
Version
7.6.3
Environment
OS: w11
Node: v21.4.0
npm: 10.5.0
Participation
I am willing to submit a pull request for this issue.
Additional comments
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Current Behavior
In Marketing Cloud I have an Email with a Snippet block inside. I tried to deploy at the same time both the Email and Snippet components into a business unit that didn't have these two components previously. The deployment failed because when trying to deploy the Email it didn't find the snippet existing already in the Business Unit although it was in the same package to be deployed. If the code snippet was the first to be deployed I think the deploy action would not fail since it would be able to find it in Marketing Cloud.
When trying to deploy both assets using an automatic pipeline I had to manually run the process twice, the first time it would fail but deploy the code snippet and the second time it would deploy the email and update the code snippet.
1st run:
2nd run:
Expected Behavior
The deployment should be successful if both email and code snippets are inside the same package to be deployed. mcdev deploy command should detect and deploy first the code snippets and then at the end deploy the email. This way it code find existing already in the business unit the code snippet blocks.
Steps To Reproduce
Version
7.6.3
Environment
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: