I have an error validating an SDF customization pr...
# ask-stanley-ai
a
I have an error validating an SDF customization project:
Copy code
Validation failed.

An error occurred during custom object validation. (customrecord66)
Details: The object reference [scriptid=customrecord69.val_987654_1234567_sb2_123] is missing in the project and also not included in the dependencies list.
Details: The object reference [scriptid=customrecord69.val_987655_1234567_sb2_456] is missing in the project and also not included in the dependencies list.
File: ~/Objects/customrecord66.xml
How do I resolve this? When I use the Visual Studio Code extension's Add Dependencies To Manifest action, it adds a bunch of lines like this that cause other errors:
Copy code
<object>scriptid=customrecord69.val_987654_1234567_sb2_123|scriptid=customrecord69.val_987655_1234567_sb2_456</object>
c
AI generated answer (using internal Slack threads):
The error you're encountering is due to missing dependencies in your SDF project. The objects
customrecord69.val_189744_1234567_sb2_317
and
customrecord69.val_189745_1234567_sb2_828
are being referenced in your project but are not included in the project or the dependencies list. To resolve this, you need to ensure that all dependencies are included in your project. Here are the steps you can follow: 1. Check your project to see if the missing objects are indeed not included. If they are not, you need to add them to your project. 2. If the missing objects are part of another SuiteApp or bundle, you need to include that SuiteApp or bundle in the dependencies list in your manifest file. 3. If the missing objects are custom objects in your account, you need to include them in your project. You can do this by using the 'Add Dependencies to Project' action in the SDF toolkit in Visual Studio Code. 4. After adding the missing objects, you need to validate your project again. If there are still missing dependencies, repeat the steps above until all dependencies are included. Regarding the lines added by the 'Add Dependencies To Manifest' action, it seems like there might be an issue with the format of the lines. The correct format should be:
Copy code
<dependency type="object" scriptid="customrecord69.val_189744_1234567_sb2_317"/>
<dependency type="object" scriptid="customrecord69.val_189745_1234567_sb2_828"/>
If adding the dependencies manually still causes errors, it might be worth checking if there are any issues with the objects themselves, such as them being inactive or not existing in the target account. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.846971869
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.843831182
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832000077
Please provide your feedback on this answer.
a
Well that didn't work.
Copy code
Validation failed.

An error occurred during manifest validation.
Details: The manifest file is invalid at line 15, column(s) 86 - cvc-complex-type.2.4.a: Invalid content was found starting with element 'dependency'. One of '{applications, platformextensions, files, folders}' is expected..
File: ~/manifest.xml