/build/static/layout/Breadcrumb_cap_w.png

Bad data...

do to an error in importing active directory information for custom fileds were mixed up.
In our database custom2 is for the department and custom1 is job title.
Because of that error I have job titles in custom2. And even though I have been deleteing them (one at a time) when I select the drop down menu from a ticket I'm still getting job title in the department dropdown.
If I manage to get the user data corrected with that fix the drop down in the ticketing screen?
And other that writting a sql scrip is there a way to clean out that bad information?

any help would be apprecated.

0 Comments   [ + ] Show comments

Answers (15)

Posted by: RichB 13 years ago
Second Degree Brown Belt
0
I would re-import the data again correctly and it should correct the problem. Ours is scheduled to do it every day but you can manually force it to happen too.
Posted by: GillySpy 13 years ago
7th Degree Black Belt
0
The pick list for a custom field is populated using the contents of the field definition as well as any unique values that exist in that field. You will have to clear out those existing tickets. Do a search or a report to see how many you have. If there are a lot support may be able to help you get there faster.
Posted by: kdasanmartino 13 years ago
Second Degree Green Belt
0
I'm not sure importing the data again will work Rich because most of the AD data is blank for department so I don't think it would update the filed to blank but I test it on a single user.

Gerald: So when you say "clear out those tickets" are you talking about just clearing that field on the ticket or deleting the ticket?


Kris
Posted by: RichB 13 years ago
Second Degree Brown Belt
0
I thought it was just two fields reversed so swapping them would replace the data when re-importing. Gerald would know best!
Posted by: GillySpy 13 years ago
7th Degree Black Belt
0
Just clearing that field on the tickets that have it.
Posted by: kdasanmartino 13 years ago
Second Degree Green Belt
0
this morning I did a report to show all my tickets to see if there were any that had job title in the department filed and there were none.
So can if I clear the department filed in my user data of job title will everything go back to the way it was?


Kris
Posted by: GillySpy 13 years ago
7th Degree Black Belt
0
What is the definition of the ticket custom field you have labelled "department field"?

Depending on your answer I may want to know the result of this query:
select DISTINCT CUSTOM_FIELD_VALUEX /*change X to match your helpdesk*/, HD_QUEUE_ID FROM HD_TICKET ORDER BY 1,2
Posted by: kdasanmartino 13 years ago
Second Degree Green Belt
0
this what I have for that field.
query: select distinct(CUSTOM_2) from USER order by 1 asc
Posted by: GillySpy 13 years ago
7th Degree Black Belt
0
What is the result of the query I posted?
Posted by: kdasanmartino 13 years ago
Second Degree Green Belt
0
here is a text file with the output of that sql statment.
Sorry for the delay on that.

Attachment

Posted by: GillySpy 13 years ago
7th Degree Black Belt
0
Does the value you want to get rid of appear in that output?
Posted by: kdasanmartino 13 years ago
Second Degree Green Belt
0
No they do not. The data in this output looks to be from Custom_3. Custom_3 holds Product/system deffinitions.
I have also check Custom_1,2 & 4 and none seem to be what I'm looking for.
Posted by: kdasanmartino 13 years ago
Second Degree Green Belt
0
I found the data that I'm looking for in the user table. Custom_2 is showing title in most cases and not department as it should.

is there a way do go through the data base and delete what I want cleared out?
Posted by: GillySpy 13 years ago
7th Degree Black Belt
0
This is what i was suspecting. You could use a ticket rule to clear it out.


select : select 1
update: update USER set CUSTOM_2=' where CUSTOM_2 in ('badvalue1','badvalue2','etc')
Posted by: kdasanmartino 13 years ago
Second Degree Green Belt
0
Sounds easy. I'll do a data backup and give it a try.

Thanks.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ