Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Deploy action failing for Email when code snippet doesn't already exist in Marketing Cloud #2029

Open
1 of 2 tasks
anasilva105 opened this issue Jan 30, 2025 · 0 comments
Labels
bug Something isn't working NEW not yet analyzed new issues get this label

Comments

@anasilva105
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

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:

Image

2nd run:

Image

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

  1. In marketing cloud create an email with a snippet block inside
  2. Use mcdev retrieve to get both assets, email and code snippet
  3. 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
  4. 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

@anasilva105 anasilva105 added bug Something isn't working NEW not yet analyzed new issues get this label labels Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working NEW not yet analyzed new issues get this label
Projects
None yet
Development

No branches or pull requests

1 participant