[SOLVED] backup script not backing up Dynamic Fields values?
Moderator: crythias
-
- Znuny newbie
- Posts: 49
- Joined: 24 Feb 2012, 09:59
- Znuny Version: 5.0.16
- Location: Barcelona, Spain
- Contact:
[SOLVED] backup script not backing up Dynamic Fields values?
Hi,
I was doing a restore test of our OTRS 3.3.7 and everything went right. I couldn't get the Restore script to work so I ended up creating a new DB and restoring the dump. The only problem i found is that some the values of the Dynamic Fields were not backed up for some reason. That means the Dynamic Field and their properties are shown but when going inside I cant see the values.
How can I fix this?
Thanks!
David
I was doing a restore test of our OTRS 3.3.7 and everything went right. I couldn't get the Restore script to work so I ended up creating a new DB and restoring the dump. The only problem i found is that some the values of the Dynamic Fields were not backed up for some reason. That means the Dynamic Field and their properties are shown but when going inside I cant see the values.
How can I fix this?
Thanks!
David
Last edited by blastik on 12 Dec 2014, 16:31, edited 1 time in total.
OTRS 5
Ubuntu with MySQL
Authenticating users & agents via LDAP
Ubuntu with MySQL
Authenticating users & agents via LDAP
-
- Znuny newbie
- Posts: 49
- Joined: 24 Feb 2012, 09:59
- Znuny Version: 5.0.16
- Location: Barcelona, Spain
- Contact:
Re: backup script not backing up Dynamic Fields values?
Anybody please? 

OTRS 5
Ubuntu with MySQL
Authenticating users & agents via LDAP
Ubuntu with MySQL
Authenticating users & agents via LDAP
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: backup script not backing up Dynamic Fields values?
database backup should account for this. There's no ability to tell you what's the problem in your environment. Either the database backup has the values or it doesn't.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 49
- Joined: 24 Feb 2012, 09:59
- Znuny Version: 5.0.16
- Location: Barcelona, Spain
- Contact:
Re: backup script not backing up Dynamic Fields values?
Thank for your answer. The values contain Scandinavian characters. Maybe is because of that?
I need to migrate OTRS to a new server. Do you recommend me to introduce the missing values manually using the OTRS GUI?
D.
I need to migrate OTRS to a new server. Do you recommend me to introduce the missing values manually using the OTRS GUI?
D.
OTRS 5
Ubuntu with MySQL
Authenticating users & agents via LDAP
Ubuntu with MySQL
Authenticating users & agents via LDAP
-
- Znuny newbie
- Posts: 49
- Joined: 24 Feb 2012, 09:59
- Znuny Version: 5.0.16
- Location: Barcelona, Spain
- Contact:
Re: backup script not backing up Dynamic Fields values?
I answer myself... other dynamic fields didn't have Scandinavian characters into the values and they were not restored...
OTRS 5
Ubuntu with MySQL
Authenticating users & agents via LDAP
Ubuntu with MySQL
Authenticating users & agents via LDAP
-
- Znuny newbie
- Posts: 49
- Joined: 24 Feb 2012, 09:59
- Znuny Version: 5.0.16
- Location: Barcelona, Spain
- Contact:
Re: backup script not backing up Dynamic Fields values?
Cyntias,
I've checked the database and the values are there. What could have happened?
I've checked the database and the values are there. What could have happened?
OTRS 5
Ubuntu with MySQL
Authenticating users & agents via LDAP
Ubuntu with MySQL
Authenticating users & agents via LDAP
-
- Znuny newbie
- Posts: 49
- Joined: 24 Feb 2012, 09:59
- Znuny Version: 5.0.16
- Location: Barcelona, Spain
- Contact:
Re: backup script not backing up Dynamic Fields values?
OTRS 5
Ubuntu with MySQL
Authenticating users & agents via LDAP
Ubuntu with MySQL
Authenticating users & agents via LDAP
-
- Znuny newbie
- Posts: 49
- Joined: 24 Feb 2012, 09:59
- Znuny Version: 5.0.16
- Location: Barcelona, Spain
- Contact:
Re: backup script not backing up Dynamic Fields values?
Okay I found the problem.
For some reason the field name "config" in the "dynamic_field" table had the following format in the old system (MySQL version 5.1.73):
The new database (MySQL version 5.5.40) didn't like that, even though the collation was the same as the old. So I had to add ' as follows:
Then run the otrs.DeleteCache.pl script and voilá!
Also for the record, so it appears on future searches, the errors I was getting in the system logs were:
For some reason the field name "config" in the "dynamic_field" table had the following format in the old system (MySQL version 5.1.73):
Code: Select all
PossibleValues:
Key1: Value1
Key2: Value2
Key3: Value3
...
Code: Select all
PossibleValues:
'Key1': 'Value1'
'Key2': 'Value2'
'Key3': 'Value3'
...
Also for the record, so it appears on future searches, the errors I was getting in the system logs were:
Code: Select all
YAML data was: "---
Loading the YAML string failed: YAML Error: Invalid element in map
OTRS 5
Ubuntu with MySQL
Authenticating users & agents via LDAP
Ubuntu with MySQL
Authenticating users & agents via LDAP
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: [SOLVED] backup script not backing up Dynamic Fields values?
The reason for this is a newer version of the YAML module... Maybe this should reported as a bug...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de