CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • SOLVED: xml files problem
Pages: [1]

Author Topic: SOLVED: xml files problem  (Read 1850 times)

happyHacker

  • Guest
SOLVED: xml files problem
August 26, 2009, 04:54:12 am
On my test system 3.0 Alpha I cannot get my xml files recognised. I get the error message below when I try to create a new case.

Configuration file could not be retrieved for case type = '7c HOUSING/PROPERTY Repairs/Care and Repair' (learn more...).

Now I have followed the rules for file names:

7c Housing Property Repairs Care And Repair = Case Type Name
7cHousingPropertyRepairsCareAndRepair.xml = File Name

The Linux permissions are set to root(owner)/office(group) 755.

The xml file is as follows (I thought it might be the "7c" but this has worked an a previous system):

Code: [Select]
<?xml version="1.0" encoding="iso-8859-1" ?>
<CaseType>
  <name>7c Housing Property Repairs Care and Repair</name>
  <ActivityTypes>
    <ActivityType>
      <name>Open Case</name>
      <max_instances>1</max_instances>
    </ActivityType>
    <ActivityType>
      <name>Follow up</name>
    </ActivityType>
<ActivityType>
      <name>Change Case Type</name>
    </ActivityType>
    <ActivityType>
      <name>Change Case Status</name>
    </ActivityType>
  </ActivityTypes>
  <ActivitySets>
    <ActivitySet>
      <name>standard_timeline</name>
      <label>Standard Timeline</label>
      <timeline>true</timeline>
      <ActivityTypes>
        <ActivityType>
          <name>Open Case</name>
          <status>Completed</status>
        </ActivityType>
        <ActivityType>
          <name>Follow up</name>
          <reference_activity>Open Case</reference_activity>
          <reference_offset>3</reference_offset>
          <reference_select>newest</reference_select>
        </ActivityType>
      </ActivityTypes>
    </ActivitySet>
  </ActivitySets>
</CaseType>
« Last Edit: September 02, 2009, 02:53:07 am by happyHacker »

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: xml files problem
August 27, 2009, 02:18:42 am
Hey,

Most probably, your case name ("7c HOUSING/PROPERTY Repairs/Care and Repair") shouldn't contain slashes.

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

happyHacker

  • Guest
Re: xml files problem
August 27, 2009, 03:32:50 am
Thanks Michał but I have removed all odd chars. These only exist in the Case Description (text field). The Case name and File Name are as I showed before.

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: xml files problem
August 27, 2009, 04:06:19 am
Hey,

Please check what's exact name of the case in the database.

select * from civicrm_option_value where option_group_id = (select id from civicrm_option_group where name like 'case_type');

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

happyHacker

  • Guest
SOLVED Re: xml files problem
September 02, 2009, 02:51:49 am
Having fiddled a bit I notice that it works if all (3) the instances of the title are the same. I have ne of the title words all upper case e.g. 1a HEALTH General. To get the system to reset I just logged off then on again.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • SOLVED: xml files problem

This forum was archived on 2017-11-26.