-
Notifications
You must be signed in to change notification settings - Fork 36
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] <Deployment fail at step caching Subtypes with error Cannot read properties of undefined (reading 'map')> #1932
Comments
Apologies, I have moved my question to the discussions section as it is more appropriate there. You can close this issue, as it is not a bug in your tool but rather an issue I am seeking help with regarding my SFMC instance. |
i wanna treat it as a bug for now. debugging this will require some time and a lot more detailed logs. The best way is to add For now, could you try if the same issue happens if you run |
Hello, Thank you for your reply. I was a bit busy last week and just had the chance to test the command. For your reference, I was able to successfully retrieve folder data using the command without any errors: However, when I run the
The debug output shows that the SOAP API call to retrieve folders (DataFolder) returned an OverallStatus of OK, but no actual data appears in the response body. This suggests that the API call might not have retrieved the expected data. I suspect the issue could be related to shared_data or shared_dataextension folders. Unfortunately, I haven't been able to trace which specific file in those folder of my instance is causing the error. Here’s my log (with sensitive information removed): My log as I removed some sensitive information
I wonder if there is a way to add a parameter to the command in order to skip caching or retrieving data from these folders when executing commands? |
Hmmm, strange. No, there is no such option because mcdev aims to work across BUs and for that to work needs to resolve sfmc internal (object) ids to readable values during retrieve and back into BU-local (object) ids during deployment. That's what the caching is for: it allows us to get existing folders, including their ids, to find the correct folder ID to include in the request body of your query deployment callout. Thereby, the query will end up in a folder structure on the target BU that mimics what was present on your source BU. Sometimes, a BU is broken from the start, as in, when it gets provisioned (created), it does not have all necessary default folders. I've seen this happen ONCE so far. My guess is that something similar happened here. You shared the partial request/response body but that's not detailed enough for an analysis. next steps:
Note: If the response body includes sensitive folder names, by all means, replace those words with "xxx" but please leave the rest untouched. Ideally, this should have only cached query folders anyways, making the response rather short. I could then compare it with what's returned for a blank new BU on my test server. Worst case, we could set up a call in the new year, but I think the logs will suffice. |
Is there an existing issue for this?
Current Behavior
Hello MC Dev Team,
I’m new to both your tool and Salesforce Marketing Cloud, and I would greatly appreciate your help with the issue I’m encountering.
Goal
My goal is to deploy changes to an SQL query file and the content of an automation verification step to Marketing Cloud by running the
deploy
command, as well as thefixedKeys
command for queries and DataExtensions as the files are named using external keys. However, I have been unable to successfully execute these commands. Below is an image of the error I encountered:Note: A similar error was displayed during different command processes.
Issue
The problem seems to be related to DataExtensions and specifically subtypes such as:
Whenever I run commands that involve processing or caching these subtypes (e.g., mcdev deploy or mcdev fixedKeys), the process fails. This issue occurs for resources such as:
Details
dataExtension
andquery
, from my Marketing Cloud instance to local folder using the command:I've noticed encountered this error in the log:
Interestingly, if I run the command specifically for DataExtensions or query, it retrieves those resource successfully without errors, even the caching step is went through, no error log was displayed:
deploy command:
fixKey command:
Same error was displayed: error: mcdev.deploy failed: Cannot read properties of undefined (reading 'map')
Could you please advise on how to resolve this issue? Specifically:
Expected Behavior
No response
Steps To Reproduce
Version
9.5.0
Environment
Participation
Additional comments
No response
The text was updated successfully, but these errors were encountered: