How do you solve deploys where you need to deploy ...
# sdf
w
How do you solve deploys where you need to deploy a custom record that has a custom sublist+search? I get an error on the record-xml that the search doesn't exist if I have the record before the search in the deploy-file and the opposite if I reverse the order. It's obviously a circular reference, but shouldn't sdf be able resolve that since both are part of the deploy The deploy.xml looks like this
Copy code
<deploy>
    <configuration>
        <path>~/AccountConfiguration/*</path>
    </configuration>
    <objects>
        <path>~/Objects/records/customrecord_my_custom_record.xml</path>
        <path>~/Objects/searches/customsearch_sublist.xml</path>
    </objects>
    <translationimports>
        <path>~/Translations/*</path>
    </translationimports>
</deploy>
c
I’ve had an open defect for this for the last 3-4 years.
😬 1
m
It’s a problem we run into as well. I often have to script a sublist on before load
w
Ok, thanks for confirming that there is no solution. Just workarounds. It’s not that common that I run into these and it can be solved by deploying without the sublist on the record first, and then redeploying. I would probably go with the scripted sublist as well if it was part of some SuiteApp.
@CD do you have that defect# so I can get attached?
n
@Ali Syed (NS DevTools QA) are you aware of this issue?
c
@Watz Just checked, and they actually filed it as an enhancement. Enhancement 568674. "SDF Deploy > Support Circular Dependencies". I still see it as a bug 😞
a
This is under the domain of another team! But as far as I know if the references in deploy xml are put manually, then it checks in that order, and if its default like
/objects
, SDF tries to resolve the dependency. But you can ask an update on the issue, or more people can attach cases to same issue, so it will be priortized!
👍🏻 1
w
I do get a Warning in the validation. So it does identify it but cannot deploy it. I'll ping support.
j
We break objects into folders (shoutout to @dbarnett for his organization strategy) and control order of operation with
deploy.xml
for each sdf package: