progressivetech / net.ourpowerbase.sumfields

The Summary Fields extension creates read-only custom data fields that extend Contact and are automatically populated with up-to-date totals such as total lifetime contributions, last contribution amount, last attended event, etc.
Other
8 stars 29 forks source link

Unable to update summary fields #6

Closed logofakt closed 8 years ago

logofakt commented 8 years ago

Hi Jamie,

on Drupal 7.x I'm running a CiviCRM version 4.5.8 and 4.6.11. On both I updated Summary Fields. Unfortunately the fields I selected are not calculated / recalculated. Instead I get an error:

"Failed to get the custom groups parameters Can't add new fields"

The actual log is attached.

What I've done by now: Recreated the desired fields in aministration | data and views | summary fields which caused the error above Execute the job manualy which leads to the log entry shown in the attached pdf file Deactivated the extension, deinstalled it, installed it again and activated it, looked for user's rights Going again thru the two steps above Nothing did help.

I like your extension very much so I hope you will help me to get over this issue.

Regards Christian Lauer

19-01-2016 23-11-26.pdf

jmcclelland commented 8 years ago

Hi Christian,

The sumfields extension should automatically create the custom data group and fields (and remove them when uninstalled) - so you should never need to manually create them yourself.

Once the extension creates the custom data table, it records the custom data group id in a setting variable.

Whenever you adjust your settings (to change which summary fields you want - or the first time you generate your fields), sumfields will try to retrieve this custom data group id. If it is not able to properly retrieve this id, then you will get the message you are reporting.

Therefore... I suspect that something is going wrong at installation time.

I would suggest:

logofakt commented 8 years ago

Hi Jamie,

thanks for your help, it works.