Hi all - I'm trying to deploy a set of custom reco...
# suitescript
b
Hi all - I'm trying to deploy a set of custom records from Sandbox to Production, using Webstorm. I got stuck on an error, but the 4 records were created in Production - largely without the custom fields. I selected the Stop on Error option. The error is:
Copy code
An error occurred with resolving custom object references.
Details: The script id '[scriptid=customrecord_che_package.custrecord_package_trx_id]' referenced by the field 'sourcefrom' in subrecord custrecord_che_pkg_purchase_trx (customrecordcustomfield) could not be resolved.
File: ~/Objects/customrecord_che_job_posting.xml
Object: customrecord_che_job_posting.custrecord_che_pkg_purchase_trx (customrecordcustomfield)
I'm not sure how to resolve it. Thoughts? Is it a bad idea to manually create those two fields in production and then continue on with webstorm to create the remaining fields on the objects? Thanks in advance!
a
does your
custrecord_package_trx_id
field reference another custom record that's part of the deployment? you might just be able to rearrange the objects in your directories... create sub directories to control the order they're created, or create a non-deploy directory outside of objects, move the problem record to that folder, then deploy once, then move it back and deploy again
actually you said the 4 records created but are missing fields?... you may just be able to re-deploy now they already exist and it might...just work
b
custrecord_package_trx_id
- is a list/record field, using Transactions - so not part of the custom record deployment
custrecord_che_pkg_purchase_trx
is also a list/record based on Transactions, but sourced by
custrecord-package-trx-id
I didn't realized you could reorder the objects or move them. I will try that. I can see from the current order why this would be an issue. I did inadvertently deploy multiple times and didn't realize initially that the records had been created before the error. Thank you!
👍 1
@Anthony OConnor - my apologies for not coming back here the other day. I used your suggestion to move records in and out of the object folder. I wasn't able to change the order within the object folder and it didn't seem to be a simple preference to set - so I'll look into that further another time. But I was able to successfully deploy the four objects. Two of them had references to each other, so I ended up creating two fields manually, and something I did created a duplicate record, but I'm calling it a success. Thanks for your help!
👍 1