Answers.Body: <p>First check the log files (<a href="https://civicrm.stackexchange.com/questions/15931/where-are-the-configandlog-and-templates-c-directories">Where are the &quot;ConfigAndLog&quot; and &quot;templates_c&quot; directories?</a>) and see if there's anything obvious happening there.</p>
  
  <p>Otherwise if you can debug in CRM/Activity/BAO/Activity.php in the copyExtendedActivityData() function that should help track it down. That's the function that gets called from _convertToCaseActivity() in CRM/Case/Page/AJAX.php to copy the custom data and attachments.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-17T18:51:41.220Z
Answers.Text: I checked those folders and didn't see anything related to this activity/process. 
  
  I did notice that if under the custom field>Edit Field> the option "
  View Only?  Is this field set by PHP code (via a custom hook). This field will not be updated by CiviCRM." If that field is checked then those fields do not pass data thru to the case activity. I tested with a new entry and can confirm that all of the editable fields are going thru.
  
  Prior to the update to 5.4-5.5.1 all of the fields would pass thru to the case regardless if that option was checked or not.
Answers.UserDisplayName: V3rmie
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-17T22:21:44.673Z
Answers.Text: Interesting. So you're saying a lot of the fields you collect are actually computed by some custom code and not directly editable?
Answers.UserDisplayName: Demerit
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-18T14:33:53.123Z
Answers.Text: The fields I had as "View Only" were populated via Caldera Forms using the Caldera Forms CiviCRM plugin to bring that data into Civi's custom fields. The fields are now transferring fine once I unchecked the "View Only" option for the data fields. So for now I have a work around but I'd like to be able to make those fields view only eventually.
Answers.UserDisplayName: V3rmie
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-17T16:40:52.160Z
Answers.LastActivityDate: 2018-09-17T16:40:52.160Z
Answers.UserDisplayName: Demerit
Body: <p>As the title states. Data that I enter into custom activity fields, is saved and </p>
  
  <p>I can view that saved data from the Activities tab in the Contact Summary. </p>
  
  <p>Like this:</p>
  
  <p><a href="https://i.sstatic.net/dzVgW.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/dzVgW.jpg" alt="Data Fields are Populated when viewed from Contact Summary"></a></p>
  
  <p>But after the activity is filed on a case most of the data fields appear empty when the data is viewed from within CiviCase. </p>
  
  <p><a href="https://i.sstatic.net/FQYAc.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/FQYAc.jpg" alt="Data Fields in the same Custom Activity Type are empty when filed on a case "></a></p>
  
  <p>These fields were working fine up until I updated the system to 5.4. It continues after I updated to CiviCRM 5.5.1. on WP version 4.9.8. </p>
  
  <p>How can I troubleshoot/fix this error? I am not able to duplicate this issue on the demo system found at <a href="https://dmaster.demo.civicrm.org/" rel="nofollow noreferrer">https://dmaster.demo.civicrm.org/</a>. </p>
  
  <p>Not sure if it is related but I'm not able to create a Public Profile to share as that is getting an error, "Identity is invalid, Certificate is Expired". </p>
  
Tags: <wordpress><custom-fields><civicase>
Title: Missing Custom Activity Field Data When the Activity is Filed on a Case.
ThreadText: # Missing Custom Activity Field Data When the Activity is Filed on a Case.
  
  (Asked by: username_0 on 2018-09-17)
  
  As the title states. Data that I enter into custom activity fields, is saved and
  
  I can view that saved data from the Activities tab in the Contact Summary.
  
  Like this:
  
  [![Data Fields are Populated when viewed from Contact Summary](https://i.sstatic.net/dzVgW.jpg)](https://i.sstatic.net/dzVgW.jpg)
  
  But after the activity is filed on a case most of the data fields appear empty when the data is viewed from within CiviCase.
  
  [![Data Fields in the same Custom Activity Type are empty when filed on a case ](https://i.sstatic.net/FQYAc.jpg)](https://i.sstatic.net/FQYAc.jpg)
  
  These fields were working fine up until I updated the system to 5.4. It continues after I updated to CiviCRM 5.5.1. on WP version 4.9.8.
  
  How can I troubleshoot/fix this error? I am not able to duplicate this issue on the demo system found at <https://dmaster.demo.civicrm.org/>.
  
  Not sure if it is related but I'm not able to create a Public Profile to share as that is getting an error, "Identity is invalid, Certificate is Expired".
  
  **Tags:** wordpress, custom-fields, civicase
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-09-17. Score: 1
  
  First check the log files ([Where are the "ConfigAndLog" and "templates\_c" directories?](https://civicrm.stackexchange.com/questions/15931/where-are-the-configandlog-and-templates-c-directories)) and see if there's anything obvious happening there.
  
  Otherwise if you can debug in CRM/Activity/BAO/Activity.php in the copyExtendedActivityData() function that should help track it down. That's the function that gets called from \_convertToCaseActivity() in CRM/Case/Page/AJAX.php to copy the custom data and attachments.
  
  > **Comments:**
  > **username_0**: I checked those folders and didn't see anything related to this activity/process.   I did notice that if under the custom field>Edit Field> the option " View Only?  Is this field set by PHP code (via a custom hook). This field will not be updated by CiviCRM." If that field is checked then those fields do not pass data thru to the case activity. I tested with a new entry and can confirm that all of the editable fields are going thru.  Prior to the update to 5.4-5.5.1 all of the fields would pass thru to the case regardless if that option was checked or not.  
  > **username_1**: Interesting. So you're saying a lot of the fields you collect are actually computed by some custom code and not directly editable?  
  > **username_0**: The fields I had as "View Only" were populated via Caldera Forms using the Caldera Forms CiviCRM plugin to bring that data into Civi's custom fields. The fields are now transferring fine once I unchecked the "View Only" option for the data fields. So for now I have a work around but I'd like to be able to make those fields view only eventually.  
  
  ---
  
  