You need to sign in to do that
Don't have an account?
law
Failed Component Deployment Results
Hello
Below are the results of the failed deployment validations. in the first one the column does exist.
Any help would be greatly appreciated.
Lawrence
API NameTypeLineColumnProblem
Book_of_Business | Apex Class | 33 | 47 | No such column 'Asset_Total__c' on entity 'Product_Detail__c'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. |
TestBookofBusinessController | Apex Class | 32 | 36 | Invalid type: Book_of_Business |
DD_BOB | Visualforce Page | Apex class 'Book_of_Business' does not exist | ||
Book_of_Business__c | Custom Object Definition | dd_bob does not exist or is not a valid override for action Accept. | ||
Product_Detail__c | Custom Object Definition | Cannot set ControlledByParent on a CustomObject without a MasterDetail relationship field |
The error message is saying that Asset_Total__c does not exist IN PRODUCTION (assuming you're moving into production). That last error message looks like you changed the relationship between Product_Detail__c and another object in sandbox. Here's the thing: you can't use a deployment to alter a master-detail relationship in the target org. It's just one of those things. You'll have to go into the target org and manually make that change, and then re-deploy. At that point, all of these errors will probably go away, because they all appear to depend on Product_Detail__c getting updated, and it's not due to a master-detail relationship.
Hope this helps,
Hello and Thank You for your reply
It is correct that the field Asset_Total__c does not exist IN PRODUCTION because it is a field in the Product_Detail object I am trying to deploy.
Also , I am not trying to alter a master-detail relationship in the target org. The objects that make up the relationship are also part of the deployment.
As such they do not exist in production yet.
I think I am missing something. Why is it giving me errors due to items not existing in production when the deployment is to put the same items in production.
Thanks in Advance
I have experienced this in the past and this is what i did -
Created two change sets - first change set with the Custom Object and fields, second change set with visual force page and Apex classes. After deploying the first change set succesfully, deployed the second.
Hope this helps.
Thank you for your response
However, I still receive the error messages above for the two objects when I deploy only the objects .
strange!! How are you deploying- Change set or IDE?
If deploying through Chnage Set, try deploying through IDE.
I do not see any objects in the Force.com IDE
I have added the Custom Objects to my IDE and attempted to deploy. I am still receiving the following error. I only have a custom VF page called "DD_BOB".
Adding the page to the deploment does not seem to help.
# Deploy Results:
File Name: objects/Book_of_Business__c.object
Full Name: Book_of_Business__c
Action: NO ACTION
Result: FAILED
Problem: dd_bob does not exist or is not a valid override for action Accept.
The resolution is to add the "MasterDetail relationship field" into the change set, even if you haven't changed it or the Sharing / OWD.
I'm assuming if you don't have the custom field in your package / object in the IDE either, then you'd probably get the same error.