The Welkin Suite Forum

Error 2 You have to fill all required fields Error when save and deploy an object



Error 2 You have to fill all required fields Error when save and deploy an object

  • Please log in to reply

#1
windows version welkinsuite

bvanburen

    Posted 07 Dec 2017 and edited 31 Jan 2018

    When trying  to save and deploy an object i get this message

    Error 2 You have to fill all required fields C:\dev\SFProjects\CTDev\CTDev\src\objects\Contact.object 1 1


    This happens even with out making any changes.  

    It is suposed to work acording to this doc.

    https://docs.welkinsuite.com/?id=windows:how_does_it_work:declarative_development:sobjects_editor:fields_tab&s[]=save&s[]=


    What up?? 


    Thanks!

    bvb



    9 replies to this topic

    #2

    joachim.roesecke

      Posted 08 Dec 2017

      Hi

      We are having the same issue. It seems to be connected to the recently introduced functionality to include components from managed packages. Currently, this forces our administrators to switch to Salesforce to do anything related to objects.

      Regards, Joachim



      #3

      bvanburen

        Posted 08 Dec 2017

        Yeah there is i guess a related bug with deployment and run specified tests.  It pulls down all the manage package test cases but not not the local ones.   You then have to redeply a test class to run it. 


        Regards bvb



        #4

        kate.dulko

          Posted 08 Dec 2017

          Hi guys,


          Thank you for contacting us with this issue.

          Bruce, also we got your bug report and we can see that you are using the Bloom R11 version of the IDE.

          So this tells us that the issue is not related to the recently implemented support for managed packages, and this for sure is not related to the issue when you don't see local tests from your remote organization during the deployment to another org.


          May I please ask you to check if the issue is reproduced when you use the 'Deploy objects' functionality instead of the 'Save&Deploy' button. For this, please make any changes in the same object file, open the menu Project and select the 'Deploy objects' item.

          If you would get an error, please share it with us and, in addition, you can also send us a bug report with the attached log file directly from the IDE after this.

          Also, can you please tell me which types of fields are present in your 'Contact' object? This will help us greatly to understand what exactly can cause the error.


          One more question: is the issue reproduced for all your objects (standard and custom ones) or for some of them?


          We would greatly appreciate your help!


          Thank you,

          Kate




          Kate Dulko
          Customer Relations

          The Welkin Suite

          twitter: @KateDulko
          skype id: d_katerina
          e-mail: kate.dulko@welkinsuite.com

           

            


          #5

          bvanburen

            Posted 17 Dec 2017

            Using deploy object does nothing.  Its says chaned files not found.  


            Here is the account object that gets the error, the lead and contacts object get the same error.


            THere is also this error on the compact layout:

            <compactLayouts>
            <fullName>Account_Compact_Layout</fullName>
            <fields>Name</fields>
            <fields>Phone</fields>
            <fields>BillingAddress</fields>
            <fields>Website</fields>
            <fields>OwnerId</fields>
            <label>Account Compact Layout</label>
            </compactLayouts>


            Warning 1 The element 'http://soap.sforce.com/2006/04/metadata:compactLayouts' cannot contain child element 'http://soap.sforce.com/2006/04/metadata:fullName' because the parent element's content model is text only. C:\dev\SFProjects\CTDev\CTDev\src\objects\Account.object 73 10 CTDev


            <?<?xml version="1.0" encoding="UTF-8"?>
            <CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
            <actionOverrides>
            <actionName>CallHighlightAction</actionName>
            <type>Default</type>
            </actionOverrides>
            <actionOverrides>
            <actionName>CancelEdit</actionName>
            <type>Default</type>
            </actionOverrides>
            <actionOverrides>
            <actionName>Delete</actionName>
            <type>Default</type>
            </actionOverrides>
            <actionOverrides>
            <actionName>Edit</actionName>
            <type>Default</type>
            </actionOverrides>
            <actionOverrides>
            <actionName>EmailHighlightAction</actionName>
            <type>Default</type>
            </actionOverrides>
            <actionOverrides>
            <actionName>EnableCustomerPortalUser</actionName>
            <type>Default</type>
            </actionOverrides>
            <actionOverrides>
            <actionName>List</actionName>
            <type>Default</type>
            </actionOverrides>
            <actionOverrides>
            <actionName>ListClean</actionName>
            <type>Default</type>
            </actionOverrides>
            <actionOverrides>
            <actionName>New</actionName>
            <type>Default</type>
            </actionOverrides>
            <actionOverrides>
            <actionName>RequestUpdate</actionName>
            <type>Default</type>
            </actionOverrides>
            <actionOverrides>
            <actionName>SaveEdit</actionName>
            <type>Default</type>
            </actionOverrides>
            <actionOverrides>
            <actionName>SmsHighlightAction</actionName>
            <type>Default</type>
            </actionOverrides>
            <actionOverrides>
            <actionName>Tab</actionName>
            <type>Default</type>
            </actionOverrides>
            <actionOverrides>
            <actionName>View</actionName>
            <comment>Action override updated by Lightning App Builder during activation.</comment>
            <content>Account_Record_Page1</content>
            <formFactor>Large</formFactor>
            <skipRecordTypeSelect>false</skipRecordTypeSelect>
            <type>Flexipage</type>
            </actionOverrides>
            <actionOverrides>
            <actionName>ViewCustomerPortalUser</actionName>
            <type>Default</type>
            </actionOverrides>
            <actionOverrides>
            <actionName>WebsiteHighlightAction</actionName>
            <type>Default</type>
            </actionOverrides>
            <compactLayoutAssignment>Account_Compact_Layout</compactLayoutAssignment>
            <compactLayouts>
            <fullName>Account_Compact_Layout</fullName>
            <fields>Name</fields>
            <fields>Phone</fields>
            <fields>BillingAddress</fields>
            <fields>Website</fields>
            <fields>OwnerId</fields>
            <label>Account Compact Layout</label>
            </compactLayouts>
            <enableEnhancedLookup>true</enableEnhancedLookup>
            <enableFeeds>true</enableFeeds>
            <enableHistory>false</enableHistory>
            <fields>
            <fullName>AccountDomain__c</fullName>
            <caseSensitive>false</caseSensitive>
            <externalId>true</externalId>
            <inlineHelpText>Unque Account Domain of the Account a sdasd.</inlineHelpText>
            <label>Account Domain</label>
            <length>50</length>
            <required>false</required>
            <trackFeedHistory>false</trackFeedHistory>
            <type>Text</type>
            <unique>true</unique>
            </fields>
            <fields>
            <fullName>AccountNumber</fullName>
            <trackFeedHistory>false</trackFeedHistory>
            </fields>
            <fields>
            <fullName>AccountSource</fullName>
            <trackFeedHistory>false</trackFeedHistory>
            <type>Picklist</type>
            </fields>
            <fields>
            <fullName>AnnualRevenue</fullName>
            <trackFeedHistory>false</trackFeedHistory>
            </fields>
            <fields>
            <fullName>BillingAddress</fullName>
            <trackFeedHistory>false</trackFeedHistory>
            </fields>
            <fields>
            <fullName>BillingFrequency__c</fullName>
            <externalId>false</externalId>
            <inlineHelpText>Frenquency Customer will be billed - Term of Contract asd</inlineHelpText>
            <label>Billing Frequency</label>
            <required>false</required>
            <trackFeedHistory>false</trackFeedHistory>
            <type>Picklist</type>
            <valueSet>
            <restricted>true</restricted>
            <valueSetName>Billing_Frenquency</valueSetName>
            </valueSet>
            </fields>
            <fields>
            <fullName>Description</fullName>
            <trackFeedHistory>false</trackFeedHistory>
            </fields>
            <fields>
            <fullName>Fax</fullName>
            <trackFeedHistory>false</trackFeedHistory>
            </fields>
            <fields>
            <fullName>Industry</fullName>
            <trackFeedHistory>false</trackFeedHistory>
            <type>Picklist</type>
            </fields>
            <fields>
            <fullName>Jigsaw</fullName>
            <trackFeedHistory>false</trackFeedHistory>
            </fields>
            <fields>
            <fullName>Leopard_Id__c</fullName>
            <caseSensitive>false</caseSensitive>
            <externalId>true</externalId>
            <inlineHelpText>Id from Lepard Systems import. asd asd May not be unique on the next load - Should use account Domain to match</inlineHelpText>
            <label>Leopard Id</label>
            <length>10</length>
            <required>false</required>
            <trackFeedHistory>false</trackFeedHistory>
            <type>Text</type>
            <unique>true</unique>
            </fields>
            <fields>
            <fullName>Name</fullName>
            <trackFeedHistory>true</trackFeedHistory>
            </fields>
            <fields>
            <fullName>NumberOfEmployees</fullName>
            <trackFeedHistory>false</trackFeedHistory>
            </fields>
            <fields>
            <fullName>OwnerId</fullName>
            <trackFeedHistory>true</trackFeedHistory>
            <type>Lookup</type>
            </fields>
            <fields>
            <fullName>Ownership</fullName>
            <trackFeedHistory>false</trackFeedHistory>
            <type>Picklist</type>
            </fields>
            <fields>
            <fullName>ParentId</fullName>
            <trackFeedHistory>false</trackFeedHistory>
            <type>Hierarchy</type>
            </fields>
            <fields>
            <fullName>Phone</fullName>
            <trackFeedHistory>false</trackFeedHistory>
            </fields>
            <fields>
            <fullName>Rating</fullName>
            <trackFeedHistory>false</trackFeedHistory>
            <type>Picklist</type>
            </fields>
            <fields>
            <fullName>SFIQ_ID__c</fullName>
            <caseSensitive>false</caseSensitive>
            <externalId>true</externalId>
            <inlineHelpText>Unique ID for migrated accoounts from SF-IQ</inlineHelpText>
            <label>SFIQ_ID</label>
            <length>40</length>
            <required>false</required>
            <trackFeedHistory>false</trackFeedHistory>
            <type>Text</type>
            <unique>true</unique>
            </fields>
            <fields>
            <fullName>Segment__c</fullName>
            <externalId>false</externalId>
            <inlineHelpText>The market segment the lead/account occupies in the legal industry</inlineHelpText>
            <label>Segment</label>
            <required>false</required>
            <trackFeedHistory>false</trackFeedHistory>
            <type>Picklist</type>
            <valueSet>
            <valueSetDefinition>
            <sorted>false</sorted>
            <value>
            <fullName>SM - Small Legal</fullName>
            <default>false</default>
            <label>SM - Small Legal</label>
            </value>
            <value>
            <fullName>ML - Middle Legal</fullName>
            <default>false</default>
            <label>ML - Middle Legal</label>
            </value>
            <value>
            <fullName>BL - Big Legal</fullName>
            <default>false</default>
            <label>BL - Big Legal</label>
            </value>
            </valueSetDefinition>
            </valueSet>
            </fields>
            <fields>
            <fullName>ShippingAddress</fullName>
            <trackFeedHistory>false</trackFeedHistory>
            </fields>
            <fields>
            <fullName>Sic</fullName>
            <trackFeedHistory>false</trackFeedHistory>
            </fields>
            <fields>
            <fullName>SicDesc</fullName>
            <trackFeedHistory>false</trackFeedHistory>
            </fields>
            <fields>
            <fullName>Site</fullName>
            <trackFeedHistory>false</trackFeedHistory>
            </fields>
            <fields>
            <fullName>TickerSymbol</fullName>
            <trackFeedHistory>false</trackFeedHistory>
            </fields>
            <fields>
            <fullName>Type</fullName>
            <trackFeedHistory>false</trackFeedHistory>
            <type>Picklist</type>
            </fields>
            <fields>
            <fullName>Website</fullName>
            <trackFeedHistory>false</trackFeedHistory>
            </fields>
            <listViews>
            <fullName>AllAccounts</fullName>
            <columns>ACCOUNT.NAME</columns>
            <columns>ACCOUNT_SOURCE</columns>
            <columns>Segment__c</columns>
            <columns>ACCOUNT.TYPE</columns>
            <columns>ACCOUNT.EMPLOYEES</columns>
            <columns>ACCOUNT.ADDRESS1_CITY</columns>
            <columns>ACCOUNT.ADDRESS1_STREET</columns>
            <columns>ACCOUNT.ADDRESS1_ZIP</columns>
            <columns>ACCOUNT.ADDRESS1_STATE</columns>
            <columns>AccountDomain__c</columns>
            <filterScope>Everything</filterScope>
            <label>All Accounts</label>
            </listViews>
            <listViews>
            <fullName>MyAccounts</fullName>
            <filterScope>Mine</filterScope>
            <label>My Accounts</label>
            </listViews>
            <searchLayouts>
            <customTabListAdditionalFields>ACCOUNT.NAME</customTabListAdditionalFields>
            <customTabListAdditionalFields>ACCOUNT.ADDRESS1_CITY</customTabListAdditionalFields>
            <customTabListAdditionalFields>ACCOUNT.PHONE1</customTabListAdditionalFields>
            <lookupDialogsAdditionalFields>ACCOUNT.NAME</lookupDialogsAdditionalFields>
            <lookupDialogsAdditionalFields>CORE.USERS.ALIAS</lookupDialogsAdditionalFields>
            <lookupDialogsAdditionalFields>ACCOUNT.TYPE</lookupDialogsAdditionalFields>
            <lookupFilterFields>ACCOUNT.NAME</lookupFilterFields>
            <lookupFilterFields>CORE.USERS.ALIAS</lookupFilterFields>
            <lookupFilterFields>ACCOUNT.TYPE</lookupFilterFields>
            <lookupPhoneDialogsAdditionalFields>ACCOUNT.NAME</lookupPhoneDialogsAdditionalFields>
            <lookupPhoneDialogsAdditionalFields>CORE.USERS.ALIAS</lookupPhoneDialogsAdditionalFields>
            <lookupPhoneDialogsAdditionalFields>ACCOUNT.TYPE</lookupPhoneDialogsAdditionalFields>
            <lookupPhoneDialogsAdditionalFields>ACCOUNT.PHONE1</lookupPhoneDialogsAdditionalFields>
            <searchResultsAdditionalFields>ACCOUNT.NAME</searchResultsAdditionalFields>
            <searchResultsAdditionalFields>ACCOUNT.PHONE1</searchResultsAdditionalFields>
            <searchResultsAdditionalFields>CORE.USERS.ALIAS</searchResultsAdditionalFields>
            </searchLayouts>
            <sharingModel>ReadWrite</sharingModel>
            <webLinks>
            <fullName>GoogleMaps</fullName>
            <availability>online</availability>
            <displayType>link</displayType>
            <encodingKey>UTF-8</encodingKey>
            <hasMenubar>false</hasMenubar>
            <hasScrollbars>true</hasScrollbars>
            <hasToolbar>false</hasToolbar>
            <height>600</height>
            <isResizable>true</isResizable>
            <linkType>url</linkType>
            <masterLabel>Google Maps</masterLabel>
            <openType>newWindow</openType>
            <position>none</position>
            <protected>false</protected>
            <showsLocation>false</showsLocation>
            <showsStatus>false</showsStatus>
            <url>http://maps.google.com/maps?f=q&amp;hl=en&amp;q={!Account_BillingStreet}+{!Account_BillingCity}+{!Account_BillingState}&amp;om=1</url>
            </webLinks>
            <webLinks>
            <fullName>GoogleNews</fullName>
            <availability>online</availability>
            <displayType>link</displayType>
            <encodingKey>UTF-8</encodingKey>
            <hasMenubar>false</hasMenubar>
            <hasScrollbars>true</hasScrollbars>
            <hasToolbar>false</hasToolbar>
            <height>600</height>
            <isResizable>true</isResizable>
            <linkType>url</linkType>
            <masterLabel>Google News</masterLabel>
            <openType>newWindow</openType>
            <position>none</position>
            <protected>false</protected>
            <showsLocation>false</showsLocation>
            <showsStatus>false</showsStatus>
            <url>http://www.google.com/news?&amp;q={!Account_Name}&amp;btnG=Search+News</url>
            </webLinks>
            <webLinks>
            <fullName>GoogleSearch</fullName>
            <availability>online</availability>
            <displayType>link</displayType>
            <encodingKey>UTF-8</encodingKey>
            <hasMenubar>false</hasMenubar>
            <hasScrollbars>true</hasScrollbars>
            <hasToolbar>false</hasToolbar>
            <height>600</height>
            <isResizable>true</isResizable>
            <linkType>url</linkType>
            <masterLabel>Google Search</masterLabel>
            <openType>newWindow</openType>
            <position>none</position>
            <protected>false</protected>
            <showsLocation>false</showsLocation>
            <showsStatus>false</showsStatus>
            <url>http://www.google.com/search?q={!Account_Name}</url>
            </webLinks>
            </CustomObject>



            #6

            kate.dulko

              Posted 19 Dec 2017

              Hi Bruce,


              Thank you for sharing your file with us.


              We have found a reason for the error during deploying this file - there is missed required parameter for a 'BillingFrequency__c' field.

              This field has a picklist type and there is no <valueSetDefinition> for it and this parameter is required. Please add an information about it and deploy your object again.


              Please let us know if the IDE treats this parameter as required or empty by mistake, so we could correct this behavior.


              Thank you,

              Kate




              Kate Dulko
              Customer Relations

              The Welkin Suite

              twitter: @KateDulko
              skype id: d_katerina
              e-mail: kate.dulko@welkinsuite.com

               

                


              #7

              danny

                Posted 30 Jan 2018

                Hi, I am having the same issue, but in this case I am opening a new project, modifying the value of a picklist (for testing purposes) and i receive error: You have to fill all required fields. My file attached.



                #8

                kate.dulko

                  Posted 30 Jan 2018

                  Hi Danny,


                  Thank you for your post and for the attached file.

                  We have deleted your xml file since it could contain sensitive or business data, so it won't be publicly available.


                  May I please ask you to tell me what version of the IDE do you have?

                  We have updated the sObjects inspector's Fields editor to show a name of a field, which is missing any required details in TWS Bloom R14, so if you have Bloom R13 version of the IDE, please update it -you can use a 'Check for Updates' option from a Help menu.

                  If you have the latest TWS version, please let me know what exact changes have you done before the deployment.


                  Thank you,

                  Kate


                  Kate Dulko
                  Customer Relations

                  The Welkin Suite

                  twitter: @KateDulko
                  skype id: d_katerina
                  e-mail: kate.dulko@welkinsuite.com

                   

                    


                  #9

                  danny

                    Posted 30 Jan 2018

                    Thanks no worries, is just testing data, but ok. I am using Mac Blaze R9.


                    The steps that I did to reproduce were:

                    1-New solution

                    2-Added salesforce credentials

                    3-Metadata downloaded

                    4-Modified the name of a value in a picklist field

                    5-Deployed




                    #10

                    kate.dulko

                      Posted 31 Jan 2018

                      Hi Danny,


                      Thank you for your response and the provided details.


                      Now we see what is a reason for the issue.

                      Currently, the IDE doesn't get a value for a picklist field due to some API limitations - we are looking for a way to handle it. As a result, you can see that this parameter is empty in your xml file for a 'termometro_c' field.

                      To upload your changes in this file to your organization, you can delete this 'termometro_c' field with all the included entries in the xml file and deploy your object. After the deployment process, the IDE will retrieve object data from Salesforce automatically and you will get the file with all the fields and uploaded changes.


                      Please let me know if this helps to solve the issue or if you have any additional questions.

                      We will continue to investigate how to work on such cases.


                      Thank you,

                      Kate


                      Kate Dulko
                      Customer Relations

                      The Welkin Suite

                      twitter: @KateDulko
                      skype id: d_katerina
                      e-mail: kate.dulko@welkinsuite.com

                       

                        





                      Boost Your Productivity. Get Started Today

                      Try Free Trial